Skip to content
043_01.json 6.63 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
  "tp_id": "TP/NGSI-LD/CB/HTTP/043_01",
  "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",
  "clauses": [
    "5.2.2"
  ],
  "pics_selection": "",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n   the SUT containing an initial state\n}",
      "name": "043_01_01 Create entity",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CB/HTTP/043_01_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 for the operations:\n        Create Entity Selecting Content Type with Response Status Code set to 503     and\n        Create Entity Selecting Content Type with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable'     and\n        Create Entity Selecting Content Type with Response body containing 'title' element\n}",
lopezaguilar's avatar
lopezaguilar committed
      "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",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CB/HTTP/043_01_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 for the operations:\n        Create Subscription with Response Status Code set to 503     and\n        Create Subscription with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable'     and\n        Create Subscription with Response body containing 'title' element\n}",
lopezaguilar's avatar
lopezaguilar committed
      "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",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CB/HTTP/043_01_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 for the operations:\n        Create Or Update Temporal Representation Of Entity Selecting Content Type with Response Status Code set to 503     and\n        Create Or Update Temporal Representation Of Entity Selecting Content Type with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable'     and\n        Create Or Update Temporal Representation Of Entity Selecting Content Type with Response body containing 'title' element\n}",
lopezaguilar's avatar
lopezaguilar committed
      "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",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CB/HTTP/043_01_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 for the operations:\n        Batch Create Entities with Response Status Code set to 503     and\n        Batch Create Entities with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/LdContextNotAvailable'     and\n        Batch Create Entities with Response body containing 'title' element\n}",
lopezaguilar's avatar
lopezaguilar committed
      "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",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CB/HTTP/043_01_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 for the operation:\n        Create Context Source Registration With Return with Response Status Code set to 503\n}",
lopezaguilar's avatar
lopezaguilar committed
      "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": [
lopezaguilar's avatar
lopezaguilar committed
  "robotpath": "CommonBehaviours/CommonResponses/VerifyLdContextNotAvailable",