Skip to content
017_01.json 2.24 KiB
Newer Older
lopezaguilar's avatar
lopezaguilar committed
{
lopezaguilar's avatar
lopezaguilar committed
  "tp_id": "TP/NGSI-LD/CI/Prov/TEA/017_01",
lopezaguilar's avatar
lopezaguilar committed
  "test_objective": "Check that you can delete an attribute instance in temporal representation of an entity",
  "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.15",
  "config_id": "",
  "parent_release": "v1.3.1",
  "clauses": [
    "5.6.15"
  ],
  "pics_selection": "",
lopezaguilar's avatar
lopezaguilar committed
  "keywords": [
    "Delete Temporal Entity"
  ],
  "teardown": "Delete Temporal Entity",
  "initial_condition": "with {\n   the SUT containing an initial state\n}",
lopezaguilar's avatar
lopezaguilar committed
  "test_cases": [
    {
      "name": "017_01_01 Delete an attribute instance in temporal representation of an entity",
lopezaguilar's avatar
lopezaguilar committed
      "permutation_tp_id": "TP/NGSI-LD/CI/Prov/TEA/017_01_01",
lopezaguilar's avatar
lopezaguilar committed
      "doc": "Check that you can delete an attribute instance in temporal representation of an entity",
      "tags": [
        "5_6_15",
        "tea-instance-delete"
      ],
      "setup": null,
      "teardown": null,
      "template": null,
      "then": "then {\n    the SUT sends a valid Response for the operations:\n        Create Or Update Temporal Representation Of Entity Selecting Content Type with Response Status Code set to 201     and\n        Delete Attribute Instance From Temporal Entity with Response Status Code set to 204     and\n        Retrieve Temporal Representation Of Entity with Updated Entity set to ${entity}\n}",
      "when": "when {\n    the SUT receives a Request from the client containing:\n        URL set to '/ngsi-ld/v1/temporal/entities/{temporal_entity_id}/attrs/speed/{instanceId}'\n        method set to 'DELETE'\n        Delete Attribute Instance from Temporal Entity: and\n    Query Parameter: temporal_entity_id set to '${temporal_entity_representation_id}' and\n    Query Parameter: attributeId set to 'speed' and\n    Query Parameter: instanceId set to '${instanceId}' and\n    Query Parameter: content_type set to 'application/json' and\n    Query Parameter: context set to 'https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld'\n}",
      "http_verb": "DELETE",
      "endpoint": "temporal/entities/{temporal_entity_id}/attrs/speed/{instanceId}"
lopezaguilar's avatar
lopezaguilar committed
    }
  ],
  "permutations": [],
  "robotpath": "ContextInformation/Provision/TemporalEntityAttributes/DeleteAttributeInstance",
  "robotfile": "017_01"
}