Skip to content
002_03.json 1.49 KiB
Newer Older
{
  "tp_id": "TP/NGSI-LD/CI/Prov/Entities/DeleteEntity/002_03",
  "test_objective": "Check that you cannot delete an entity if the entity id is not known to the system",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.6",
  "config_id": "",
  "parent_release": "v1.3.1",
  "pics_selection": "PICS_5_6_6",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "test_cases": [
    {
      "name": "002_03_01 Delete an entity with an id not known to the system",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/Entities/DeleteEntity/002_03_01",
      "doc": "Check that you cannot delete an entity if the entity id is not known to the system",
      "tags": [
        "5_6_6",
        "e-delete"
      ],
      "setup": null,
      "teardown": null,
      "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/ResourceNotFound' and\n        Response body containing 'title' element and\n        Response Status Code set to 404\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/entities/{id}'\n        method set to 'DELETE'\n        Delete Entity Request with id set to '${entity_id}'\n}",
      "http_verb": "DELETE",
      "endpoint": "entities/{id}"
    }
  ],
  "permutations": [],
  "robotpath": "ContextInformation/Provision/Entities/DeleteEntity",
  "robotfile": "002_03"
}