提价安全策略case
This commit is contained in:
@@ -74,7 +74,7 @@ AddObject
|
||||
[Arguments] ${body}
|
||||
#addIPobject#################################################################################
|
||||
${response} BasePostRequest /${version}/policy/object body=${body}
|
||||
#log ${response}
|
||||
log 11111111111111${response}
|
||||
${objectId} Set Variable ${response['data']['objectList'][0]['objectId']}
|
||||
${rescodeReturn} Set Variable ${response['code']}
|
||||
[Return] ${rescodeReturn} ${objectId}
|
||||
@@ -224,7 +224,7 @@ DeleteProfiles
|
||||
Run Keyword If "${profile}"!="" and ${profile}!="${EMPTY}" DeleteProfile ${profile}[typeUrl] ${profile}[profileIds]
|
||||
END
|
||||
DeletePolicyAndObject
|
||||
[Arguments] ${policyids} ${objectids}
|
||||
[Arguments] ${policyids} ${objectids} ${group}
|
||||
#删除和对象
|
||||
#删除策略
|
||||
log toDeletePolicy_DeletePolicyAndObject
|
||||
@@ -232,11 +232,13 @@ DeletePolicyAndObject
|
||||
FOR ${var} IN RANGE ${listlenth}
|
||||
#log dxytest111111
|
||||
log ${var}
|
||||
DeletePolicy ${policyids}[${var}]
|
||||
DeletePolicy ${policyids}[${var}]
|
||||
#Should Contain ${commandreturn} ${ca}
|
||||
END
|
||||
#删除对象
|
||||
log todeleteobj_DeletePolicyAndObject
|
||||
Run Keyword If "${group}"=="${EMPTY}" log no obj to del
|
||||
... ELSE DeleteObject ${group}
|
||||
Run Keyword If "${objectids}"=="${EMPTY}" log no obj to del
|
||||
... ELSE DeleteObject ${objectids}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user