添加被引用删除case
This commit is contained in:
@@ -157,4 +157,48 @@ TrafficMirrorPolicy_Namelong128-00007
|
||||
${aaa} Evaluate type(${reqData_edit})
|
||||
log ${aaa}
|
||||
UpdatePolicyFile2 ${url} ${reqData_edit}
|
||||
|
||||
|
||||
TrafficMirrorPolicy_Policy_references-00008
|
||||
# 创建对象
|
||||
${list} Create List 13:13:13:13:13:13 13:13:13:13:13:13
|
||||
${objectedit} Create Dictionary profileName=1 addrType=mac addrArray=${list}
|
||||
Comment 打印需要修改的json内容
|
||||
log ${objectedit}
|
||||
${objectDict} Jsoneditmanu ${setting_proxy_profiles_traffic_mirror_profiles} ${objectedit}
|
||||
log ${objectDict}
|
||||
${response} CreateRequest ${url} ${objectDict}
|
||||
# 查询
|
||||
log ${response}
|
||||
${profileId} Get From Dictionary ${response} profileId
|
||||
|
||||
# 创建策略
|
||||
Comment 创建fqdn
|
||||
${objectDict} Create Dictionary objectType=fqdn isValid=${1} addItemList=*open.node.com
|
||||
${rescode} ${object_fqdn_Id} AddObject2 ${1} ${objectDict}
|
||||
${objectids} set Variable ${object_fqdn_Id}
|
||||
|
||||
${rescode} ${policyId} AddPolicy {"opAction":"add","returnData":1,"policyList":{"policyId":"","policyName":"qewqeqwewqe","policyType":"tsg_security","action":"intercept","userTags":"","doBlacklist":0,"doLog":1,"policyDesc":"","effectiveRange":{"tag_sets":[[]]},"userRegion":{"protocol":"SSL","keyring":1,"decryption":1,"decrypt_mirror":{"enable":1,"mirror_profile":${profileId}}},"source":[{"objectId":14920,"protocolField":"TSG_SECURITY_SOURCE_ADDR"}],"destination":[],"filterList":[{"filter":[{"objectId":14985,"protocolField":"TSG_FIELD_SSL_SNI"}]}],"appIdObjects":[3],"isValid":1,"scheduleId":[]}}
|
||||
${policyIds} Create List {"policyType":"tsg_security","policyIds":[${policyId}]}
|
||||
# 删除对象 失败
|
||||
${response} BaseDeleteRequest /${version}/policy/profile/trafficmirror {"profileIds":[${profileId}]}
|
||||
${response_code} Get From Dictionary ${response} code
|
||||
#log aaaaaaaaaa:${response_code}
|
||||
Should Be Equal As Strings ${response_code} 40090030
|
||||
|
||||
# 删除策略
|
||||
DeletePolicyAndObject ${policyIds} ${objectids}
|
||||
|
||||
# 删除对象 成功
|
||||
${response} BaseDeleteRequest /${version}/policy/profile/trafficmirror {"profileIds":[${profileId}]}
|
||||
${response_code} Get From Dictionary ${response} code
|
||||
#log aaaaaaaaaa:${response_code}
|
||||
Should Be Equal As Strings ${response_code} 200
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user