Newer
Older
"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_01 Create entity",
"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'\n}",
"http_verb": "POST",
"endpoint": "entities/"
},
{
"name": "043_01_02 Create subscription",
"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'\n}",
"http_verb": "POST",
"endpoint": "subscriptions/"
},
{
"name": "043_01_03 Create Temporal Representation of Entities",
"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 Create or Update Temporal Representation of Entity Selecting Content Type: and\n Query Parameter: temporal_entity_representation_id set to '${temporal_entity_representation_id}' and\n Query Parameter: filename set to 'bus-temporal-representation-unretrievable-context-sample.jsonld' and\n Query Parameter: content_type set to 'application/ld+json' and\n Query Parameter: accept set to '${EMPTY}'\n}",
"http_verb": "POST",
"endpoint": "temporal/entities"
},
{
"name": "043_01_04 Batch entity create",
"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 'application/ld+json' and\n payload set to a list of entities to be created\n}",
"http_verb": "POST",
"endpoint": "entityOperations/create"
},
{
"name": "043_01_05 Create context source registration",
"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}'\n}",
"http_verb": "POST",
"endpoint": "csourceRegistrations"
}
],
"permutations": [
"endpoint",
"robotpath": "CommonBehaviours/CommonResponses/VerifyLdContextNotAvailable",
"robotfile": "043_01"