2020-07-29 20:20:03 +08:00
|
|
|
*** Settings ***
|
|
|
|
|
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
|
|
|
|
|
Force Tags tsg_adc_wp adc_log proxy_policy
|
|
|
|
|
Library OperatingSystem
|
|
|
|
|
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
|
|
|
|
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
|
|
|
|
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
|
|
|
|
Resource ../../../05-Other/AllFlowCaseVariable.txt
|
|
|
|
|
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
|
|
|
|
|
Resource ../../../05-Other/AllFlowCaseVariable1.txt
|
|
|
|
|
|
|
|
|
|
*** Variables ***
|
|
|
|
|
${policyIds} ${EMPTY}
|
|
|
|
|
${objectids} ${EMPTY}
|
|
|
|
|
|
|
|
|
|
*** Test Cases ***
|
|
|
|
|
Proxy-Policy-monitor-00001
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId}
|
2021-02-09 10:38:33 +08:00
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId46}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId47}
|
2020-07-29 20:20:03 +08:00
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId}
|
2021-02-09 10:38:33 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tv.cctv.com
|
|
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.vancl.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00002
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId1}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId1}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId1}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId1}
|
2021-02-09 10:38:33 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.parkpennies.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00003
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId2}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId3}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId2}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId2}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId2}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.wmtransfer.com
|
|
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.banbaowang.com
|
|
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.qidian.com
|
|
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.rolandberger.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00004
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId4}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId5}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId6}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId3}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId3}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId3}
|
2021-02-09 10:38:33 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host v.qq.com
|
|
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.kumi.cn
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00005
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId7}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId8}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId9}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId4}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId4}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId4}
|
2021-02-09 10:38:33 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.mgtv.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00006
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId10}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId11}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId12}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId5}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId5}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId5}
|
2021-02-09 10:38:33 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host v.ifeng.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00007
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId13}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId14}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId15}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId6}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId6}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId6}
|
2021-02-09 10:38:33 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.pptv.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00008
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId16}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId17}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId18}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId7}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId7}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId7}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.6renyou.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00009
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId19}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId20}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId21}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId8}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId8}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId8}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ljale.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00010
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId22}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId23}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId24}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId9}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId9}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId9}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.duckduckmoose.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00011
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId25}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId26}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId27}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId10}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId10}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId10}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tutcandy.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00012
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId28}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId29}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId30}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId11}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId11}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId11}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.youqulu.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00013
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId31}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId32}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId12}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId12}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId12}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.nypl.org
|
|
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.thailand.com.co
|
|
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bj.zu.ke.com
|
|
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nationalbank.kz
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00014
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId33}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId34}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId13}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId13}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId13}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00015
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId35}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId14}]}
|
|
|
|
|
${s} Convert to String ${monitor_policyId14}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00016
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId36}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId37}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId38}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId39}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId40}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId15}]}
|
|
|
|
|
${s} Convert to String ${monitor_policyId15}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
2020-07-29 20:20:03 +08:00
|
|
|
|
|
|
|
|
Proxy-Policy-monitor-00017
|
|
|
|
|
#删除对象
|
|
|
|
|
${objectids} set Variable ${monitor_objectId41}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId42}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId43}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId44}
|
|
|
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${monitor_objectId45}
|
|
|
|
|
#删除策略
|
|
|
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_monitor_policyId14}]}
|
|
|
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${monitor_policyId16}]}
|
|
|
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
|
|
|
${s} Convert to String ${monitor_policyId16}
|
2020-08-10 19:07:01 +08:00
|
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.umusicpub.com
|