Newer
Older
"tp_id": "TP/NGSI-LD/CI/Prov/EA/013_03",
"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",
lopezaguilar
committed
"initial_condition": "with {\n the SUT being in the \"initial state\" and\n the SUT containing an initial Entity ${entity} \n with an id set to ${entityId} \n}",
"test_cases": [
{
"name": "013_03_01 Delete an attribute when the Entity Id is not known to the system",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/013_03_01",
"doc": "Check that you cannot delete an attribute from an entity with invalid/missing ids",
"tags": [
"ea-delete",
"5_6_5"
],
lopezaguilar
committed
"setup": "Setup Initial Entity",
"teardown": "Delete Initial Entity",
"then": "then {\n the SUT sends a valid Response for the operation:\n Delete Entity Attributes with Response Status Code set to 404\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 '${not_found_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 'false'\n}",
"endpoint": "entities/{entityId}/attrs/{attributeId}?${params_as_string}"
},
{
"name": "013_03_02 Delete an attribute when the Entity does not contain the target attribute id",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/013_03_02",
"doc": "Check that you cannot delete an attribute from an entity with invalid/missing ids",
"tags": [
"ea-delete",
"5_6_5"
],
lopezaguilar
committed
"setup": "Setup Initial Entity",
"teardown": "Delete Initial Entity",
"then": "then {\n the SUT sends a valid Response for the operation:\n Delete Entity Attributes with Response Status Code set to 404\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 '${valid_entity_id}' and\n Query Parameter: attributeId set to 'notFound' and\n Query Parameter: datasetId set to '${datasetId}' and\n Query Parameter: deleteAll set to 'false'\n}",
"endpoint": "entities/{entityId}/attrs/{attributeId}?${params_as_string}"
},
{
"name": "013_03_03 Delete an attribute when the Entity does not contain the target attribute with same datasetId",
"permutation_tp_id": "TP/NGSI-LD/CI/Prov/EA/013_03_03",
"doc": "Check that you cannot delete an attribute from an entity with invalid/missing ids",
"tags": [
"ea-delete",
"5_6_5"
],
lopezaguilar
committed
"setup": "Setup Initial Entity",
"teardown": "Delete Initial Entity",
"then": "then {\n the SUT sends a valid Response for the operation:\n Delete Entity Attributes with Response Status Code set to 404\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 '${valid_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 'false'\n}",
"endpoint": "entities/{entityId}/attrs/{attributeId}?${params_as_string}"
}
],
"permutations": [
"when"
],
"robotpath": "ContextInformation/Provision/EntityAttributes/DeleteEntityAttribute",
"robotfile": "013_03"
}