修改适应20.09版appid调整
This commit is contained in:
@@ -8,6 +8,7 @@ Resource ../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||||
Resource ../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../02-Keyword/tsg_adc/FileOperation.robot
|
||||
Resource ../../02-Keyword/tsg_bfapi/policy_object/Policy.robot
|
||||
Resource ../../03-Variable/ApplicationID.txt
|
||||
##注意此文件中的测试用例需要修改ManagePolicyBocy.robot的内容EffectiveRangeValueType3函数的#${obj} Create Dictionary tag=location value=${valueList} 替换为${obj} Create Dictionary tag=device_id value=${valueList}
|
||||
|
||||
*** Variables ***
|
||||
@@ -22,7 +23,7 @@ DLL-DeviceID-SecurityPolicy-Deny-Http-00001
|
||||
${objectids} set Variable ${objectId}
|
||||
#鍒涘缓 Deny 鎼厤Allow
|
||||
Comment 鍒涘缓瀹夊叏绛栫暐
|
||||
${policyDict} Create Dictionary policyName=DLL-DeviceID-SecurityPolicy-Deny-Http-00001 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} effectiveRange=device_1 filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=2
|
||||
${policyDict} Create Dictionary policyName=DLL-DeviceID-SecurityPolicy-Deny-Http-00001 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} effectiveRange=device_1 filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
${policyIds1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||
@@ -48,7 +49,7 @@ DLL-DeviceID-SecurityPolicy-Deny-Http-00002
|
||||
${objectids} set Variable ${objectId}
|
||||
#鍒涘缓 Deny 鎼厤Allow
|
||||
Comment 鍒涘缓瀹夊叏绛栫暐
|
||||
${policyDict} Create Dictionary policyName=DLL-DeviceID-SecurityPolicy-Deny-Http-000021 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} effectiveRange=device_100 filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=2
|
||||
${policyDict} Create Dictionary policyName=DLL-DeviceID-SecurityPolicy-Deny-Http-000021 policyType=tsg_security policyDesc=autotest action=deny userRegion={"protocol":"HTTP","method":"drop"} effectiveRange=device_100 filterList=${objectId}|TSG_FIELD_HTTP_HOST isValid=${1} appIdObjects=${HTTP_ID}
|
||||
log ${policyDict}
|
||||
${rescode} ${policyId} AddPolicies 1 ${policyDict} v2
|
||||
${policyIds1} set Variable {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||
|
||||
Reference in New Issue
Block a user