修改部分用例策略部分
This commit is contained in:
33
01-TestCase/tsg_adc/multi_step/c_Intercept_Http_Tests.robot
Normal file
33
01-TestCase/tsg_adc/multi_step/c_Intercept_Http_Tests.robot
Normal file
@@ -0,0 +1,33 @@
|
||||
*** Settings ***
|
||||
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
|
||||
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}
|
||||
|
||||
*** Test Cases ***
|
||||
SecurityPolicy-Intercept-Http-00001
|
||||
[Tags] fqdn
|
||||
#删除对象
|
||||
${objectids} set Variable ${intercept_http_objectId}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_http_policyId}]}
|
||||
${s} Convert to String ${intercept_http_policyId}
|
||||
GetLogList security_event_log ${intercept_http_starttime} ${intercept_http_endtime} ${testClentIP} ${s} http_host www.mydrivers.com
|
||||
|
||||
SecurityPolicy-Intercept-Http-00002
|
||||
[Tags] cat
|
||||
#删除对象
|
||||
${objectids} set Variable ${intercept_http_objectId1}
|
||||
#删除策略
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${intercept_http_policyId1}]}
|
||||
${s} Convert to String ${intercept_http_policyId1}
|
||||
GetLogList security_event_log ${intercept_http_starttime1} ${intercept_http_endtime1} ${testClentIP} ${s} http_host sunnylands.org
|
||||
Reference in New Issue
Block a user