http日志文件,目前未完成
This commit is contained in:
83
01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot
Normal file
83
01-TestCase/tsg_adc/multi_step/c_Deny_Http_Tests.robot
Normal file
@@ -0,0 +1,83 @@
|
||||
*** 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
|
||||
#删除对象
|
||||
${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
|
||||
|
||||
SecurityPolicy-Deny-Http-00004
|
||||
[Tags] 请求头
|
||||
#删除对象
|
||||
${objectids} set Variable ${deny_http_objectId3}
|
||||
#删除策略
|
||||
${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
|
||||
|
||||
SecurityPolicy-Deny-Http-00005
|
||||
[Tags] 请求头
|
||||
#删除对象
|
||||
${objectids} set Variable ${deny_http_objectId4}
|
||||
#删除策略
|
||||
${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
|
||||
|
||||
SecurityPolicy-Deny-Http-00006
|
||||
[Tags] 请求头
|
||||
#删除对象
|
||||
${objectids} set Variable ${deny_http_objectId5}
|
||||
#删除策略
|
||||
${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
|
||||
|
||||
SecurityPolicy-Deny-Http-00007
|
||||
[Tags] 请求头
|
||||
#删除对象
|
||||
${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
|
||||
Reference in New Issue
Block a user