Skip to content
002_02.json 2.52 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
lopezaguilar's avatar
lopezaguilar committed
  "tp_id": "TP/NGSI-LD/CI/Prov/E/002_02",
lopezaguilar's avatar
lopezaguilar committed
  "test_objective": "Check that you cannot delete an entity with invalid/missing id",
  "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 containing an initial state\n}",
lopezaguilar's avatar
lopezaguilar committed
  "test_cases": [
    {
      "name": "002_02_01 Delete an entity if the Entity Id is not present",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/002_02_01",
lopezaguilar's avatar
lopezaguilar committed
      "doc": "Check that you cannot delete an entity with invalid/missing id",
      "tags": [
lopezaguilar's avatar
lopezaguilar committed
        "5_6_6",
        "e-delete"
lopezaguilar's avatar
lopezaguilar committed
      ],
      "setup": null,
      "teardown": null,
      "template": "Delete Entity Scenarios",
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Delete Entity by Id with Response Status Code set to 405     and\n        Delete Entity by Id with Response Body containing the type '${EMPTY}'     and\n        Delete Entity by Id 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/entities/{id}'\n        method set to 'DELETE'\n        Delete Entity Request with id set to '${EMPTY}'\n}",
      "http_verb": "DELETE",
      "endpoint": "entities/{id}"
    },
    {
      "name": "002_02_02 Delete an entity if the Entity Id is not a valid URI",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/E/002_02_02",
lopezaguilar's avatar
lopezaguilar committed
      "doc": "Check that you cannot delete an entity with invalid/missing id",
      "tags": [
lopezaguilar's avatar
lopezaguilar committed
        "5_6_6",
        "e-delete"
lopezaguilar's avatar
lopezaguilar committed
      ],
      "setup": null,
      "teardown": null,
      "template": "Delete Entity Scenarios",
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Delete Entity by Id with Response Status Code set to 400     and\n        Delete Entity by Id with Response Body containing the type 'https://uri.etsi.org/ngsi-ld/errors/BadRequestData'     and\n        Delete Entity by Id 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/entities/{id}'\n        method set to 'DELETE'\n        Delete Entity Request with id set to 'thisisaninvaliduri'\n}",
      "http_verb": "DELETE",
      "endpoint": "entities/{id}"
    }
  ],
  "permutations": [
lopezaguilar's avatar
lopezaguilar committed
    "when"
  ],
  "robotpath": "ContextInformation/Provision/Entities/DeleteEntity",
  "robotfile": "002_02"
}