"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",
"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}'",
"doc":"Verify that PATCH HTTP requests can be done with \"application/merge-patch+json\" as Content-Type",
"tags":[
"6_3_4",
"ea-partial-update"
],
"setup":null,
"teardown":"Delete Entity by Id",
"template":null,
"then":"then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}",
"when":"when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/entities/{entityId}/attrs/{attributeId}'\n method set to 'PATCH'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'vehicle-simple-attributes-sample.jsonld'",
"doc":"Verify that PATCH HTTP requests can be done with \"application/merge-patch+json\" as Content-Type",
"tags":[
"6_3_4",
"sub-update"
],
"setup":null,
"teardown":"Delete Subscription",
"template":null,
"then":"then {\n the SUT sends a valid Response containing:\n Response Status Code set to 204\n}",
"when":"when {\n the SUT receives a Request from the client containing:\n URL set to '/ngsi-ld/v1/subscriptions/{subscription_id}'\n method set to 'PATCH'\n Request Header['Content-Type'] set to 'application/ld+json' and\n payload defined in file: 'subscriptions/subscription-sample.jsonld'",