Skip to content
036_01.json 2.63 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CS/REG/036_01",
  "test_objective": "Check that you cannot retrieve a Context Source Registration, if the context source registration id is not present or it is not a valid URI",
  "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_01_01 Not Present Id",
      "permutation_tp_id": "TP/NGSI-LD/CS/REG/036_01_01",
      "doc": "",
      "tags": [
        "5_10_1",
        "csr-retrieve"
      ],
      "setup": null,
      "teardown": null,
      "template": "Retrieve Context Source Registration With A Not Present Or Invalid Id",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n        Response body containing 'title' element and\n        Response Status Code set to 400\n}",
      "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 '${EMPTY}'\n}",
      "http_verb": "GET",
      "endpoint": "csourceRegistrations/{context_source_registration_id}"
    },
    {
      "name": "036_01_02 Invalid Id",
      "permutation_tp_id": "TP/NGSI-LD/CS/REG/036_01_02",
      "doc": "",
      "tags": [
        "5_10_1",
        "csr-retrieve"
      ],
      "setup": null,
      "teardown": null,
      "template": "Retrieve Context Source Registration With A Not Present Or Invalid Id",
      "then": "then {\n    the SUT sends a valid Response containing:\n        Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData' and\n        Response body containing 'title' element and\n        Response Status Code set to 400\n}",
      "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 'invalidUri'\n}",
      "http_verb": "GET",
      "endpoint": "csourceRegistrations/{context_source_registration_id}"
    }
  ],
  "permutations": [
    "when"
  ],
  "robotpath": "ContextSource/Registration/RetrieveContextSourceRegistration",
  "robotfile": "036_01"
}