file_size和file_integrity_rate类型关键字

This commit is contained in:
姬巍川
2020-06-07 18:51:21 +08:00
parent 6f245c88ff
commit 78f1139faf

View File

@@ -0,0 +1,21 @@
*** Settings ***
Resource PolicyObject.robot
*** Keywords ***
Filter
[Arguments] ${file} ${name} ${lowBoundary} ${upBoundary}
${rescodeip} ${object_FQDN_Id} AddObject {"opAction": "add","returnData": 1,"objectList": {"objectType": "${file}","isValid": 1,"isInitialize": 0,"isExclusion": 0,"objectName": "${name}","objectDesc": "","subObjectIds": [],"addItemList": [{"itemName": "file_size","lowBoundary":${lowBoundary},"upBoundary":${upBoundary}}]}}
log ${object_FQDN_Id}
Filter-1
[Arguments] ${url}
${response} BasePostRequest policy/items body=${body}
#log ${response}
${objectId} Set Variable ${response['data']['objectList'][0]['objectId']} \ data=${data} headers=${header}
${rescodeReturn} Set Variable ${response['code']}
Should Be Equal As Strings ${remoteResponse.status_code} 200
Filter-2
[Arguments] ${url}
${rescodeip} ${object_FQDN_Id} AddObject {"opAction": "add","returnData": 1,"objectList": {"objectType": "${file}","isValid": 1,"isInitialize": 0,"isExclusion": 0,"objectName": "${name}","objectDesc": "","subObjectIds": [],"addItemList": [{"itemName": "file_size","lowBoundary":${lowBoundary},"upBoundary":${upBoundary}}]}}
log ${object_FQDN_Id}