X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test_scripts%2FO2IMS_Compliance_Test%2Fo2ims_compliance%2F7.3.10_SMO_succeeds_to_get_O2dms_%28in_Kubernetes_native_API_Profile%29_access_information.robot;fp=test_scripts%2FO2IMS_Compliance_Test%2Fo2ims_compliance%2F7.3.10_SMO_succeeds_to_get_O2dms_%28in_Kubernetes_native_API_Profile%29_access_information.robot;h=fc5da56edb7a6d7266225b3792afd34a9a0ce79c;hb=409d070b3bdde3e4676c507a959d245ff246fa9f;hp=0000000000000000000000000000000000000000;hpb=ca6b81bb15b879eff50598350b018946f2e3dced;p=it%2Ftest.git diff --git a/test_scripts/O2IMS_Compliance_Test/o2ims_compliance/7.3.10_SMO_succeeds_to_get_O2dms_(in_Kubernetes_native_API_Profile)_access_information.robot b/test_scripts/O2IMS_Compliance_Test/o2ims_compliance/7.3.10_SMO_succeeds_to_get_O2dms_(in_Kubernetes_native_API_Profile)_access_information.robot new file mode 100644 index 0000000..fc5da56 --- /dev/null +++ b/test_scripts/O2IMS_Compliance_Test/o2ims_compliance/7.3.10_SMO_succeeds_to_get_O2dms_(in_Kubernetes_native_API_Profile)_access_information.robot @@ -0,0 +1,84 @@ +*** Settings *** +Documentation Verify SMO succeeds to get O2dms (in kubernetes native API profile) access information +# Library REST ssl_verify=False loglevel=DEBUG +Library REST ssl_verify=False +Variables ${EXECDIR}${/}test_configs.yaml + +Suite Setup Set REST Headers + +*** Variables *** +${ORAN_HOST_EXTERNAL_IP} ${ocloud.oran_o2_app.api.host} +${ORAN_SERVICE_NODE_PORT} ${ocloud.oran_o2_app.api.node_port} +${GLOBAL_OCLOUD_ID1} ${ocloud.oran_o2_app.g_ocloud_id} +${SMO_TOKEN_DATA} ${ocloud.oran_o2_app.smo_token_data} +${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} + +${deploymentManagerName} kubernetes + +*** Test Cases *** +s1, query deploymentManager list without filter + [documentation] This test case verifies query deploymentManager list without filter + [tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_DeploymentManager + + # Clear Expectations + Expect Response Body ${CURDIR}/schemas/deploymentManagers_properties.json + ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagers + # Output Schema response body ${CURDIR}/schemas/.output/deploymentManagers_properties.json + Clear Expectations + log ${res} level=DEBUG + Integer response status 200 + Array response body + +s2, query deploymentManager list with filter + [documentation] This test case verifies query deploymentManager list with filter + [tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_DeploymentManager + + # Clear Expectations + Expect Response Body ${CURDIR}/schemas/deploymentManagers_properties.json + ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagers?filter=(cont,name,${deploymentManagerName}) + Clear Expectations + log ${res} level=INFO + Integer response status 200 + Array response body + Array $ minItems=1 uniqueItems=true + +s3, query a deploymentManager detail + [documentation] This test case verifies query a deploymentManager detail + [tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_DeploymentManager + + Clear Expectations + # Expect Response Body ${CURDIR}/schemas/deploymentManagers_properties.json + ${res1} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagers?filter=(cont,name,${deploymentManagerName}) + # Clear Expectations + log ${res1} level=INFO + Integer response status 200 + Array response body + Array $ minItems=1 uniqueItems=true + + ${deploymentManagerId} output $[0].deploymentManagerId + + # Clear Expectations + Expect Response Body ${CURDIR}/schemas/deploymentManager_properties.json + ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagers/${deploymentManagerId} + # Output Schema response body ${CURDIR}/schemas/.output/deploymentManager_properties.json + Clear Expectations + log ${res} level=INFO + Integer response status 200 + Object response body + + # all_fields + Expect Response Body ${CURDIR}/schemas/deploymentManager_allfields_properties.json + ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagers/${deploymentManagerId}?all_fields + # Output Schema response body ${CURDIR}/schemas/.output/deploymentManager_allfields_properties.json + Clear Expectations + log ${res} level=INFO + Integer response status 200 + Object response body + + +*** Keywords *** +Set REST Headers + Set Headers {"accept": "application/json"} + Set Headers {"Authorization": "Bearer ${SMO_TOKEN_DATA}"}