补充allow,deny动作最小组合用例

This commit is contained in:
hebingning
2021-03-01 09:08:49 +08:00
parent fb5ec8c766
commit 067748a5dd
39 changed files with 326 additions and 74 deletions

View File

@@ -47,3 +47,21 @@ SecurityPolicy-Allow-Http-00002
${stringlist} run keyword if '${systemType}'=='Windows' Create List 女生小说-香网小说网
... ELSE Create List 女生小说-香网小说网
${rescode} SystemCommands ${commandstr} ${stringlist}
SecurityPolicy-Allow-Http-00003
Comment 开启allow策略
${policyDict} Create Dictionary policyId=${allow_http_policyId2} policyName=SecurityPolicy-Allow-Http-00003-1 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"HTTP"} isValid=${1} appIdObjects=${HTTP_ID}
log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep ${policyModifySleepSeconds}
Comment 功能端验证HTTP验证
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/SecurityPolicy_Allow_HTTP_00002.bat
... ELSE set variable curl http://scoutbahamas.org/
${stringlist} run keyword if '${systemType}'=='Windows' Create List ScoutBahamas.org
... ELSE Create List ScoutBahamas.org
${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 关闭allow策略
${policyDict} Create Dictionary policyId=${allow_http_policyId2} policyName=SecurityPolicy-Allow-Http-00003-2 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"HTTP"} isValid=${0} appIdObjects=${HTTP_ID}
log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update