安全策略allow动作测试用例,由于环境问题未进行功能验证

This commit is contained in:
jwc
2020-07-02 19:23:58 +08:00
parent d6dcf9d60c
commit cfb8cfe1b9
11 changed files with 218 additions and 8 deletions

View 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-Allow-Http-00001
[Tags] fqdn
#删除对象
${objectids} set Variable ${allow_http_objectId}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_http_policyId}]}
${s} Convert to String ${allow_http_policyId}
GetLogList security_event_log ${allow_http_starttime} ${allow_http_endtime} ${testClentIP} ${s} http_host clintonairport.com
SecurityPolicy-Allow-Http-00002
[Tags] cat
#删除对象
${objectids} set Variable ${allow_http_objectId1}
#删除策略
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${allow_http_policyId1}]}
${s} Convert to String ${allow_http_policyId1}
GetLogList security_event_log ${allow_http_starttime1} ${allow_http_endtime1} ${testClentIP} ${s} http_host www.airpano.com