Skip to content
013_02.json 4.02 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
  "tp_id": "TP/NGSI-LD/CI/Prov/EntityAttributes/DeleteEntityAttribute/013_02",
  "test_objective": "Check that you cannot delete an attribute from an entity with invalid/missing ids",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.5",
  "config_id": "",
  "parent_release": "v1.3.1",
  "pics_selection": "PICS_5_6_5",
  "keywords": [],
  "teardown": "None",
  "initial_condition": "with {\n    the SUT in the \"initial state\"\n}",
  "test_cases": [
    {
      "name": "013_02_01 delete an attribute if the Entity Id is not present",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EntityAttributes/DeleteEntityAttribute/013_02_01",
      "doc": "Check that you cannot delete an attribute from an entity with invalid/missing ids",
      "tags": [
        "ea-delete",
        "5_6_5"
      ],
      "setup": "Setup Initial Entities",
      "teardown": "Delete Initial Entities",
      "template": "Delete Attributes",
      "then": "then {\n    the SUT sends a valid Response containing:\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/entities/{entityId}/attrs/{attributeId}?{params_as_string}'\n        method set to 'DELETE'\n        Delete Entity Attributes: and\n    Query Parameter: entityId set to '${EMPTY}' and\n    Query Parameter: attributeId set to 'speed' and\n    Query Parameter: datasetId set to '${EMPTY}' and\n    Query Parameter: deleteAll set to 'false'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "DELETE",
lopezaguilar's avatar
lopezaguilar committed
      "endpoint": "entities/{entityId}/attrs/{attributeId}?{params_as_string}"
lopezaguilar's avatar
lopezaguilar committed
    },
    {
      "name": "013_02_02 delete an attribute if the Entity Id is not a valid URI",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EntityAttributes/DeleteEntityAttribute/013_02_02",
      "doc": "Check that you cannot delete an attribute from an entity with invalid/missing ids",
      "tags": [
        "ea-delete",
        "5_6_5"
      ],
      "setup": "Setup Initial Entities",
      "teardown": "Delete Initial Entities",
      "template": "Delete Attributes",
      "then": "then {\n    the SUT sends a valid Response containing:\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/entities/{entityId}/attrs/{attributeId}?{params_as_string}'\n        method set to 'DELETE'\n        Delete Entity Attributes: and\n    Query Parameter: entityId set to 'thisIsAnInvalidURI' and\n    Query Parameter: attributeId set to 'speed' and\n    Query Parameter: datasetId set to '${EMPTY}' and\n    Query Parameter: deleteAll set to 'false'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "DELETE",
lopezaguilar's avatar
lopezaguilar committed
      "endpoint": "entities/{entityId}/attrs/{attributeId}?{params_as_string}"
lopezaguilar's avatar
lopezaguilar committed
    },
    {
      "name": "013_02_03 delete an attribute if the Attribute Name is not present",
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EntityAttributes/DeleteEntityAttribute/013_02_03",
      "doc": "Check that you cannot delete an attribute from an entity with invalid/missing ids",
      "tags": [
        "ea-delete",
        "5_6_5"
      ],
      "setup": "Setup Initial Entities",
      "teardown": "Delete Initial Entities",
      "template": "Delete Attributes",
      "then": "then {\n    the SUT sends a valid Response containing:\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/entities/{entityId}/attrs/{attributeId}?{params_as_string}'\n        method set to 'DELETE'\n        Delete Entity Attributes: and\n    Query Parameter: entityId set to '${valid_entity_id}' and\n    Query Parameter: attributeId set to '${EMPTY}' and\n    Query Parameter: datasetId set to '${EMPTY}' and\n    Query Parameter: deleteAll set to 'false'\n}",
lopezaguilar's avatar
lopezaguilar committed
      "http_verb": "DELETE",
lopezaguilar's avatar
lopezaguilar committed
      "endpoint": "entities/{entityId}/attrs/{attributeId}?{params_as_string}"
lopezaguilar's avatar
lopezaguilar committed
    }
  ],
  "permutations": [
    "when"
  ],
  "robotpath": "ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute",
  "robotfile": "013_02"
}