@@ -6,6 +6,7 @@ Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
|
||||
Resource ../../../03-Variable/ApplicationID.txt
|
||||
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
||||
|
||||
*** Test Cases ***
|
||||
@@ -20,17 +21,17 @@ Proxy-Policy-Monitor-00001
|
||||
${policyDict} Create Dictionary policyId=${intercept_monitor_policyId} source=${monitor_objectId46}|TSG_SECURITY_SOURCE_LOCATION policyName=SecurityPolicy-Intercept-monitor-01 policyType=tsg_security policyDesc=autotest action=intercept userRegion={"protocol":"HTTP"} filterList=${monitor_objectId47}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep ${policyModifySleepSeconds}
|
||||
sleep 10
|
||||
Comment 改变Monitor策略
|
||||
${policyDict} Create Dictionary policyId=${monitor_policyId} source=${monitor_objectId46}|TSG_SECURITY_SOURCE_LOCATION policyName=Proxy-Policy-monitor-00001 policyType=pxy_manipulation policyDesc=autotest action=monitor userRegion={"method":"monitor","protocol":"HTTP"} filterList=${monitor_objectId47}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} UpdatePolicies 1 ${policyDict} v2 update
|
||||
sleep ${policyModifySleepSeconds}
|
||||
sleep 10
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_allow_00002.bat
|
||||
... ELSE set variable ${curlbatpath}/command/ProxyPolicy_allow_00002_L.bat
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List www.feishu.cn Tango Secure Gateway CA
|
||||
... ELSE Create List www.feishu.cn Tango Secure Gateway CA
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Monitor_00001_1.bat
|
||||
... ELSE set variable curl -kv http://www.vancl.com/?source=vancl_net
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 凡客vancl
|
||||
... ELSE Create List 凡客vancl
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
Proxy-Policy-Monitor-00002
|
||||
@@ -160,8 +161,8 @@ Proxy-Policy-Monitor-00011
|
||||
Comment 功能端验证HTTP验证
|
||||
${commandstr} run keyword if '${systemType}'=='Windows' set variable ${curlbatpath}/command/ProxyPolicy_Monitor_000011.bat
|
||||
... ELSE set variable curl http://hongniang.com/
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 都市红娘网
|
||||
... ELSE Create List 找对象
|
||||
${stringlist} run keyword if '${systemType}'=='Windows' Create List 中国红娘网
|
||||
... ELSE Create List 中国红娘网
|
||||
${rescode} SystemCommands ${commandstr} ${stringlist}
|
||||
|
||||
# Proxy-Policy-Monitor-00012
|
||||
|
||||
Reference in New Issue
Block a user