From e775cae7f947a4aff9437e773093c34bddaff71f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=AC=E5=B7=8D=E5=B7=9D?= Date: Sun, 28 Jun 2020 19:19:39 +0800 Subject: [PATCH] =?UTF-8?q?http=E8=A1=A5=E5=85=85=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multi_step/c_Deny_Http_Tests.robot | 129 ++++++++++++++++-- 1 file changed, 121 insertions(+), 8 deletions(-) diff --git a/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot b/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot index f67acde..5f229a6 100644 --- a/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot +++ b/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot @@ -36,15 +36,17 @@ SecurityPolicy-Deny-Http-00002 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_starttime3} ${deny_http_endtime3} ${testClentIP} ${s} http_host icbc.com.cn - GetLogList security_event_log ${deny_http_starttime4} ${deny_http_endtime4} ${testClentIP} ${s} http_host ccb.com - GetLogList security_event_log ${deny_http_starttime5} ${deny_http_endtime5} ${testClentIP} ${s} http_host gotohoroscope.com - GetLogList security_event_log ${deny_http_starttime6} ${deny_http_endtime6} ${testClentIP} ${s} http_host government.ru + 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] 请求头 @@ -53,7 +55,7 @@ SecurityPolicy-Deny-Http-00004 #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId3}]} ${s} Convert to String ${deny_http_policyId3} - GetLogList security_event_log ${deny_http_starttime7} ${deny_http_endtime7} ${testClentIP} ${s} http_host tsutmb.ru + GetLogList security_event_log ${deny_http_starttime6} ${deny_http_endtime6} ${testClentIP} ${s} http_host tsutmb.ru SecurityPolicy-Deny-Http-00005 [Tags] 请求头 @@ -62,7 +64,7 @@ SecurityPolicy-Deny-Http-00005 #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId4}]} ${s} Convert to String ${deny_http_policyId4} - GetLogList security_event_log ${deny_http_starttime8} ${deny_http_endtime8} ${testClentIP} ${s} http_host abchina.com + GetLogList security_event_log ${deny_http_starttime77} ${deny_http_endtime7} ${testClentIP} ${s} http_host abchina.com SecurityPolicy-Deny-Http-00006 [Tags] 请求头 @@ -71,13 +73,124 @@ SecurityPolicy-Deny-Http-00006 #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId5}]} ${s} Convert to String ${deny_http_policyId5} - GetLogList security_event_log ${deny_http_starttime9} ${deny_http_endtime9} ${testClentIP} ${s} http_host egypt.travel + 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_objectId6} #删除策略 ${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId6}]} ${s} Convert to String ${deny_http_policyId6} - GetLogList security_event_log ${deny_http_starttime10} ${deny_http_endtime10} ${testClentIP} ${s} http_host destination360.com + 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_objectId7} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId8} + #删除策略 + ${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_objectId9} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId10} + #删除策略 + ${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 bankcomm.com + +SecurityPolicy-Deny-Http-00010 + [Tags] 应答头 + #删除文件 + ${profiledId} set Variable ${deny_http_profiledId2} + #删除对象 + ${objectids} set Variable ${deny_http_objectId11} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId12} + #删除策略 + ${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 thg.ru + +SecurityPolicy-Deny-Http-00011 + [Tags] 应答头 + #删除文件 + ${profiledId} set Variable ${deny_http_profiledId3} + #删除对象 + ${objectids} set Variable ${deny_http_objectId13} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId14} + #删除策略 + ${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 thg.ru + +SecurityPolicy-Deny-Http-00012 + [Tags] cookie + #删除对象 + ${objectids} set Variable ${deny_http_objectId15} + #删除策略 + ${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 thg.ru + +SecurityPolicy-Deny-Http-00013 + [Tags] set-cookie + #删除对象 + ${objectids} set Variable ${deny_http_objectId16} + #删除策略 + ${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 kiss.ru + +SecurityPolicy-Deny-Http-00014 + [Tags] 请求体 + #删除对象 + ${objectids} set Variable ${deny_http_objectId17} + #删除策略 + ${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_objectId18} + #删除策略 + ${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_objectId19} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId20} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId21} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId22} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId23} + #删除策略 + ${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_objectId24} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId25} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId26} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId27} + ${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId28} + #删除策略 + ${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