补充 object对象组新增/修改
This commit is contained in:
@@ -11,7 +11,7 @@ Library DateTime
|
||||
@{policyIds}
|
||||
@{profiles}
|
||||
*** Test Cases ***
|
||||
Policy-Post-v1-00013
|
||||
single-object
|
||||
Comment 创建IP
|
||||
#object为IP→endpoint时的addItemList单个对象
|
||||
${addItemList1} Create Dictionary isSession=endpoint ip=192.168.41.68-192.168.41.69 port=0-0 direction=0 protocol=0 isInitialize=0
|
||||
@@ -37,4 +37,18 @@ Policy-Post-v1-00013
|
||||
log ${objectDict}
|
||||
log ${itemList}
|
||||
${rescode} UpdateObjects ${1} ${objectDict} update
|
||||
Log To Console Create IP Object
|
||||
|
||||
group-object
|
||||
Comment 创建IP
|
||||
${subObjectIds} Create list 18470 18439
|
||||
${objectDict} Create Dictionary objectType=ip isValid=${1} subObjectIds=${subObjectIds}
|
||||
log ${objectDict}
|
||||
${rescode} ${objectId1} AddObjects ${1} ${objectDict}
|
||||
${objectIds} Set Variable ${objectId1}
|
||||
Log To Console Create IP Object
|
||||
${params} Create Dictionary objectId=${objectId1} itemType=ip
|
||||
Comment 更新IP
|
||||
${objectDict} Create Dictionary objectId=${objectId1} objectType=ip subObjectIds=${subObjectIds}
|
||||
${rescode} UpdateObjects ${1} ${objectDict} update
|
||||
Log To Console Create IP Object
|
||||
Reference in New Issue
Block a user