2 Documentation Verify SMO get security error response while issuing APIs with incorrect token
3 # Library REST ssl_verify=False loglevel=DEBUG
4 Library REST ssl_verify=False
5 Variables ${EXECDIR}${/}test_configs.yaml
8 Suite Setup Set REST Headers
11 ${ORAN_HOST_EXTERNAL_IP} ${ocloud.oran_o2_app.api.host}
12 ${ORAN_SERVICE_NODE_PORT} ${ocloud.oran_o2_app.api.node_port}
13 ${GLOBAL_OCLOUD_ID1} ${ocloud.oran_o2_app.g_ocloud_id}
14 ${SMO_TOKEN_DATA} ${ocloud.oran_o2_app.smo_token_data}
15 ${globalLocationId} ${ocloud.oran_o2_app.g_location_id}
17 ${ORAN_O2IMS_ENDPOINT} ${ocloud.oran_o2_app.api.protocol}://${ORAN_HOST_EXTERNAL_IP}:${ORAN_SERVICE_NODE_PORT}
22 s1, Verify query with wrong url got error code.
23 [documentation] Verify query with wrong url got error code.
24 [tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Client_Errors
27 Set Headers {"Authorization": "Bearer ${SMO_TOKEN_DATA}"}
28 ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagersWrongURL
29 log ${res} level=DEBUG
30 Integer response status 404
31 # Object response body
33 s2, Verify query with wrong api version got error code.
34 [documentation] Verify query with wrong api version got error code.
35 [tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Client_Errors
38 Set Headers {"Authorization": "Bearer ${SMO_TOKEN_DATA}"}
39 Expect Response Body ${CURDIR}${/}..${/}o2ims_compliance${/}schemas${/}client_errors_properties.json
40 ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v2/deploymentManagers
42 log ${res} level=DEBUG
43 Integer response status 404
44 # Object response body
46 s3, Verify query with wrong deploymentManagersID got error code.
47 [documentation] Verify query with wrong deploymentManagersID got error code.
48 [tags] ORAN_Compliance ORAN_O2 ORAN_O2IMS ORAN_O2IMS_Client_Errors
51 Set Headers {"Authorization": "Bearer ${SMO_TOKEN_DATA}"}
52 Expect Response Body ${CURDIR}${/}..${/}o2ims_compliance${/}schemas${/}client_errors_properties.json
53 ${res} GET ${ORAN_O2IMS_ENDPOINT}/o2ims-infrastructureInventory/v1/deploymentManagers/wrongDeploymentManagerID
55 log ${res} level=DEBUG
56 Integer response status 404
62 Set Headers {"accept": "application/json"}
63 Set Headers {"Content-Type": "application/json"}
64 # Set Headers {"Authorization": "Bearer ${SMO_TOKEN_DATA}"}
65 Set Client Cert ${CURDIR}/../certs/client.pem