Skip to content
033_02.json 1.51 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
lopezaguilar's avatar
lopezaguilar committed
  "tp_id": "TP/NGSI-LD/CS/CSR/033_02",
lopezaguilar's avatar
lopezaguilar committed
  "test_objective": "Check that you cannot create a context source with invalid content",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.9.2",
  "config_id": "",
  "parent_release": "v1.3.1",
  "pics_selection": "PICS_5_9_2",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "test_cases": [
    {
      "name": "033_02_01 Create a context source registration with invalid JSON file",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CS/CSR/033_02_01",
lopezaguilar's avatar
lopezaguilar committed
      "doc": "Create a context source registration with invalid JSON file",
      "tags": [
        "5_9_2",
        "csr-create"
      ],
      "setup": null,
lopezaguilar's avatar
lopezaguilar committed
      "teardown": null,
lopezaguilar's avatar
lopezaguilar committed
      "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/BadRequestData' and\n        Response body containing 'title' element and\n        Response Status Code set to 400\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        Create Context Source Registration Request with Content-Type set to 'application/ld+json' and payload set to '${subscription_payload}'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "POST",
      "endpoint": "csourceRegistrations"
    }
  ],
  "permutations": [],
lopezaguilar's avatar
lopezaguilar committed
  "robotpath": "ContextSource/Registration/RegisterContextSource",
lopezaguilar's avatar
lopezaguilar committed
  "robotfile": "033_02"
}