*** 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 [Tags] fqdn #删除对象 ${objectids} set Variable ${deny_objectId} #删除策略 ${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 ${deny_starttime} ${deny_endtime} ${testClentIP} ${s} http_host newsela.com Proxy-Policy-deny-00002 [Tags] cat #删除文件 ${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 ${deny_starttime1} ${deny_endtime1} ${testClentIP} ${s} http_host villaday.com Proxy-Policy-deny-00003 [Tags] url #删除文件 ${profiledId} set Variable ${deny_profileId1} #删除对象 ${objectids} set Variable ${deny_objectId2} ${objectids} Catenate SEPARATOR=, ${objectids} ${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 ${deny_starttime2} ${deny_endtime2} ${testClentIP} ${s} http_host www.wmtransfer.com GetLogList proxy_event_log ${deny_starttime3} ${deny_endtime3} ${testClentIP} ${s} http_host www.banbaowang.com GetLogList proxy_event_log ${deny_starttime4} ${deny_endtime4} ${testClentIP} ${s} http_host www.qidian.com GetLogList proxy_event_log ${deny_starttime5} ${deny_endtime5} ${testClentIP} ${s} http_host www.rolandberger.com Proxy-Policy-deny-00004 [Tags] 请求头 #删除对象 ${objectids} set Variable ${deny_objectId4} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId5} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId6} #删除策略 ${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 ${deny_starttime6} ${deny_endtime6} ${testClentIP} ${s} http_host www.nielsen.com Proxy-Policy-deny-00005 [Tags] 请求头 #删除对象 ${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 ${deny_starttime7} ${deny_endtime7} ${testClentIP} ${s} http_host americantesol.com Proxy-Policy-deny-00006 [Tags] 请求头 #删除对象 ${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 ${deny_starttime8} ${deny_endtime8} ${testClentIP} ${s} http_host www.playgroundsessions.com Proxy-Policy-deny-00007 [Tags] 请求头 #删除对象 ${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 ${deny_starttime9} ${deny_endtime9} ${testClentIP} ${s} http_host www.europages.com.ru Proxy-Policy-deny-00008 [Tags] 应答头 #删除文件 ${profiledId} set Variable ${deny_profileId2} #删除对象 ${objectids} set Variable ${deny_objectId16} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId17} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId18} #删除策略 ${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 ${deny_starttime10} ${deny_endtime10} ${testClentIP} ${s} http_host www.6renyou.com Proxy-Policy-deny-00009 [Tags] 应答头 #删除文件 ${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 ${deny_starttime11} ${deny_endtime11} ${testClentIP} ${s} http_host www.ljale.com Proxy-Policy-deny-00010 [Tags] 应答头 #删除文件 ${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 ${deny_starttime12} ${deny_endtime12} ${testClentIP} ${s} http_host www.duckduckmoose.com Proxy-Policy-deny-00011 [Tags] 应答头 #删除文件 ${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 ${deny_starttime13} ${deny_endtime13} ${testClentIP} ${s} http_host tutcandy.com Proxy-Policy-deny-00012 [Tags] cookie #删除对象 ${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 ${deny_starttime14} ${deny_endtime14} ${testClentIP} ${s} http_host www.youqulu.com Proxy-Policy-deny-00013 [Tags] set-cookie #删除对象 ${objectids} set Variable ${deny_objectId31} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId32} #删除策略 ${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 ${deny_starttime15} ${deny_endtime15} ${testClentIP} ${s} http_host www.nypl.org GetLogList proxy_event_log ${deny_starttime16} ${deny_endtime16} ${testClentIP} ${s} http_host www.webpronews.com GetLogList proxy_event_log ${deny_starttime17} ${deny_endtime17} ${testClentIP} ${s} http_host bj.zu.ke.com GetLogList proxy_event_log ${deny_starttime18} ${deny_endtime18} ${testClentIP} ${s} http_host nationalbank.kz Proxy-Policy-deny-00014 [Tags] 请求体 #删除对象 ${objectids} set Variable ${deny_objectId33} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_objectId34} #删除策略 ${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 ${deny_starttime19} ${deny_endtime19} ${testClentIP} ${s} http_host open.node.com Proxy-Policy-deny-00015 [Tags] 应答体 #删除对象 ${objectids} set Variable ${deny_objectId35} #删除策略 ${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${deny_policyId14}]} ${s} Convert to String ${deny_policyId14} GetLogList proxy_event_log ${deny_starttime20} ${deny_endtime20} ${testClentIP} ${s} http_host open.node.com Proxy-Policy-deny-00016 [Tags] 最大组合1 #删除对象 ${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} #删除策略 ${policyIds} Create List {"policyType":"pxy_manipulation","policyIds":[${deny_policyId15}]} ${s} Convert to String ${deny_policyId15} GetLogList proxy_event_log ${deny_starttime21} ${deny_endtime21} ${testClentIP} ${s} http_host open.node.com Proxy-Policy-deny-00017 [Tags] 最大组合2 #删除对象 ${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 ${deny_starttime22} ${deny_endtime22} ${testClentIP} ${s} http_host www.umusicpub.com