*** Settings *** Test Teardown DeletePolicyAndObject1 ${policyIds} ${objectids} ${url} ${profiledId} Force Tags tsg_adc_wp adc_log security_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 *** SecurityPolicy-Deny-Http-00001 [Tags] fqdn #删除对象 ${objectids} set Variable ${deny_http_objectId} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId}]} ${s} Convert to String ${deny_http_policyId} GetLogList security_event_log ${deny_http_starttime} ${deny_http_endtime} ${testClentIP} ${s} http_host webalta.ru SecurityPolicy-Deny-Http-00002 [Tags] cat #删除对象 ${objectids} set Variable ${deny_http_objectId1} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId1}]} ${s} Convert to String ${deny_http_policyId1} GetLogList security_event_log ${deny_http_starttime1} ${deny_http_endtime1} ${testClentIP} ${s} http_host nymbler.com SecurityPolicy-Deny-Http-00003 [Tags] url #删除文件 ${profiledId} set Variable ${deny_http_profiledId} #删除对象 ${objectids} set Variable ${deny_http_objectId2} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId2}]} ${s} Convert to String ${deny_http_policyId2} GetLogList security_event_log ${deny_http_starttime2} ${deny_http_endtime2} ${testClentIP} ${s} http_host www.icbc.com.cn GetLogList security_event_log ${deny_http_starttime3} ${deny_http_endtime3} ${testClentIP} ${s} http_host ccb.com GetLogList security_event_log ${deny_http_starttime4} ${deny_http_endtime4} ${testClentIP} ${s} http_host gotohoroscope.com GetLogList security_event_log ${deny_http_starttime5} ${deny_http_endtime5} ${testClentIP} ${s} http_host government.ru SecurityPolicy-Deny-Http-00004 [Tags] 请求头 #删除对象 ${objectids} set Variable ${deny_http_objectId3} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId4} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId3}]} ${s} Convert to String ${deny_http_policyId3} GetLogList security_event_log ${deny_http_starttime6} ${deny_http_endtime6} ${testClentIP} ${s} http_host tsutmb.ru SecurityPolicy-Deny-Http-00005 [Tags] 请求头 #删除对象 ${objectids} set Variable ${deny_http_objectId5} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId6} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId4}]} ${s} Convert to String ${deny_http_policyId4} GetLogList security_event_log ${deny_http_starttime7} ${deny_http_endtime7} ${testClentIP} ${s} http_host abchina.com SecurityPolicy-Deny-Http-00006 [Tags] 请求头 #删除对象 ${objectids} set Variable ${deny_http_objectId7} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId8} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId5}]} ${s} Convert to String ${deny_http_policyId5} GetLogList security_event_log ${deny_http_starttime8} ${deny_http_endtime8} ${testClentIP} ${s} http_host egypt.travel SecurityPolicy-Deny-Http-00007 [Tags] 请求头 #删除文件 ${profiledId} set Variable ${deny_http_profiledId1} #删除对象 ${objectids} set Variable ${deny_http_objectId9} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId10} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId6}]} ${s} Convert to String ${deny_http_policyId6} GetLogList security_event_log ${deny_http_starttime9} ${deny_http_endtime9} ${testClentIP} ${s} http_host destination360.com SecurityPolicy-Deny-Http-00008 [Tags] 应答头 #删除对象 ${objectids} set Variable ${deny_http_objectId11} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId12} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId7}]} ${s} Convert to String ${deny_http_policyId7} GetLogList security_event_log ${deny_http_starttime10} ${deny_http_endtime10} ${testClentIP} ${s} http_host cmbchina.com SecurityPolicy-Deny-Http-00009 [Tags] 应答头 #删除对象 ${objectids} set Variable ${deny_http_objectId13} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId14} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId8}]} ${s} Convert to String ${deny_http_policyId8} GetLogList security_event_log ${deny_http_starttime11} ${deny_http_endtime11} ${testClentIP} ${s} http_host www.skycn.com SecurityPolicy-Deny-Http-00010 [Tags] 应答头 #删除对象 ${objectids} set Variable ${deny_http_objectId15} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId16} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId9}]} ${s} Convert to String ${deny_http_policyId9} GetLogList security_event_log ${deny_http_starttime12} ${deny_http_endtime12} ${testClentIP} ${s} http_host www.avaxsearch.com SecurityPolicy-Deny-Http-00011 [Tags] 应答头 #删除对象 ${objectids} set Variable ${deny_http_objectId17} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId18} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId10}]} ${s} Convert to String ${deny_http_policyId10} GetLogList security_event_log ${deny_http_starttime13} ${deny_http_endtime13} ${testClentIP} ${s} http_host www.finestquotes.com SecurityPolicy-Deny-Http-00012 [Tags] cookie #删除对象 ${objectids} set Variable ${deny_http_objectId19} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId11}]} ${s} Convert to String ${deny_http_policyId11} GetLogList security_event_log ${deny_http_starttime14} ${deny_http_endtime14} ${testClentIP} ${s} http_host www.universalmusic.ru SecurityPolicy-Deny-Http-00013 [Tags] set-cookie #删除对象 ${objectids} set Variable ${deny_http_objectId20} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId12}]} ${s} Convert to String ${deny_http_policyId12} GetLogList security_event_log ${deny_http_starttime15} ${deny_http_endtime15} ${testClentIP} ${s} http_host ziroom.com GetLogList security_event_log ${deny_http_starttime16} ${deny_http_endtime16} ${testClentIP} ${s} http_host xiaozhu.com GetLogList security_event_log ${deny_http_starttime17} ${deny_http_endtime17} ${testClentIP} ${s} http_host sinovision.net GetLogList security_event_log ${deny_http_starttime18} ${deny_http_endtime18} ${testClentIP} ${s} http_host nlr.ru SecurityPolicy-Deny-Http-00014 [Tags] 请求体 #删除对象 ${objectids} set Variable ${deny_http_objectId21} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId13}]} ${s} Convert to String ${deny_http_policyId13} GetLogList security_event_log ${deny_http_starttime19} ${deny_http_endtime19} ${testClentIP} ${s} http_host open.node.com SecurityPolicy-Deny-Http-00015 [Tags] 应答体 #删除对象 ${objectids} set Variable ${deny_http_objectId22} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId14}]} ${s} Convert to String ${deny_http_policyId14} GetLogList security_event_log ${deny_http_starttime20} ${deny_http_endtime20} ${testClentIP} ${s} http_host huatonggs.com SecurityPolicy-Deny-Http-00016 [Tags] 最大组合1 #删除对象 ${objectids} set Variable ${deny_http_objectId23} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId24} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId25} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId26} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId27} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId15}]} ${s} Convert to String ${deny_http_policyId15} GetLogList security_event_log ${deny_http_starttime21} ${deny_http_endtime21} ${testClentIP} ${s} http_host open.node.com SecurityPolicy-Deny-Http-00017 [Tags] 最大组合2 #删除对象 ${objectids} set Variable ${deny_http_objectId28} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId29} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId30} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId31} ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId32} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId16}]} ${s} Convert to String ${deny_http_policyId16} GetLogList security_event_log ${deny_http_starttime22} ${deny_http_endtime22} ${testClentIP} ${s} http_host smspunch.net