The 'deploymentManagerId' query parameter is intended to be a UUID
formatted value since it corresponds to the attribute with the same
name in the response object (i.e., DeploymentManagerInfo). The
test expects a 404 therefore we need to use a properly formatted
UUID to avoid a 400 error.
Issue-ID: INT-165
Change-Id: I2177f6b737cfeb652dbc19bed16e1f7888b1feb5
Signed-off-by: Allain Legacy <alegacy@redhat.com>
s4, Verify query with wrong deploymentManagerID got error code.
[documentation] Verify query with wrong deploymentManagerID got error code.
[tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Client_Errors
+ ${unknownDeploymentManagerId} Evaluate str(__import__('uuid').uuid4())
+ Log Generated UUID: ${unknownDeploymentManagerId}
# Clear Expectations
Set Headers {"Authorization": "Bearer ${SMO_TOKEN_DATA}"}
Expect Response Body ${CURDIR}${/}..${/}o2ims_compliance${/}schemas${/}client_errors_properties.json
- ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagers/wrongDeploymentManagerID
+ ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagers/${unknownDeploymentManagerId}
Clear Expectations
log ${res} level=DEBUG
Integer response status 404