补充allow,deny动作最小组合用例
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user