From f9df45bd2d93137a3b54ac535f04b3a1bea9a861 Mon Sep 17 00:00:00 2001 From: Allain Legacy Date: Thu, 6 Feb 2025 20:43:49 -0500 Subject: [PATCH] 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 --- ..._correct_response_while_issuing_requests_with_incorrect_APIs.robot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.16.6