This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot

196 lines
11 KiB
Plaintext

*** 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
#删除对象
${objectids} set Variable ${deny_http_objectId}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId35}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId36}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId}]}
${s} Convert to String ${deny_http_policyId}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.lkong.net
SecurityPolicy-Deny-Http-00002
#删除对象
#${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host bellaircraftmuseum.org
SecurityPolicy-Deny-Http-00003
#删除文件
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host www.icbc.com.cn
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host ccb.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host gotohoroscope.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host government.ru
SecurityPolicy-Deny-Http-00004
#删除对象
${objectids} set Variable ${deny_http_objectId3}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId4}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId37}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId38}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId3}]}
${s} Convert to String ${deny_http_policyId3}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host tsutmb.ru
SecurityPolicy-Deny-Http-00005
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host abchina.com
SecurityPolicy-Deny-Http-00006
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host egypt.travel
SecurityPolicy-Deny-Http-00007
#删除文件
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host www.gw.com.cn
SecurityPolicy-Deny-Http-00008
#删除对象
${objectids} set Variable ${deny_http_objectId11}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId12}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId39}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId7}]}
${s} Convert to String ${deny_http_policyId7}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host cmbchina.com
SecurityPolicy-Deny-Http-00009
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host www.skycn.com
SecurityPolicy-Deny-Http-00010
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host www.avaxsearch.com
SecurityPolicy-Deny-Http-00011
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host www.finestquotes.com
SecurityPolicy-Deny-Http-00012
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host www.universalmusic.ru
SecurityPolicy-Deny-Http-00013
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host ziroom.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host blog.cnstock.com
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host sinovision.net
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host nlr.ru
SecurityPolicy-Deny-Http-00014
#删除对象
${objectids} set Variable ${deny_http_objectId21}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId40}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId13}]}
${s} Convert to String ${deny_http_policyId13}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
SecurityPolicy-Deny-Http-00015
#删除对象
${objectids} set Variable ${deny_http_objectId22}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId41}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId14}]}
${s} Convert to String ${deny_http_policyId14}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host huatonggs.com
SecurityPolicy-Deny-Http-00016
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host open.node.com
SecurityPolicy-Deny-Http-00017
#删除对象
${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 ${starttime} ${endtime} ${testClentIP} ${s} http_host smspunch.net
SecurityPolicy-Deny-Http-00018
#删除对象
${objectids} set Variable ${deny_http_objectId33}
${objectids} Catenate SEPARATOR=, ${objectids} ${deny_http_objectId34}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${deny_http_policyId17}]}
${s} Convert to String ${deny_http_policyId17}
GetLogList security_event_log ${starttime} ${endtime} ${testClentIP} ${s} http_host www.hebbank.com