修复0223,0222因策略对象的优先级导致的用例不通过问题

This commit is contained in:
hebingning
2021-02-24 12:45:03 +08:00
parent fd9d4fe72e
commit 03b463b0d6
21 changed files with 189 additions and 139 deletions

View File

@@ -178,10 +178,15 @@ Proxy-Policy-replace-00010
${stringlist} run keyword if '${systemType}'=='Windows' Create List chifan
... ELSE Create List chifan
${rescode} SystemCommands ${commandstr} ${stringlist}
Comment 使用后将拦截策略失效,防止影响后续的策略
${policyDict} Create Dictionary policyId=${replace_policyId9} policyId=${intercept_replace_policyId9} policyName=SecurityPolicy-Intercept-replace-10 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${replace_objectId22}|TSG_FIELD_HTTP_HOST isValid=${0} appIdObjects=${HTTP_ID}
log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update
Comment 使用后将策略失效,防止影响后续的策略
${policyDict} Create Dictionary policyId=${replace_policyId9} policyName=Proxy-Policy-replace-00010-1 policyType=pxy_manipulation policyDesc=autotest action=manipulation userRegion={"method":"replace","rules":[{"search_in":"http_resp_body","find":"helloreplace0010","replace_with":"chifan"}],"protocol":"HTTP"} filterList=${replace_objectId23}|TSG_FIELD_HTTP_URL isValid=${0} appIdObjects=${HTTP_ID}
log ${policyDict}
${rescode} UpdatePolicies 1 ${policyDict} v2 update
sleep 5
Proxy-Policy-replace-00011
Comment 功能端验证HTTP验证