Loading TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/DeleteTemporalRepresentationOfEntity/009_02.robot +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: *** Test Cases *** STATUS_CODE ID PROBLEM_TYPE 009_02_01_Delete a temporal representation of an entity with an empty entity id 009_02_01 Delete a temporal representation of an entity with an empty entity id 400 ${EMPTY} ${ERROR_TYPE_BAD_REQUEST_DATA} 009_02_02 Delete a temporal representation of an entity with an invalid entity id 400 invalidId ${ERROR_TYPE_BAD_REQUEST_DATA} Loading TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/DeleteTemporalRepresentationOfEntity/009_03.robot +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ ${status_code}= 404 *** Test Cases *** 009_03 Delete a temporal representation of an entity with an unknown entity id 009_03_01 Delete a temporal representation of an entity with an unknown entity id [Documentation] Check that an error is raised if you delete a temporal entity with a non-existing entity id [Tags] te-delete 5_6_16 ${temporal_entity_id}= Generate Random Entity Id ${vehicle_id_prefix} Loading TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/UpdateTemporalRepresentationOfEntity/008_01.robot +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ ${expectation_filename}= vehicle-temporal-representation-update-expectation.j *** Test Cases *** 008_01_Update a temporal representation of an entity with simple temporal properties 008_01_01 Update a temporal representation of an entity with simple temporal properties [Documentation] Check that you can update a temporal representation of an entity with simple temporal properties [Tags] te-update 5_6_11 ${temporal_entity_representation_id}= Generate Random Entity Id ${vehicle_id_prefix} Loading TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/AppendAttributes/014_01.robot +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ ${expectation_filename}= vehicle-temporal-representation-added-attribute-expe *** Test Cases *** 014_01_Add an attribute to a temporal entity with simple temporal properties 014_01_01 Add an attribute to a temporal entity with simple temporal properties [Documentation] Check that you can add a simple temporal attribute to a temporal representation of an entity [Tags] tea-append 5_6_12 ${temporal_entity_representation_id}= Generate Random Entity Id ${vehicle_id_prefix} Loading TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/AppendAttributes/014_02.robot +4 −28 Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ Resource ${EXECDIR}/resources/ApiUtils/TemporalContextInformationProv Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Test Template Add Attribute To Temporal Entity *** Variables *** ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: Loading @@ -15,39 +17,13 @@ ${status_code}= 400 *** Test Cases *** 014_02_01_Add an attribute to a temporal representation of an entity with invalid content Add an Attribute To a Temporal Entity From File vehicle-temporal-representation-invalid-json-fragment.jsonld 014_02_02_Add an attribute to a temporal representation of an entity with empty content Add an Attribute To a Temporal Entity From File vehicle-temporal-representation-empty-json-fragment.jsonld 014_02_03_Add an attribute to a temporal representation of an entity with an empty entity id 014_02_01 Add an attribute to a temporal representation of an entity with an empty entity id Add Attribute To Temporal Entity ${EMPTY} 014_02_04_Add an attribute to a temporal representation of an entity with an invalid entity id 014_02_02 Add an attribute to a temporal representation of an entity with an invalid entity id Add Attribute To Temporal Entity thisIsAninvalidId *** Keywords *** Add an Attribute To a Temporal Entity From File [Documentation] Check that an error is raised if you add a temporal entity attribute with empty/invalid content [Tags] tea-append 5_6_12 [Arguments] ${update_filename} ${temporal_entity_representation_id}= Generate Random Entity Id ${vehicle_id_prefix} ${response}= Create Or Update Temporal Representation Of Entity Selecting Content Type ... ${temporal_entity_representation_id} ... ${filename} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response.status_code} ${response}= Append Attribute To Temporal Entity ... ${temporal_entity_representation_id} ... ${update_filename} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} Check Response Body Type When Using Session Request ${response.json()} ${ERROR_TYPE_INVALID_REQUEST} Check Response Body Title When Using Session Request ${response.json()} [Teardown] Delete Temporal Representation Of Entity ${temporal_entity_representation_id} Add Attribute To Temporal Entity [Documentation] Check that an error is raised if you add a temporal entity attribute with a non-existing/invalid EntityId [Tags] tea-append 5_6_12 Loading Loading
TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/DeleteTemporalRepresentationOfEntity/009_02.robot +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: *** Test Cases *** STATUS_CODE ID PROBLEM_TYPE 009_02_01_Delete a temporal representation of an entity with an empty entity id 009_02_01 Delete a temporal representation of an entity with an empty entity id 400 ${EMPTY} ${ERROR_TYPE_BAD_REQUEST_DATA} 009_02_02 Delete a temporal representation of an entity with an invalid entity id 400 invalidId ${ERROR_TYPE_BAD_REQUEST_DATA} Loading
TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/DeleteTemporalRepresentationOfEntity/009_03.robot +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ ${status_code}= 404 *** Test Cases *** 009_03 Delete a temporal representation of an entity with an unknown entity id 009_03_01 Delete a temporal representation of an entity with an unknown entity id [Documentation] Check that an error is raised if you delete a temporal entity with a non-existing entity id [Tags] te-delete 5_6_16 ${temporal_entity_id}= Generate Random Entity Id ${vehicle_id_prefix} Loading
TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/UpdateTemporalRepresentationOfEntity/008_01.robot +1 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ ${expectation_filename}= vehicle-temporal-representation-update-expectation.j *** Test Cases *** 008_01_Update a temporal representation of an entity with simple temporal properties 008_01_01 Update a temporal representation of an entity with simple temporal properties [Documentation] Check that you can update a temporal representation of an entity with simple temporal properties [Tags] te-update 5_6_11 ${temporal_entity_representation_id}= Generate Random Entity Id ${vehicle_id_prefix} Loading
TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/AppendAttributes/014_01.robot +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ ${expectation_filename}= vehicle-temporal-representation-added-attribute-expe *** Test Cases *** 014_01_Add an attribute to a temporal entity with simple temporal properties 014_01_01 Add an attribute to a temporal entity with simple temporal properties [Documentation] Check that you can add a simple temporal attribute to a temporal representation of an entity [Tags] tea-append 5_6_12 ${temporal_entity_representation_id}= Generate Random Entity Id ${vehicle_id_prefix} Loading
TP/NGSI-LD/ContextInformation/Provision/TemporalEntityAttributes/AppendAttributes/014_02.robot +4 −28 Original line number Diff line number Diff line Loading @@ -6,6 +6,8 @@ Resource ${EXECDIR}/resources/ApiUtils/TemporalContextInformationProv Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Test Template Add Attribute To Temporal Entity *** Variables *** ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: Loading @@ -15,39 +17,13 @@ ${status_code}= 400 *** Test Cases *** 014_02_01_Add an attribute to a temporal representation of an entity with invalid content Add an Attribute To a Temporal Entity From File vehicle-temporal-representation-invalid-json-fragment.jsonld 014_02_02_Add an attribute to a temporal representation of an entity with empty content Add an Attribute To a Temporal Entity From File vehicle-temporal-representation-empty-json-fragment.jsonld 014_02_03_Add an attribute to a temporal representation of an entity with an empty entity id 014_02_01 Add an attribute to a temporal representation of an entity with an empty entity id Add Attribute To Temporal Entity ${EMPTY} 014_02_04_Add an attribute to a temporal representation of an entity with an invalid entity id 014_02_02 Add an attribute to a temporal representation of an entity with an invalid entity id Add Attribute To Temporal Entity thisIsAninvalidId *** Keywords *** Add an Attribute To a Temporal Entity From File [Documentation] Check that an error is raised if you add a temporal entity attribute with empty/invalid content [Tags] tea-append 5_6_12 [Arguments] ${update_filename} ${temporal_entity_representation_id}= Generate Random Entity Id ${vehicle_id_prefix} ${response}= Create Or Update Temporal Representation Of Entity Selecting Content Type ... ${temporal_entity_representation_id} ... ${filename} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response.status_code} ${response}= Append Attribute To Temporal Entity ... ${temporal_entity_representation_id} ... ${update_filename} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response.status_code} Check Response Body Type When Using Session Request ${response.json()} ${ERROR_TYPE_INVALID_REQUEST} Check Response Body Title When Using Session Request ${response.json()} [Teardown] Delete Temporal Representation Of Entity ${temporal_entity_representation_id} Add Attribute To Temporal Entity [Documentation] Check that an error is raised if you add a temporal entity attribute with a non-existing/invalid EntityId [Tags] tea-append 5_6_12 Loading