Skip to content
036_02.json 2.07 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
lopezaguilar's avatar
lopezaguilar committed
  "tp_id": "TP/NGSI-LD/CS/DISC/036_02",
lopezaguilar's avatar
lopezaguilar committed
  "test_objective": "Check that you cannot retrieve a Context Source Registration, if the NGSI-LD endpoint does not know about the target context source registration, because there is no existing context source registration whose id (URI) is equivalent",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.10.1",
  "config_id": "",
  "parent_release": "v1.3.1",
  "pics_selection": "PICS_5_10_1",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "test_cases": [
    {
      "name": "036_02_01 Retrieve Unknown Context Source Registration",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CS/DISC/036_02_01",
lopezaguilar's avatar
lopezaguilar committed
      "doc": "Check that you cannot retrieve a Context Source Registration, if the NGSI-LD endpoint does not know about the target context source registration, because there is no existing context source registration whose id (URI) is equivalent",
      "tags": [
        "5_10_1",
        "csr-retrieve"
      ],
      "setup": null,
      "teardown": null,
      "template": null,
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Retrieve Context Source Registration with Response Status Code set to 404     and\n        Retrieve Context Source Registration with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/ResourceNotFound'     and\n        Retrieve Context Source Registration 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/csourceRegistrations/{context_source_registration_id}'\n        method set to 'GET'\n        Retrieve Context Source Registration with data: and\n    Query Parameter: context source registration id set to 'urn:ngsi-ld:ContextSourceRegistration:unknowRegistration'\n}",
      "http_verb": "GET",
      "endpoint": "csourceRegistrations/{context_source_registration_id}"
    }
  ],
  "permutations": [],
lopezaguilar's avatar
lopezaguilar committed
  "robotpath": "ContextSource/Discovery/RetrieveContextSourceRegistration",
lopezaguilar's avatar
lopezaguilar committed
  "robotfile": "036_02"
}