Newer
Older
{
"tp_id": "TP/NGSI-LD/CI/Prov/TEA/015_01",
"test_objective": "Check that you can delete an attribute of a temporal representation of an entity with simple temporal properties",
"reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.13",
"config_id": "",
"parent_release": "v1.3.1",
"pics_selection": "PICS_5_6_13",
"keywords": [],
"teardown": "None",
lopezaguilar
committed
"initial_condition": "with {\n the SUT being in the \"initial state\" and\n the SUT containing an initial Temporal Entity ${entity} \n with an id set to ${temporal_entity_representation_id} \n}",
"test_cases": [
{
"name": "015_01_01 Delete an attribute from a temporal representation of an entity without deleteAll/datasetId",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/TEA/015_01_01",
"doc": "Check that you can delete an attribute of a temporal representation of an entity with simple temporal properties",
"tags": [
"tea-delete",
"5_6_13"
],
"setup": "Initialize Setup",
"teardown": "Delete Temporal Entity",
"template": "Delete Attribute From A Temporal Entity",
"then": "then {\n the SUT sends a valid Response for the operations:\n Delete Attribute 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/{entityId}/attrs/{attributeId}?${params_as_string}'\n method set to 'DELETE'\n Delete Attribute From Temporal Entity: and\n Query Parameter: entityId set to '${temporal_entity_representation_id}' and\n Query Parameter: attributeId set to 'fuelLevel' and\n Query Parameter: content_type set to 'application/json' and\n Query Parameter: datasetId set to '${datasetid}' and\n Query Parameter: deleteAll set to '${deleteall}' 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/{entityId}/attrs/{attributeId}?${params_as_string}"
},
{
"name": "015_01_02 Delete an attribute from a temporal representation of an entity with datasetId",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/TEA/015_01_02",
"doc": "Check that you can delete an attribute of a temporal representation of an entity with simple temporal properties",
"tags": [
"tea-delete",
"5_6_13"
],
"setup": "Initialize Setup",
"teardown": "Delete Temporal Entity",
"template": "Delete Attribute From A Temporal Entity",
"then": "then {\n the SUT sends a valid Response for the operations:\n Delete Attribute 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/{entityId}/attrs/{attributeId}?${params_as_string}'\n method set to 'DELETE'\n Delete Attribute From Temporal Entity: and\n Query Parameter: entityId set to '${temporal_entity_representation_id}' and\n Query Parameter: attributeId set to 'fuelLevel' and\n Query Parameter: content_type set to 'application/json' and\n Query Parameter: datasetId set to '${datasetid}' and\n Query Parameter: deleteAll set to '${deleteall}' 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/{entityId}/attrs/{attributeId}?${params_as_string}"
},
{
"name": "015_01_03 Delete an attribute from a temporal representation of an entity with deleteAll",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/TEA/015_01_03",
"doc": "Check that you can delete an attribute of a temporal representation of an entity with simple temporal properties",
"tags": [
"tea-delete",
"5_6_13"
],
"setup": "Initialize Setup",
"teardown": "Delete Temporal Entity",
"template": "Delete Attribute From A Temporal Entity",
"then": "then {\n the SUT sends a valid Response for the operations:\n Delete Attribute 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/{entityId}/attrs/{attributeId}?${params_as_string}'\n method set to 'DELETE'\n Delete Attribute From Temporal Entity: and\n Query Parameter: entityId set to '${temporal_entity_representation_id}' and\n Query Parameter: attributeId set to 'fuelLevel' and\n Query Parameter: content_type set to 'application/json' and\n Query Parameter: datasetId set to '${datasetid}' and\n Query Parameter: deleteAll set to '${deleteall}' 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/{entityId}/attrs/{attributeId}?${params_as_string}"
}
],
"permutations": [],
"robotpath": "ContextInformation/Provision/TemporalEntityAttributes/DeleteAttribute",
"robotfile": "015_01"
}