{ "tp_id": "TP/NGSI-LD/CI/Prov/EA/013_01", "test_objective": "Check that you can delete an attribute from an entity", "reference": "ETSI GS CIM 009 V1.3.1 [], clause 5.6.5", "config_id": "", "parent_release": "v1.3.1", "clauses": [ "5.6.5" ], "pics_selection": "", "keywords": [], "teardown": "None", "initial_condition": "with {\n the SUT containing an initial state\n}", "test_cases": [ { "name": "013_01_01 Delete an attribute with the default instance", "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/013_01_01", "doc": "Check that you can delete an attribute from an entity", "tags": [ "ea-delete", "5_6_5" ], "setup": null, "teardown": "Delete Initial Entities", "template": "Delete Attributes", "then": "then {\n the SUT sends a valid Response for the operations:\n Create Entity Selecting Content Type with Response Status Code set to 201 and\n Delete Entity Attributes with Response Status Code set to 204 and\n Retrieve Entity by Id 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/entities/{entityId}/attrs/{attributeId}?${params_as_string}'\n method set to 'DELETE'\n Delete Entity Attributes: and\n Query Parameter: entityId set to '${entity_id}' and\n Query Parameter: attributeId set to 'speed' 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": "entities/{entityId}/attrs/{attributeId}?${params_as_string}" }, { "name": "013_01_02 Delete an attribute with the datasetId", "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/013_01_02", "doc": "Check that you can delete an attribute from an entity", "tags": [ "ea-delete", "5_6_5" ], "setup": null, "teardown": "Delete Initial Entities", "template": "Delete Attributes", "then": "then {\n the SUT sends a valid Response for the operations:\n Create Entity Selecting Content Type with Response Status Code set to 201 and\n Delete Entity Attributes with Response Status Code set to 204 and\n Retrieve Entity by Id 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/entities/{entityId}/attrs/{attributeId}?${params_as_string}'\n method set to 'DELETE'\n Delete Entity Attributes: and\n Query Parameter: entityId set to '${entity_id}' and\n Query Parameter: attributeId set to 'speed' 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": "entities/{entityId}/attrs/{attributeId}?${params_as_string}" }, { "name": "013_01_03 Delete all target attribute instances", "permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/013_01_03", "doc": "Check that you can delete an attribute from an entity", "tags": [ "ea-delete", "5_6_5" ], "setup": null, "teardown": "Delete Initial Entities", "template": "Delete Attributes", "then": "then {\n the SUT sends a valid Response for the operations:\n Create Entity Selecting Content Type with Response Status Code set to 201 and\n Delete Entity Attributes with Response Status Code set to 204 and\n Retrieve Entity by Id 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/entities/{entityId}/attrs/{attributeId}?${params_as_string}'\n method set to 'DELETE'\n Delete Entity Attributes: and\n Query Parameter: entityId set to '${entity_id}' and\n Query Parameter: attributeId set to 'speed' 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": "entities/{entityId}/attrs/{attributeId}?${params_as_string}" } ], "permutations": [], "robotpath": "ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute", "robotfile": "013_01" }