{ "tp_id": "TP/NGSI-LD/CB/043", "test_objective": "Verify receiving 503 \u2013 LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved", "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.2.2", "config_id": "", "parent_release": "v1.3.1", "pics_selection": "PICS_5_2_2", "keywords": [], "teardown": "None", "initial_condition": "with {\n the SUT in the \"initial state\"\n}", "test_cases": [ { "name": "043_01 Create entity", "permutation_tp_id": "TP/NGSI-LD/CB/043_01", "doc": "Verify receiving 503 \u2013 LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create entity)", "tags": [ "5_2_2", "e-create" ], "setup": null, "teardown": "Delete Entity by Id", "template": null, "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'building-unretrievable-context-sample.jsonld'", "http_verb": "POST", "endpoint": "entities/" }, { "name": "043_02 Create subscription", "permutation_tp_id": "TP/NGSI-LD/CB/043_02", "doc": "Verify receiving 503 \u2013 LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create subscription)", "tags": [ "5_2_2", "sub-create" ], "setup": null, "teardown": "Delete Subscription", "template": null, "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'subscriptions/subscription-unretrievable-context-sample.jsonld'", "http_verb": "POST", "endpoint": "subscriptions/" }, { "name": "043_03 Create Temporal Representation of Entities", "permutation_tp_id": "TP/NGSI-LD/CB/043_03", "doc": "Verify receiving 503 \u2013 LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create Temporal Representation of Entities)", "tags": [ "5_2_2", "te-create" ], "setup": null, "teardown": "Delete Temporal Representation Of Entity", "template": null, "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/temporal/entities'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'bus-temporal-representation-unretrievable-context-sample.jsonld'", "http_verb": "POST", "endpoint": "temporal/entities" }, { "name": "043_04 Batch entity create", "permutation_tp_id": "TP/NGSI-LD/CB/043_04", "doc": "Verify receiving 503 \u2013 LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Batch entity create)", "tags": [ "5_2_2", "be-create" ], "setup": null, "teardown": "Batch Delete Entities", "template": null, "then": "then {\n the SUT sends a valid Response containing:\n Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable' and\n Response body containing 'title' element and\n Response Status Code set to 503\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entityOperations/create'\n method set to 'POST'\n Request Header['Content-Type'] set to 'content_type=${CONTENT_TYPE_LD_JSON}' and\n payload set to a list of entities to be created", "http_verb": "POST", "endpoint": "entityOperations/create" }, { "name": "043_05 Create context source registration", "permutation_tp_id": "TP/NGSI-LD/CB/043_05", "doc": "Verify receiving 503 \u2013 LdContextNotAvailable error if remote JSON-LD @context cannot be retrieved (Create context source registration)", "tags": [ "5_2_2", "csr-create" ], "setup": null, "teardown": "Delete Context Source Registration", "template": null, "then": "then {\n the SUT sends a valid Response containing:\n Response Status Code set to 503\n}", "when": "when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/csourceRegistrations'\n method set to 'POST'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: '${updated_payload}'", "http_verb": "POST", "endpoint": "csourceRegistrations" } ], "permutations": [ "when", "endpoint", "then" ] }