${ORAN_O2IMS_ENDPOINT} ${ocloud.oran_o2_app.api.protocol}://${ORAN_HOST_EXTERNAL_IP}:${ORAN_SERVICE_NODE_PORT}
${ORAN_O2IMS_ENDPOINT_DEFAULT_PORT} ${ocloud.oran_o2_app.api.protocol}://${ORAN_HOST_EXTERNAL_IP}
+${RESOURCETYPE_NAME} ${ocloud.oran_o2_app.resourcetype_name}
*** Test Cases ***
s1, query o-cloud detail
[tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Inventory
# Clear Expectations
Expect Response Body ${CURDIR}/schemas/resourceTypes_properties.json
- ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,pserver)
+ ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,${RESOURCETYPE_NAME})
Clear Expectations
log ${res} level=DEBUG
Integer response status 200
[documentation] This test case verifies Query OCloud resourceTypes detail
[tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Inventory
Clear Expectations
- GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,pserver)
+ GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,${RESOURCETYPE_NAME})
${resourceTypeId} output $[0].resourceTypeId
# Clear Expectations
Expect Response Body ${CURDIR}/schemas/resourceType_properties.json
[documentation] This test case verifies Query OCloud Resource list with filter
[tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Inventory
Clear Expectations
- GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,pserver)
+ GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,${RESOURCETYPE_NAME})
${resourceTypeId} output $[0].resourceTypeId
Clear Expectations
GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourcePools
[documentation] This test case verifies query Resource list of a Resource Pool with selector
[tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Inventory
Clear Expectations
- GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,pserver)
+ GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,${RESOURCETYPE_NAME})
${resourceTypeId} output $[0].resourceTypeId
Clear Expectations
GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourcePools
END
s13, query Resource detail
- [documentation] This test case verifies Query OCloud Resource Detail of pserver
+ [documentation] This test case verifies Query OCloud Resource Detail of ${RESOURCETYPE_NAME}
[tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Inventory
Clear Expectations
- GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,pserver)
+ GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,${RESOURCETYPE_NAME})
${resourceTypeId} output $[0].resourceTypeId
GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourcePools
@{resourcePools} output $
${globalLocationId} ${ocloud.oran_o2_app.g_location_id}
${ORAN_O2IMS_ENDPOINT} ${ocloud.oran_o2_app.api.protocol}://${ORAN_HOST_EXTERNAL_IP}:${ORAN_SERVICE_NODE_PORT}
+${RESOURCETYPE_NAME} ${ocloud.oran_o2_app.resourcetype_name}
*** Test Cases ***
Integer response status 405
Object response body
- GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,pserver)
+ GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes?filter=(eq,name,${RESOURCETYPE_NAME})
${resourceTypeId} output $[0].resourceTypeId
${res} PUT ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/resourceTypes/${resourceTypeId}
# Clear Expectations