补充allow,deny动作最小组合用例

This commit is contained in:
hebingning
2021-03-01 09:08:49 +08:00
parent fb5ec8c766
commit 067748a5dd
39 changed files with 326 additions and 74 deletions

View File

@@ -10,7 +10,7 @@ Resource ../../../03-Variable/ApplicationID.txt
*** Test Cases ***
SecurityPolicy-Allow-Http-00001
[Tags] halashaohahaha
[Tags] fqdn right match,whole world match,ip geo,url
Comment 创建fqdn
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*clintonairport.com
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
@@ -66,4 +66,16 @@ SecurityPolicy-Allow-Http-00002
insert_policyId_to_file1 allow_http_objectId7 ${objectId2}
insert_policyId_to_file1 allow_http_objectId8 ${objectId3}
insert_policyId_to_file1 allow_http_policyId1 ${policyId}
SecurityPolicy-Allow-Http-00003
[Tags] the minimum match
Comment 与allow00002组合验证筛选条件优先级
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-Http-00003 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"HTTP"} isValid=${0} appIdObjects=${HTTP_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_http_policyId2 ${policyId}