Skip to content
034_01.json 1.92 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CS/REG/034_01",
  "test_objective": "Check that you can update a context source registration by id",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.9.3",
  "config_id": "",
  "parent_release": "v1.3.1",
  "pics_selection": "PICS_5_9_3",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT being in the \"initial state\" and\n    the SUT contains a Context Source Registration \n        with id equal to ${context_source_registration_id}\n        and payload set to ${context_source_registration_payload_file_path}\n}",
lopezaguilar's avatar
lopezaguilar committed
  "test_cases": [
    {
      "name": "034_01_01 Update a context source registration by id",
      "permutation_tp_id": "TP/NGSI-LD/CS/REG/034_01_01",
      "doc": "Check that you can update a context source registration by id",
      "tags": [
        "5_9_3",
        "csr-update"
      ],
      "setup": "Initialize the Test Case",
      "teardown": "Delete Updated Context Source Registration",
lopezaguilar's avatar
lopezaguilar committed
      "template": "Update A Context Source",
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Update Context Source Registration With Return with Response Status Code set to 204     and\n        Retrieve Context Source Registration with Response Body containing the key '['endpoint']', with the value 'http://my.new.csource.org:1026'\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/csourceRegistrations/{registration_id}'\n        method set to 'PATCH'\n        Update Context Source Registration with id set to '${registration_id}' and registration update fragment set to '${registration_update_fragment}' and content-type set to 'application/json'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "PATCH",
      "endpoint": "csourceRegistrations/{registration_id}"
    }
  ],
  "permutations": [],
  "robotpath": "ContextSource/Registration/UpdateContextSourceRegistration",
  "robotfile": "034_01"
}