*** 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-replace-00001 [Tags] fqdn #删除对象 ${objectids} set Variable ${replace_objectId} ${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId39} #删除策略 ${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 ${replace_starttime} ${replace_endtime} ${testClentIP} ${s} http_host destidotcom.wordpress.com Proxy-Policy-replace-00002 [Tags] cat #删除对象 ${objectids} set Variable ${replace_objectId1} ${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId40} #删除策略 ${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 ${replace_starttime1} ${replace_endtime1} ${testClentIP} ${s} http_host www.trip.com Proxy-Policy-replace-00003 [Tags] url #删除对象 ${objectids} set Variable ${replace_objectId2} ${objectids} Catenate SEPARATOR=, ${objectids} ${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 ${replace_starttime2} ${replace_endtime2} ${testClentIP} ${s} http_host www.smartertravel.com GetLogList proxy_event_log ${replace_starttime3} ${replace_endtime3} ${testClentIP} ${s} http_host www.chinese.hostelworld.com GetLogList proxy_event_log ${replace_starttime4} ${replace_endtime4} ${testClentIP} ${s} http_host www.hotelplanner.com GetLogList proxy_event_log ${replace_starttime5} ${replace_endtime5} ${testClentIP} ${s} http_host business.nycgo.com Proxy-Policy-replace-00004 [Tags] 请求头 #删除对象 ${objectids} set Variable ${replace_objectId4} ${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId5} ${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId6} #删除策略 ${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 ${replace_starttime6} ${replace_endtime6} ${testClentIP} ${s} http_host www.kualoa.com Proxy-Policy-replace-00005 [Tags] 请求头 #删除对象 ${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 ${replace_starttime7} ${replace_endtime7} ${testClentIP} ${s} http_host www.bestwestern.com Proxy-Policy-replace-00006 [Tags] 请求头 #删除对象 ${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 ${replace_starttime8} ${replace_endtime8} ${testClentIP} ${s} http_host www.wollmanskatingrink.com Proxy-Policy-replace-00007 [Tags] 请求头 #删除对象 ${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 ${replace_starttime9} ${replace_endtime9} ${testClentIP} ${s} http_host packages.webjet.com.au Proxy-Policy-replace-00008 [Tags] 应答头 #删除对象 ${objectids} set Variable ${replace_objectId16} ${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId17} ${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId18} #删除策略 ${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 ${replace_starttime10} ${replace_endtime10} ${testClentIP} ${s} http_host www.ghzq.com.cn Proxy-Policy-replace-00009 [Tags] 应答头 #删除对象 ${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 ${replace_starttime11} ${replace_endtime11} ${testClentIP} ${s} http_host www.zts.com.cn Proxy-Policy-replace-00010 [Tags] 应答头 #删除对象 ${objectids} set Variable ${replace_objectId22} ${objectids} Catenate SEPARATOR=, ${objectids} ${replace_objectId23} #删除策略 ${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 ${replace_starttime12} ${replace_endtime12} ${testClentIP} ${s} http_host open.node.com Proxy-Policy-replace-00011 [Tags] 应答头 #删除对象 ${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 ${replace_starttime13} ${replace_endtime13} ${testClentIP} ${s} http_host www.shfe.com.cn Proxy-Policy-replace-00012 [Tags] cookie #删除对象 ${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 ${replace_starttime14} ${replace_endtime14} ${testClentIP} ${s} http_host www.national-park.com Proxy-Policy-replace-00013 [Tags] set-cookie #删除对象 ${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 ${replace_starttime15} ${replace_endtime15} ${testClentIP} ${s} http_host www.expedia.co.uk GetLogList proxy_event_log ${replace_starttime16} ${replace_endtime16} ${testClentIP} ${s} http_host welcome.expediagroup.com GetLogList proxy_event_log ${replace_starttime17} ${replace_endtime17} ${testClentIP} ${s} http_host www.expediacruises.com GetLogList proxy_event_log ${replace_starttime18} ${replace_endtime18} ${testClentIP} ${s} http_host www.classicvacations.com Proxy-Policy-replace-00014 [Tags] 最大组合 #删除对象 ${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 ${replace_starttime19} ${replace_endtime19} ${testClentIP} ${s} http_host www.hotelplanner.com