1、添加subid;
2、deny动作调整; 3、redirect删除验证容易变化部分
This commit is contained in:
@@ -13,9 +13,15 @@ AddLocalIPObject
|
||||
log to_AddLocalIPObject
|
||||
${localIP} set variable {"opAction":"add","returnData":1,"objectList":{"objectType":"ip","objectSubType":"endpoint","isValid":1,"isInitialize":0,"isExclusion":0,"objectName":"autotestLocalIPObject_${testClentIP}","objectDesc":"LocalIPObject_${testClentIP}自动化测试机IP","subObjectIds":[],"addItemList":[{"addrType":4,"protocol":0,"direction":0,"isSession":"endpoint","clientIp1":"${testClentIP}","clientIp2":"${testClentIP}","clientIpFormat":"range","clientPortFormat":"range","clientPort1":0,"clientPort2":0,"serverIpFormat":"range","serverIp1":"","serverIp2":"","serverPortFormat":"range","serverPort1":0,"serverPort2":0}],"updateItemList":[],"deleteItemIds":[]}}
|
||||
${rescodeip} ${objidip} AddObject ${localIP}
|
||||
log ${rescodeip}
|
||||
#log ${rescodeip}
|
||||
log LocalIP:${objidip}
|
||||
SET GLOBAL VARIABLE ${testClentID} ${objidip}
|
||||
log to_AddLocalSubidObject
|
||||
${localSubIP} set variable {"opAction":"add","returnData":1,"objectList":{"objectType":"subscriberid","objectSubType":"","isValid":1,"isInitialize":0,"isExclusion":0,"objectName":"test57","objectDesc":"${testSubscriberID}","subObjectIds":[],"addItemList":[{"keywordArray":["${testSubscriberID}"],"itemId":"","isHexbin":0}],"updateItemList":[],"deleteItemIds":[]}}
|
||||
${rescodesub} ${subiid} AddObject ${localSubIP}
|
||||
#log ${subiid}
|
||||
log LocalSubIP:${subiid}
|
||||
SET GLOBAL VARIABLE ${testClentSubID} ${subiid}
|
||||
|
||||
DelLocalIPObject
|
||||
log to_DelLocalIPObject
|
||||
@@ -23,6 +29,8 @@ DelLocalIPObject
|
||||
#${response_code} Get From Dictionary ${response} code
|
||||
#Should Be Equal As Strings ${response} {'code': 200, 'msg': 'Success', 'success': True}
|
||||
SET GLOBAL VARIABLE ${testClentID} ${EMPTY}
|
||||
${response} BaseDeleteRequest /v1/policy/object {"objectIds":[${testClentSubID}]}
|
||||
SET GLOBAL VARIABLE ${testClentSubID} ${EMPTY}
|
||||
|
||||
AddObject
|
||||
[Arguments] ${body}
|
||||
|
||||
Reference in New Issue
Block a user