提交安全策略和代理策略全流程用例

This commit is contained in:
lyf
2021-05-14 15:57:06 +08:00
parent 52e72067ff
commit 0d828fcd7a
46 changed files with 11647 additions and 6232 deletions

View File

@@ -39,11 +39,14 @@ GetAppIdObjects
[Return] ${appidobject}
DeletePolicyAndObjectAndApplicationAndSignature
[Arguments] ${policyids} ${objectids} ${appids}=${EMPTY} ${signatureId}=${EMPTY}
[Arguments] ${policyids} ${objectids} ${appids}=${EMPTY} ${signatureId}=${EMPTY} ${policyids1}=${EMPTY} ${url}=${EMPTY} ${profiledId}=${EMPTY}
#删除和对象
#2020-09-01修改引用DeletePolicyAndGroupObject避免分别维护并兼容之前用例
Run Keyword If "${policyids}"=="${EMPTY}" log no policyids to del
... ELSE DeletePolicyNew ${policyids}
Run Keyword If "${policyids1}"=="${EMPTY}" log no policyids to del
... ELSE DeletePolicyNew1 ${policyids1}
Run Keyword If "${appids}"=="${EMPTY}" log no appids to del
... ELSE DeleteApplicationNew ${appids}
@@ -54,6 +57,11 @@ DeletePolicyAndObjectAndApplicationAndSignature
Run Keyword If "${objectids}"=="${EMPTY}" log no Objects to del
... ELSE DeleteObjectNew ${objectids}
#删除文件
Run Keyword If "${profiledId}"=="${EMPTY}" log no file to del
... ELSE DeletePolicyFile2 ${url} ${profiledId}
DeleteApplicationNew
[Arguments] ${appids}
#删除Application
@@ -90,4 +98,25 @@ DeletePolicyNew
${response_code} Get From Dictionary ${response} code
Should Be Equal As Strings ${response_code} 200
${response} Convert to String ${response}
log ${response}
DeletePolicyNew1
[Arguments] ${policyids}
#删除策略
log toDeletePolicy_DeletePolicyDeletePolicy
${response} BaseDeleteRequest /${version}/policy/compile {"policyType":"pxy_manipulation","policyIds":[${policyids}]}
${response_code} Get From Dictionary ${response} code
Should Be Equal As Strings ${response_code} 200
${response} Convert to String ${response}
log ${response}
DeletePolicyFile2
[Arguments] ${url} ${profileId}
#删除文件
log todeleteobj_DeletePolicyAndObject
log todeleteobj
${response} BaseDeleteRequest ${url} {"profileIds":[${profileId}]}
${response_code} Get From Dictionary ${response} code
Should Be Equal As Strings ${response_code} 200
${response} Convert to String ${response}
log ${response}