Update tests for deployment manager query params 60/14160/4
authorAllain Legacy <alegacy@redhat.com>
Fri, 7 Feb 2025 01:43:49 +0000 (20:43 -0500)
committerAllain Legacy <alegacy@redhat.com>
Fri, 7 Mar 2025 13:09:10 +0000 (08:09 -0500)
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>
test_scripts/O2IMS_Compliance_Test/o2ims_compliance/7.3.9_SMO_get_correct_response_while_issuing_requests_with_incorrect_APIs.robot

index 1bb9c60..3835a33 100644 (file)
@@ -60,11 +60,13 @@ s3, Verify query with wrong api version got error code.
 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