增加sip协议和rtp协议用例的标签,修改因下发最小组合策略而导致不通过的用例

This commit is contained in:
hebingning
2021-03-05 11:37:54 +08:00
parent 10a3b81fae
commit fc9b8df978
19 changed files with 78 additions and 19 deletions

View File

@@ -58,3 +58,24 @@ SecurityPolicy-Allow-Ssl-00003
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_ssl_policyId2 ${policyId}
SecurityPolicy-Allow-Ssl-00001-test
[Tags] fqdn完整匹配 update policy:ip geo
Comment 创建fqdn
${addTestClentIPFlag} Set Variable 0
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=$homebank.kz
${rescode} ${objectId} AddObject2 ${1} ${objectDict}
Comment 创建ip geo
${addItemList1} Create Dictionary keywordArray=XXG地区.*
${addItemLists} Create list ${addItemList1}
${objectDict} Create Dictionary objectType=ip objectSubType=geo_location isValid=${1} addItemList=${addItemLists}
${rescode} ${objectId1} AddObjects ${1} ${objectDict}
Comment 创建安全策略
${policyDict} Create Dictionary policyName=SecurityPolicy-Allow-Ssl-00001 policyType=tsg_security policyDesc=autotest action=allow userRegion={"protocol":"SSL"} source=${objectId1}|TSG_SECURITY_SOURCE_LOCATION filterList=${objectId}|TSG_FIELD_SSL_SNI isValid=${1} appIdObjects=${SSL_ID}
log ${policyDict}
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
${policyId} Get-Pids ${policyId}
${policyId} Set Variable ${policyId}[0]
insert_policyId_to_file1 allow_ssl_objectId ${objectId}
insert_policyId_to_file1 allow_ssl_objectId2 ${objectId1}
insert_policyId_to_file1 allow_ssl_policyId ${policyId}