257 lines
15 KiB
Plaintext
257 lines
15 KiB
Plaintext
*** Settings ***
|
|
Test Teardown DeletePolicyAndObject1 ${policyIds} ${objectids} ${url} ${profiledId}
|
|
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}
|
|
${url} /v1/policy/profile/responsepages
|
|
${profiledId} ${EMPTY}
|
|
|
|
*** Test Cases ***
|
|
Proxy-Policy-deny-00001
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId46}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId47}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host newsela.com
|
|
|
|
Proxy-Policy-deny-00002
|
|
#删除文件
|
|
${profiledId} set Variable ${deny_profileId}
|
|
#删除对象
|
|
#${objectids} set Variable ${deny_objectId1}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId1}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId1}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId1}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host hugedomains
|
|
|
|
Proxy-Policy-deny-00003
|
|
#删除文件
|
|
${profiledId} set Variable ${deny_profileId1}
|
|
#删除对象
|
|
#${objectids} set Variable ${deny_objectId2}
|
|
${objectids} set Variable ${deny_objectId3}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId2}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId2}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId2}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host railways.kz
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host creativetravelgroup.com
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.hinabian.com
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host smithsonianjourneys
|
|
|
|
Proxy-Policy-deny-00004
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId4}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId5}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId6}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId48}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId49}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId50}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId3}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId3}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId3}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.usdebtclock.org
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bbs.nga.cn
|
|
|
|
Proxy-Policy-deny-00005
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId7}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId8}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId9}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId4}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId4}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId4}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host americantesol.com
|
|
|
|
Proxy-Policy-deny-00006
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId10}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId11}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId12}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId5}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId5}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId5}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.playgroundsessions.com
|
|
|
|
Proxy-Policy-deny-00007
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId13}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId14}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId15}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId6}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId6}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId6}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host peoplestalkradio.com
|
|
|
|
Proxy-Policy-deny-00008
|
|
#删除文件
|
|
${profiledId} set Variable ${deny_profileId2}
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId16}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId17}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId18}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId51}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId52}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId53}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId7}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId7}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId7}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.6renyou.com
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host bbs.tianya.cn
|
|
|
|
Proxy-Policy-deny-00009
|
|
#删除文件
|
|
${profiledId} set Variable ${deny_profileId3}
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId19}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId20}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId21}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId8}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId8}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId8}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.cuctv.com
|
|
|
|
Proxy-Policy-deny-00010
|
|
#删除文件
|
|
${profiledId} set Variable ${deny_profileId4}
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId22}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId23}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId24}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId9}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId9}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId9}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.duckduckmoose.com
|
|
|
|
Proxy-Policy-deny-00011
|
|
#删除文件
|
|
${profiledId} set Variable ${deny_profileId5}
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId25}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId26}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId27}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId10}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId10}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId10}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tutcandy.com
|
|
|
|
Proxy-Policy-deny-00012
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId28}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId29}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId30}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId11}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId11}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId11}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.youqulu.com
|
|
|
|
Proxy-Policy-deny-00013
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId31}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId32}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId46}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId12}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId12}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId12}
|
|
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
|
|
|
|
Proxy-Policy-deny-00014
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId33}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId34}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId54}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId13}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId13}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId13}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
|
|
|
Proxy-Policy-deny-00015
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId35}
|
|
#删除策略
|
|
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${deny_policyId14}]}
|
|
${s} Convert to String ${deny_policyId14}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
|
|
|
Proxy-Policy-deny-00016
|
|
#删除文件
|
|
${profiledId} set Variable ${deny_profileId5}
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId49}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId47}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId15}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId17}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId17}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.stewart.com
|
|
|
|
Proxy-Policy-deny-00017
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId36}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId37}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId38}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId39}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId40}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId48}
|
|
#删除策略
|
|
${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${deny_policyId15}]}
|
|
${s} Convert to String ${deny_policyId15}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
|
|
|
|
Proxy-Policy-deny-00018
|
|
#删除对象
|
|
${objectids} set Variable ${deny_objectId41}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId42}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId43}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId44}
|
|
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId45}
|
|
#删除策略
|
|
${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_deny_policyId14}]}
|
|
${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${deny_policyId16}]}
|
|
${policyIds} Create List ${policyId1} ${policyId2}
|
|
${s} Convert to String ${deny_policyId16}
|
|
GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.umusicpub.com
|