*** 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/hijackfiles ${profiledId} ${EMPTY} *** Test Cases *** Proxy-Policy-hijack-00001 #删除文件 ${profiledId} set Variable ${hijack_profileId} #删除对象 ${objectids} set Variable ${hijack_objectId} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId39} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId42} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId43} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host vator.tv Proxy-Policy-hijack-00002 #删除文件 ${profiledId} set Variable ${hijack_profileId1} #删除对象 ${objectids} set Variable ${hijack_objectId1} ${objectids} set Variable ${hijack_objectId40} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId1}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId1}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId1} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.uqur.cn Proxy-Policy-hijack-00003 #删除文件 ${profiledId} set Variable ${hijack_profileId2} #删除对象 #${objectids} set Variable ${hijack_objectId2} ${objectids} set Variable ${hijack_objectId3} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId2}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId2}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId2} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.lexus.ru GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host oktrucking.org GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.federalsignal.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host peasedev Proxy-Policy-hijack-00004 #删除文件 ${profiledId} set Variable ${hijack_profileId3} #删除对象 ${objectids} set Variable ${hijack_objectId4} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId5} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId6} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId44} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId45} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId3}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId3}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId3} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host huoshan.com Proxy-Policy-hijack-00005 #删除文件 ${profiledId} set Variable ${hijack_profileId4} #删除对象 ${objectids} set Variable ${hijack_objectId7} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId8} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId9} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId4}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId4}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId4} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.ixigua.com Proxy-Policy-hijack-00006 #删除文件 ${profiledId} set Variable ${hijack_profileId5} #删除对象 ${objectids} set Variable ${hijack_objectId10} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId11} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId12} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId5}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId5}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId5} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.dcdapp.com Proxy-Policy-hijack-00007 #删除文件 ${profiledId} set Variable ${hijack_profileId6} #删除对象 ${objectids} set Variable ${hijack_objectId13} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId14} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId15} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId6}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId6}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId6} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.gogokid.com.cn Proxy-Policy-hijack-00008 #删除文件 ${profiledId} set Variable ${hijack_profileId7} #删除对象 ${objectids} set Variable ${hijack_objectId16} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId17} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId18} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId46} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId7}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId7}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId7} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host mafengwo.cn Proxy-Policy-hijack-00009 #删除文件 ${profiledId} set Variable ${hijack_profileId8} #删除对象 ${objectids} set Variable ${hijack_objectId19} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId20} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId21} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId8}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId8}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId8} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host quote.hexun.com Proxy-Policy-hijack-00010 #删除文件 ${profiledId} set Variable ${hijack_profileId9} #删除对象 ${objectids} set Variable ${hijack_objectId22} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId23} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId24} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId9}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId9}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId9} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host chaxun.1616.net Proxy-Policy-hijack-00011 #删除文件 ${profiledId} set Variable ${hijack_profileId10} #删除对象 ${objectids} set Variable ${hijack_objectId25} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId26} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId27} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId10}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId10}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId10} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.airwargame.com Proxy-Policy-hijack-00012 #删除文件 ${profiledId} set Variable ${hijack_profileId11} #删除对象 ${objectids} set Variable ${hijack_objectId28} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId29} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId30} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId11}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId11}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId11} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.reval.com Proxy-Policy-hijack-00013 #删除文件 ${profiledId} set Variable ${hijack_profileId12} #删除对象 ${objectids} set Variable ${hijack_objectId31} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId32} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId41} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId12}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId12}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId12} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nsscreencast.com GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.edreams.net GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host boutiquehotel.me GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.united.com Proxy-Policy-hijack-00014 #删除文件 ${profiledId} set Variable ${hijack_profileId13} #删除对象 ${objectids} set Variable ${hijack_objectId33} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId34} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId35} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId36} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId37} ${objectids} Catenate SEPARATOR=, ${objectids} ${hijack_objectId38} #删除策略 ${policyId1} set Variable {"policyType":"tsg_security","policyIds":[${intercept_hijack_policyId13}]} ${policyId2} set Variable {"policyType":"pxy_manipulation","policyIds":[${hijack_policyId13}]} ${policyIds} Create List ${policyId1} ${policyId2} ${s} Convert to String ${hijack_policyId13} GetLogList proxy_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.travelzoo.com