*** Test Cases *** DELETEALL DATASETID EXPECTATION_FILE
015_01_01_Delete an attribute from a temporal representation of an entity without deleteALL/datasetIDfalse${EMPTY}vehicle-temporal-representation-delete-fuelLevel-expectation.jsonld
015_01_01_Delete an attribute from a temporal representation of an entity without deleteAll/datasetIdfalse${EMPTY}vehicle-temporal-representation-delete-fuelLevel-expectation.jsonld
015_01_02_Delete an attribute from a temporal representation of an entity with datasetIdfalseurn:ngsi-ld:Vehicle:12345-fuelvehicle-temporal-representation-delete-fuelLevel-datasetid-expectation.jsonld
015_01_03_Delete an attribute from a temporal representation of an entity with deleteALL/datasetIDtrueurn:ngsi-ld:Vehicle:12345-fuelvehicle-temporal-representation-deleteall-fuelLevel-expectation.jsonld
015_01_03_Delete an attribute from a temporal representation of an entity with deleteAlltrue${EMPTY}vehicle-temporal-representation-deleteall-fuelLevel-expectation.jsonld
*** Keywords ***
Delete Attribute From A Temporal Entity
@@ -27,7 +27,7 @@ Delete Attribute From A Temporal Entity
${response}=Create Or Update Temporal Representation Of Entity Selecting Content Type${temporal_entity_representation_id}${filename}${CONTENT_TYPE_LD_JSON}
Check Response Status Code201${response['status']}
${response}=Delete Attribute From Temporal Entity${temporal_entity_representation_id}${attribute_id}${CONTENT_TYPE_LD_JSON}${datasetId}${deleteAll}
${response}=Delete Attribute From Temporal Entity${temporal_entity_representation_id}${attribute_id}${CONTENT_TYPE_JSON}${datasetId}${deleteAll}${ngsild_test_suite_context}
Check Response Status Code${status_code}${response['status']}
${temporal_entity_expectation_payload}=Load Test SampletemporalEntities/expectations/${expectation_filename}${temporal_entity_representation_id}
${response}=Create Or Update Temporal Representation Of Entity Selecting Content Type${temporal_entity_representation_id}${filename}${CONTENT_TYPE_LD_JSON}
Check Response Status Code201${response['status']}
${response}=Get Temporal Representation Of Entity${temporal_entity_representation_id}${CONTENT_TYPE_LD_JSON}sysAttrs
${response}=Get Temporal Representation Of Entity${temporal_entity_representation_id}${CONTENT_TYPE_LD_JSON}sysAttrs${ngsild_test_suite_context}
017_02_02_delete an attribute instance in temporal representation of an entity if the entity id is not present${EMPTY}speed${valid_instanceId}
017_02_03_delete an attribute instance in temporal representation of an entity if the instance id is not valid${temporal_entity_representation_id}speedinvalidId
017_02_04_delete an attribute instance in temporal representation of an entity if the instance id is not present${temporal_entity_representation_id}speed${EMPTY}
017_02_05_delete an attribute instance in temporal representation of an entity if the attribute name is not a valid name${temporal_entity_representation_id}invalidId${valid_instanceId}
017_02_05_delete an attribute instance in temporal representation of an entity if the attribute name is not a valid name${temporal_entity_representation_id}invalid(Name${valid_instanceId}
017_02_06_delete an attribute instance in temporal representation of an entity if the attribute name is not present${temporal_entity_representation_id}${EMPTY}${valid_instanceId}
*** Keywords ***
@@ -26,7 +26,7 @@ Delete attribute instance
[Documentation]Check that you cannot delete an attribute instance in temporal representation of an entity if the entityId/attributeId/instanceId is not right
[Tags]mandatory
${response}=Delete Attribute Instance From Temporal Entity${temporal_entity_id}${attributeId}${instanceId}${CONTENT_TYPE_LD_JSON}
${response}=Delete Attribute Instance From Temporal Entity${temporal_entity_id}${attributeId}${instanceId}${CONTENT_TYPE_JSON}${ngsild_test_suite_context}
Check Response Status Code${status_code}${response['status']}
[Teardown]Delete Temporal Representation Of Entity${temporal_entity_representation_id}
@@ -37,6 +37,6 @@ Create Id
${response}=Create Or Update Temporal Representation Of Entity Selecting Content Type${temporal_entity_representation_id}${filename}${CONTENT_TYPE_LD_JSON}
Check Response Status Code201${response['status']}
${response}=Get Temporal Representation Of Entity${temporal_entity_representation_id}${CONTENT_TYPE_LD_JSON}sysAttrs
${response}=Get Temporal Representation Of Entity${temporal_entity_representation_id}${CONTENT_TYPE_LD_JSON}sysAttrs${ngsild_test_suite_context}