From: Allain Legacy Date: Fri, 7 Feb 2025 01:43:49 +0000 (-0500) Subject: Update tests for deployment manager query params X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=f9df45bd2d93137a3b54ac535f04b3a1bea9a861;p=it%2Ftest.git Update tests for deployment manager query params 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 --- diff --git a/test_scripts/O2IMS_Compliance_Test/o2ims_compliance/7.3.9_SMO_get_correct_response_while_issuing_requests_with_incorrect_APIs.robot b/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 --- a/test_scripts/O2IMS_Compliance_Test/o2ims_compliance/7.3.9_SMO_get_correct_response_while_issuing_requests_with_incorrect_APIs.robot +++ b/test_scripts/O2IMS_Compliance_Test/o2ims_compliance/7.3.9_SMO_get_correct_response_while_issuing_requests_with_incorrect_APIs.robot @@ -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