197 lines
12 KiB
Plaintext
197 lines
12 KiB
Plaintext
*** Settings ***
|
|
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids} ${categoryIds}
|
|
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}
|
|
${categoryIds} ${EMPTY}
|
|
|
|
*** Test Cases ***
|
|
Proxy-Policy-replace-00001
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId39}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId42}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId43}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host destidotcom.wordpress.com
|
|
|
|
Proxy-Policy-replace-00002
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId1}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId40}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId44}
|
|
#删除category
|
|
${categoryIds} set Variable ${replace_categoryId}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId1}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId1}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId1}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host airastana.com
|
|
|
|
Proxy-Policy-replace-00003
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId2}
|
|
${objectids} set Variable ${replace_objectId3}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId2}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId2}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId2}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.pjpugliese.com
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host carblog.co.za
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host ornithomedia
|
|
|
|
Proxy-Policy-replace-00004
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId4}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId5}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId6}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId45}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId3}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId3}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId3}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ino.com
|
|
|
|
Proxy-Policy-replace-00005
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId7}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId8}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId9}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId4}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId4}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId4}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.bestwestern.com
|
|
|
|
Proxy-Policy-replace-00006
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId10}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId11}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId12}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId5}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId5}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId5}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.quickenloans.com
|
|
|
|
Proxy-Policy-replace-00007
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId13}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId14}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId15}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId6}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId6}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId6}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.gobank.com
|
|
|
|
Proxy-Policy-replace-00008
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId16}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId17}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId18}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId46}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId7}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId7}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId7}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ghzq.com.cn
|
|
|
|
Proxy-Policy-replace-00009
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId19}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId20}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId21}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId8}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId8}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId8}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.zcool.com.cn
|
|
|
|
Proxy-Policy-replace-00010
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId22}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId23}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId47}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId9}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId9}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId9}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
|
|
|
Proxy-Policy-replace-00011
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId25}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId26}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId27}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId10}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId10}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId10}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.shfe.com.cn
|
|
|
|
Proxy-Policy-replace-00012
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId28}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId29}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId30}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId11}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId11}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId11}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.national-park.com
|
|
|
|
Proxy-Policy-replace-00013
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId31}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId32}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId41}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId12}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId12}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId12}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.expedia.co.uk
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host welcome.expediagroup.com
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.expediacruises.com
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.classicvacations.com
|
|
|
|
Proxy-Policy-replace-00014
|
|
#删除对象
|
|
${objectids} set Variable ${replace_objectId33}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId34}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId35}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId36}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId37}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId38}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_replace_policyId13}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${replace_policyId13}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${replace_policyId13}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.engadget.com
|