diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/001_01.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_01.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/001_01.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_01.robot index f6aeac9cb7e01b257ee1bb9eeaca3c4fca483b9c..381f3b604a3b87ba0fe4eb42c9e3e61fb07b602d 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/001_01.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_01.robot @@ -10,7 +10,7 @@ ${filename}= building-simple-attributes-sample.jsonld ${expectation_filename}= building-simple-attributes-sample-expectation.jsonld *** Test Cases *** -001_01_Get an entity by id +018_01_01_Get an entity by id [Documentation] Check that you can get an entity by id [Tags] mandatory diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/001_02.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_02.robot similarity index 96% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/001_02.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_02.robot index 8b97f07328ffa56bc936426d1056b0b44bcd337b..d73cf3a12e752493c0bb60c4db7777c71845b7b9 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/001_02.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_02.robot @@ -12,7 +12,7 @@ ${attribute_airqualitylevel}= https://uri.fiware.org/ns/data-models#airQualityL ${attribute_subcategory}= https://uri.fiware.org/ns/data-models#subCategory *** Test Cases *** -001_02_Query some attributes from an entity +018_01_02_Query some attributes from an entity [Documentation] Check that you can query some attributes from an entity [Tags] mandatory diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/001_03.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_03.robot similarity index 95% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/001_03.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_03.robot index 76f6b0ed60b47e4fdf161787d61f7b7c4a491a4e..8ccd23fabfab5d35311209d21754632c116fcf16 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/001_03.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_01_03.robot @@ -11,7 +11,7 @@ ${expectation_filename}= building-location-attribute-sample-expectation-query-g ${geometry_property}= location *** Test Cases *** -001_03_Query the geometry property from an entity +018_01_03_Query the geometry property from an entity [Documentation] Check that you can query the geometry property from an entity [Tags] mandatory diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/002.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_02.robot similarity index 74% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/002.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/018_02.robot index 282a9b0048b1bcf117556ce2a67bc5f316051185..f91428d6e027864d85e24654e9915f63166f9b00 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/002.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_02.robot @@ -6,8 +6,8 @@ Resource ${EXECDIR}/resources/AssertionUtils.resource Test Template Get Entity With Invalid/Missing Id *** Test Cases *** ENTITY_ID EXPECTED_STATUS_CODE PROBLEM_TYPE -002_01_Get an entity if the Entity Id is not present ${EMPTY} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} -002_02_Get an entity if the Entity Id is not a valid URI thisisaninvaliduri 400 ${ERROR_TYPE_BAD_REQUEST_DATA} +018_02_01_Get an entity if the Entity Id is not present ${EMPTY} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} +018_02_02_Get an entity if the Entity Id is not a valid URI thisisaninvaliduri 400 ${ERROR_TYPE_BAD_REQUEST_DATA} *** Keywords *** Get Entity With Invalid/Missing Id diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/003_01.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_03_01.robot similarity index 89% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/003_01.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/018_03_01.robot index 59647fef4cf26b998c2510fa6341e984391e601e..3349a57ae1d28c1f24adb5eade162e035e33b5cc 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/003_01.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_03_01.robot @@ -8,7 +8,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource ${building_id_prefix}= urn:ngsi-ld:Building: *** Test Cases *** -003_01_Get an entity if the Entity Id is not known to the system +Get an entity if the Entity Id is not known to the system [Documentation] Check that you cannot get an entity if the entity id or attributes are not known to the system [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/003_02.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_03_02.robot similarity index 95% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/003_02.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/018_03_02.robot index fd207890acf451ce76e1f8b2c1d2d5ecee748961..164e458186f21cbf8265a0e39fa27003d85611ca 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/003_02.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_03_02.robot @@ -10,7 +10,7 @@ ${filename}= building-simple-attributes-sample.jsonld ${attribute_not_known}= property_not_found *** Test Cases *** -003_02_Get an entity if an atris not known to the system +Get an entity if an atris not known to the system [Documentation] Check that you cannot get an entity if an attribute is not known to the system [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/004.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_04.robot similarity index 95% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/004.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/018_04.robot index b74f19dd0ffc9e3a0d1d09658e5ec5a50471aa45..ce5a82b2c70ae4042699c8b019809576017f97af 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/004.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_04.robot @@ -11,7 +11,7 @@ ${expectation_filename}= building-simple-attributes-sample-expectation-simplifi ${options_parameter}= keyValues *** Test Cases *** -004_Get an entity in a simplified representation +Get an entity in a simplified representation [Documentation] Check that the queried entity by Id can be returned in a simplified representation [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/005.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_05.robot similarity index 94% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/005.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/018_05.robot index c81cc37a8c0ecf0bbdba9612aec28112a7ca9c3e..8ee32f947af428438d4522fe82ccd73dc3bfd43c 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/005.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/018_05.robot @@ -12,7 +12,7 @@ ${options_parameter}= keyValues ${accept_header}= application/geo+json *** Test Cases *** -005_Get an entity by id that can be returned in a geoJSON format +Get an entity by id that can be returned in a geoJSON format [Documentation] Check that the queried entity by id can be returned in a geoJSON format [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_01.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_01.robot similarity index 95% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/006_01.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_01.robot index 441ef1ebe5ece6cf5e95c39d9d395cc2ed240c6b..075a6e089f47574a6babaca3422b82a1f150cbab 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_01.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_01.robot @@ -11,7 +11,7 @@ ${expectation_filename}= building-minimal-sample-expectation.jsonld ${entity_type}= https://uri.fiware.org/ns/data-models#Building *** Test Cases *** -006_01_Query several entities based on ids +Query several entities based on ids [Documentation] Check that you can query several entities based on ids [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_02.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_02.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/006_02.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_02.robot index be7e684a52cc72a63b54602ac1c3709b3125d834..a32ec395235f785f60cbfa7711ef842ba6a9a6c2 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_02.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_02.robot @@ -18,7 +18,7 @@ ${parking_entity_type}= https://uri.fiware.org/ns/data-models#OffStreetParking *** Test Cases *** -006_02_Query several entities based on the entities types +Query several entities based on the entities types [Documentation] Check that you can query several entities based on the entities types [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_03.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_03.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/006_03.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_03.robot index 7f1ef6db68cd004a5330c272b72a742ef3a26e9d..f97279c1b9e4efd800bb4a07d513f7d8aee1c6ae 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_03.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_03.robot @@ -12,7 +12,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building ${entity_id_pattern}= urn:ngsi-ld:Building:.* *** Test Cases *** -006_03_Query several entities based on the given id pattern +Query several entities based on the given id pattern [Documentation] Check that you can query several entities based on the given id pattern [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_04.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_04.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/006_04.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_04.robot index 18f59109831326288c4eef5cf5803b88467a4a13..afb3db7750ec440eb240f86f6097d3f0691e1ce1 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_04.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_04.robot @@ -13,7 +13,7 @@ ${attribute_airqualitylevel}= https://uri.fiware.org/ns/data-models#airQualityL ${attribute_subcategory}= https://uri.fiware.org/ns/data-models#subCategory *** Test Cases *** -006_04_Query several entities based on attribute names +Query several entities based on attribute names [Documentation] Check that you can query several entities based on attribute names [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_05.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_05.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/006_05.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_05.robot index f4c4ac63f947548fe04c753a72573e328366a87f..07cfb0fffc0a08c97b647000918521f519311798 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/006_05.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_01_05.robot @@ -12,7 +12,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building ${geometry_property}= location *** Test Cases *** -006_05_Query several entities based on a list of properties +Query several entities based on a list of properties [Documentation] Check that you can query entitites based on a list of properties [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_01.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_01.robot similarity index 94% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/007_01.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_01.robot index b18df22bd305f8889124ca69f4abda59134adcc3..6d6f8cb1d68056897acab9546e5388366772bc44 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_01.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_01.robot @@ -11,7 +11,7 @@ ${expectation_filename}= building-minimal-sample-expectation.jsonld ${entity_type}= https://uri.fiware.org/ns/data-models#Building *** Test Cases *** -007_01_Query several entities via POST Interaction based on ids +Query several entities via POST Interaction based on ids [Documentation] Check that you can query several entities via POST Interaction based on ids [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_02.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_02.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/007_02.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_02.robot index 6f404862be6ab4ae121afbc0b387f87080687d68..c9717c562fed0cea020c5559368356aad53da273 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_02.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_02.robot @@ -18,7 +18,7 @@ ${parking_entity_type}= https://uri.fiware.org/ns/data-models#OffStreetParking *** Test Cases *** -007_02_Query several entities via POST Interaction based on the entities types +Query several entities via POST Interaction based on the entities types [Documentation] Check that you can query several entities via POST Interaction based on the entities types [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_03.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_03.robot similarity index 96% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/007_03.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_03.robot index fa7d2d6641985b98aa4d68d85ce138f19c2ed00c..32e200c0bafa81f9e84e54998629f1f78da541c3 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_03.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_03.robot @@ -12,7 +12,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building ${entity_id_pattern}= urn:ngsi-ld:Building:.* *** Test Cases *** -007_03_Query several entities via POST Interaction based on the given id pattern +Query several entities via POST Interaction based on the given id pattern [Documentation] Check that you can query several entities via POST Interaction based on the given id pattern [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_04.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_04.robot similarity index 96% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/007_04.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_04.robot index 60e03ddae93594bd792b180108e8de9cac178679..82b7a91e0b6efadbf91958a0e071c353a1d4d207 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_04.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_04.robot @@ -13,7 +13,7 @@ ${attribute_airqualitylevel}= https://uri.fiware.org/ns/data-models#airQualityL ${attribute_subcategory}= https://uri.fiware.org/ns/data-models#subCategory *** Test Cases *** -006_04_Query several entities via POST Interaction based on attribute names +Query several entities via POST Interaction based on attribute names [Documentation] Check that you can query several entities via POST Interaction based on attribute names [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_05.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_05.robot similarity index 96% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/007_05.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_05.robot index a7ec401affcdc9333923b880b7b481ac65c67ae7..79e1ce2c69c9da72ace5ee4212fbb49335595e4a 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/007_05.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_02_05.robot @@ -12,7 +12,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building ${geometry_property}= location *** Test Cases *** -006_05_Query several entities via POST Interaction based on a list of properties +Query several entities via POST Interaction based on a list of properties [Documentation] Check that you can query entitites via POST Interaction based on a list of properties [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_01.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_01.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/008_01.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_01.robot index 569d2723190283ba903cb4517a49ea30de246595..f1f322cb89669294e479fae81e105ec3fb440d4f 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_01.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_01.robot @@ -12,7 +12,7 @@ ${entity_invalid_id_one}= thisisaninvaliduri1 ${entity_invalid_id_two}= thisisaninvaliduri2 *** Test Cases *** -008_01_Query entities based on incorrect ids +Query entities based on incorrect ids [Documentation] Check that you cannot query entities if the requested ids are incorrect [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_02.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_02.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/008_02.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_02.robot index c598a04d47b054795ae23b9859e724e48b115478..fbe5ef333aecb24402b167809afe4c7868f8debc 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_02.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_02.robot @@ -14,7 +14,7 @@ ${invalid_entity_type_two}= invalid_entity_type_two *** Test Cases *** -008_02_Query entities based on incorrect entity types +Query entities based on incorrect entity types [Documentation] Check that you cannot query entities if the requested entity types are incorrect [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_03.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_03.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/008_03.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_03.robot index 999e6a451a6394ee2a61009f863c206f31c9edf2..87739e2b815c1d31d63672681be832a6ad137214 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_03.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_03.robot @@ -11,7 +11,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building ${invalid_entity_id_pattern}= invalid_entity_id_pattern* *** Test Cases *** -008_03_Query several entities based on incorrect id pattern +Query several entities based on incorrect id pattern [Documentation] Check that you cannot query entities if the requested id pattern is incorrect [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_04.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_04.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/008_04.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_04.robot index 86368ca96f9a5b8f2cb29a0ec3c158f01c3e5087..bceffdaf101669c17ef58b681e2403d094c9871b 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_04.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_04.robot @@ -12,7 +12,7 @@ ${invalid_attribute_one}= invalid_attribute_one ${invalid_attribute_two}= invalid_attribute_two *** Test Cases *** -008_04_Query several entities based on incorrect attribute names +Query several entities based on incorrect attribute names [Documentation] Check that you cannot query entities if the requested attribute names are incorrect [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_05.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_05.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/008_05.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_05.robot index b29b3ffcd53456910f2db5155347d53822be4954..a89e2924fba3cd34bcbf0a888edf7721080ddeba 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/008_05.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_03_05.robot @@ -11,7 +11,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building ${invalid_geometry_property}= invalid_geometry_property *** Test Cases *** -008_05_Query several entities based on a list of properties +Query several entities based on a list of properties [Documentation] Check that you can query entitites based on a list of properties [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/009.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_04.robot similarity index 95% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/009.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_04.robot index a5ec04bd2ef07f338293272056c6a32723a95ab5..4deb42529d2c2fb1a1fae3481eb6267661312f65 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/009.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_04.robot @@ -12,7 +12,7 @@ ${options_parameter}= keyValues ${entity_type}= https://uri.fiware.org/ns/data-models#Building *** Test Cases *** -009_Query entities in a simplified representation +Query entities in a simplified representation [Documentation] Check that the queried entities by Id can be returned in a simplified representation [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/010.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_05.robot similarity index 94% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/010.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_05.robot index c9df1913823c992f8ddef7f26b49d09e97d3a753..6c07b58033d6672f86699c662a47d86a54f74e70 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/010.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_05.robot @@ -12,7 +12,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building ${accept_header}= application/geo+json *** Test Cases *** -010_Get an entity by id that can be returned in a geoJSON format +Get an entity by id that can be returned in a geoJSON format [Documentation] Check that the queried entities by id can be returned in a geoJSON format [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/011.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_06.robot similarity index 95% rename from TP/NGSI-LD/ContextInformation/Consumption/Entity/011.robot rename to TP/NGSI-LD/ContextInformation/Consumption/Entity/019_06.robot index 0c84970a00d5b92c6102028c74913c4f1644e134..d9659dd3fd8332a42306155057f5ccd8f23c1edc 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/011.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/019_06.robot @@ -12,7 +12,7 @@ ${entity_type}= https://uri.fiware.org/ns/data-models#Building ${limit}= 2 *** Test Cases *** -011_Query entities specifying a maximum number of results +Query entities specifying a maximum number of results [Documentation] Check that you can query entities specifying a maximum number of results [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot similarity index 58% rename from TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001.robot rename to TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot index 6fa0cd125452bb38918ea8a28dbafb19b2a2f565..2dc442b966549ec8dc7e5d7d8ab97550c17eef4c 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_01.robot @@ -10,11 +10,11 @@ Test Template Create Entity Scenarios ${building_id_prefix}= urn:ngsi-ld:Building: *** Test Cases *** FILENAME CONTENT_TYPE -001_01_MinimalEntity building-minimal-without-context-sample.jsonld application/json -001_02_EntityWithSimpleProperties building-simple-attributes-sample.jsonld application/ld+json -001_03_EntityWithRelationshipsProperties building-relationship-of-property-sample.jsonld application/ld+json -001_04_EntityWithNoContext building-minimal-without-context-sample.jsonld application/ld+json -001_05_EntityWithLocationAttribute building-location-attribute.jsonld application/ld+json +001_01_01_MinimalEntity building-minimal-without-context-sample.jsonld application/json +001_01_02_EntityWithSimpleProperties building-simple-attributes-sample.jsonld application/ld+json +001_01_03_EntityWithRelationshipsProperties building-relationship-of-property-sample.jsonld application/ld+json +001_01_04_EntityWithNoContext building-minimal-without-context-sample.jsonld application/ld+json +001_01_05_EntityWithLocationAttribute building-location-attribute.jsonld application/ld+json *** Keywords *** Create Entity Scenarios diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/002.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_02.robot similarity index 75% rename from TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/002.robot rename to TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_02.robot index e552177c612939ee6514da9de1e8853e81ed5f49..afcaa3c1446f96a4ba40a4e000bc7facec5727dd 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/002.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_02.robot @@ -6,9 +6,9 @@ Resource ${EXECDIR}/resources/AssertionUtils.resource Test Template Create Entity With Invalid Request Scenarios *** Test Cases *** FILENAME -002_01_InvalidJson invalid-json-sample.jsonld -002_02_EmptyJson empty-sample.jsonld -002_03_EntityWithNoContext building-minimal-without-context-sample.jsonld +001_02_01_InvalidJson invalid-json-sample.jsonld +001_02_02_EmptyJson empty-sample.jsonld +001_02_03_EntityWithNoContext building-minimal-without-context-sample.jsonld *** Keywords *** Create Entity With Invalid Request Scenarios diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/003.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_03.robot similarity index 100% rename from TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/003.robot rename to TP/NGSI-LD/ContextInformation/Provision/Entities/CreateEntity/001_03.robot diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/004.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_01.robot similarity index 97% rename from TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/004.robot rename to TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_01.robot index ca6c0422bf09c4ff97f2b7d4665fc157b6d204df..a476e0f0ec7b86cfb502f726699da83a6e663fae 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/004.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_01.robot @@ -8,7 +8,7 @@ Resource ${EXECDIR}/resources/JsonUtils.resource ${building_id_prefix}= urn:ngsi-ld:Building: *** Test Case *** -004_Delete an entity +Delete an entity [Documentation] Check that you can delete an entity by id [Tags] mandatory diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/005.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_02.robot similarity index 76% rename from TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/005.robot rename to TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_02.robot index 1a0ee93484ce4e50314ce9df50bda8a0d81fc9d1..758ed56af95dcdd052fbeefe77128acf51485adb 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/005.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_02.robot @@ -11,8 +11,8 @@ ${entity_id_empty}= ${entity_id_not_valid}= thisisaninvaliduri *** Test Cases *** ENTITY_ID EXPECTED_STATUS_CODE PROBLEM_TYPE -005_01_Delete an entity if the Entity Id is not present ${entity_id_empty} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} -005_02_Delete an entity if the Entity Id is not a valid URI ${entity_id_not_valid} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} +002_02_01_Delete an entity if the Entity Id is not present ${entity_id_empty} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} +002_02_02_Delete an entity if the Entity Id is not a valid URI ${entity_id_not_valid} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} diff --git a/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/006.robot b/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_03_.robot similarity index 91% rename from TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/006.robot rename to TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_03_.robot index b71875cf912ac6f06289beff802a67f8b9dad9ec..1c29651d8dfe5522c1367b3cd4cf67a936f85774 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/006.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/Entities/DeleteEntity/002_03_.robot @@ -9,7 +9,7 @@ ${building_id_prefix}= urn:ngsi-ld:Building: ${expected_status_code}= 404 *** Test Case *** -006_Delete an entity with an id not known to the system +Delete an entity with an id not known to the system [Documentation] Check that you cannot delete an entity if the entity id is not known to the system [Tags] mandatory diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/001.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_01.robot similarity index 59% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/001.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_01.robot index 12d0fb6d44d52821354d6a39d6a0f1f08d8dcba2..3991a51a6728aae21c0fb5280927643e98afb582 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/001.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_01.robot @@ -11,16 +11,16 @@ ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: ${filename}= vehicle-datasetid-attributes-sample.jsonld *** Test Cases *** STATUS_CODE OVERWRITE FRAGMENT_FILENAME EXPECTATION_FILENAME -001_01_Append entity attributes 204 ${EMPTY} vehicle-fragment-same-datasetid-sample.jsonld vehicle-attributes-sample-append-expectation-01.jsonld -001_02_Append entity attributes 207 noOverwrite vehicle-fragment-same-datasetid-sample.jsonld vehicle-attributes-sample-append-expectation-02.jsonld -001_03_Append entity attributes 204 ${EMPTY} vehicle-fragment-different-datasetid-sample.jsonld vehicle-attributes-sample-append-expectation-03-04.jsonld -001_04_Append entity attributes 204 noOverwrite vehicle-fragment-different-datasetid-sample.jsonld vehicle-attributes-sample-append-expectation-03-04.jsonld +010_01_01_Append entity attributes 204 ${EMPTY} vehicle-fragment-same-datasetid-sample.jsonld ${EMPTY} +010_01_02_Append entity attributes 207 noOverwrite vehicle-fragment-same-datasetid-sample.jsonld vehicle-attributes-sample-append-expectation-02.jsonld +010_01_03_Append entity attributes 204 ${EMPTY} vehicle-fragment-different-datasetid-sample.jsonld ${EMPTY} +010_01_04_Append entity attributes 204 noOverwrite vehicle-fragment-different-datasetid-sample.jsonld ${EMPTY} *** Keywords *** Append Attributes [Arguments] ${status_code} ${overwrite} ${fragment_filename} ${expectation_filename} [Documentation] Check that you can append entity attributes - [Tags] mandatory failing + [Tags] mandatory ${entity_id}= Generate Random Entity Id ${vehicle_id_prefix} ${request} ${response}= Create Entity Selecting Content Type ${filename} ${entity_id} ${CONTENT_TYPE_LD_JSON} @@ -28,6 +28,6 @@ Append Attributes ${response}= Append Entity Attributes ${entity_id} ${fragment_filename} ${CONTENT_TYPE_LD_JSON} ${overwrite} Check Response Status Code ${status_code} ${response['status']} - Check Response Body Content ${expectation_filename} ${response['body']} + Run Keyword If "${expectation_filename}"!="${EMPTY}" Check Response Body Content ${expectation_filename} ${response['body']} [Teardown] Delete Entity by Id Returning Response ${entity_id} \ No newline at end of file diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/002.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot similarity index 88% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/002.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot index 66fa4348e4fcbb4eac32e1e7dc7eae26338c2686..2e059f8096dbc6a10b96881a0d01c620044a6e08 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/002.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02.robot @@ -13,8 +13,8 @@ ${fragment_filename}= vehicle-fragment-same-datasetid-sample.jsonld ${status_code}= 400 *** Test Cases *** ENTITY_INVALID_ID -002_01_Append entity attributes if the entity Id is not present ${EMPTY} -002_02_Append entity attributes if the Entity Id is not a valid URI thisisaninvaliduri +010_02_01_Append entity attributes if the entity Id is not present ${EMPTY} +010_02_02_Append entity attributes if the Entity Id is not a valid URI thisisaninvaliduri *** Keywords *** Append Attributes diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/002_03.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02_03.robot similarity index 100% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/002_03.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_02_03.robot diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/003.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_03.robot similarity index 93% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/003.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_03.robot index 7553785b492c63f28a7b21181526ce81ed5bb5e6..155aa02c8662f0def4d23d7e946a986b33db7227 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/003.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010_03.robot @@ -9,7 +9,7 @@ ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: ${fragment_filename}= vehicle-fragment-same-datasetid-sample.jsonld *** Test Cases *** -003_Append entity attributes when the entity id is not known to the system +Append entity attributes when the entity id is not known to the system [Documentation] Check that you cannot append entity attributes if the entity id or attributes are not known to the system [Tags] mandatory failing diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/004.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_01.robot similarity index 56% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/004.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_01.robot index 4a2dc46d768516a700e4431b7807fda1bc646b78..58c836c2cfe3d36187900fb19a21d163299e33b4 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/004.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_01.robot @@ -11,10 +11,10 @@ ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: ${filename}= vehicle-two-datasetid-attributes-sample.jsonld *** Test Cases *** STATUS_CODE FRAGMENT_FILENAME EXPECTATION_FILENAME -004_01_Check that you can update existing attributes with no datasetId 204 vehicle-two-datasetid-attributes-sample-01.jsonld vehicle-two-datasetid-attributes-sample-expectation-01.jsonld -004_02_Check that you can update existing attributes with the datasetId 204 vehicle-two-datasetid-attributes-sample-02.jsonld vehicle-two-datasetid-attributes-sample-expectation-01.jsonld -004_03_Check that you can update only some attributes while others failed 207 vehicle-two-datasetid-attributes-sample-03.jsonld vehicle-two-datasetid-attributes-sample-expectation-03.jsonld -004_04_Check that you cannot change the type of the attribute 204 vehicle-two-datasetid-attributes-sample-04.jsonld vehicle-two-datasetid-attributes-sample-expectation-04.jsonld +011_01_01_Check that you can update existing attributes with no datasetId 204 vehicle-two-datasetid-attributes-sample-01.jsonld ${EMPTY} +011_01_02_Check that you can update existing attributes with the datasetId 204 vehicle-two-datasetid-attributes-sample-02.jsonld ${EMPTY} +011_01_03_Check that you can update only some attributes while others failed 207 vehicle-two-datasetid-attributes-sample-03.jsonld vehicle-two-datasetid-attributes-sample-expectation-03.jsonld +011_01_04_Check that you cannot change the type of the attribute 204 vehicle-two-datasetid-attributes-sample-04.jsonld ${EMPTY} *** Keywords *** Update Attributes @@ -28,6 +28,6 @@ Update Attributes ${response}= Update Entity Attributes ${entity_id} ${fragment_filename} ${CONTENT_TYPE_LD_JSON} Check Response Status Code ${status_code} ${response['status']} - Check Response Body Content ${expectation_filename} ${response['body']} + Run Keyword If "${expectation_filename}"!="${EMPTY}" Check Response Body Content ${expectation_filename} ${response['body']} [Teardown] Delete Entity by Id Returning Response ${entity_id} \ No newline at end of file diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/005.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_02.robot similarity index 87% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/005.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_02.robot index c3ca676d482c312954d4e630b9140e9c6afbb126..851ec9ca8b5115ef99351119d204d9607d47543a 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/005.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_02.robot @@ -12,8 +12,8 @@ ${filename}= vehicle-two-datasetid-attributes-sample.jsonld ${fragment_filename}= vehicle-two-datasetid-attributes-sample-01.jsonld *** Test Cases *** STATUS_CODE ENTITY_INVALID_ID -005_01_Update an attribute if the Entity Id is not present 400 ${EMPTY} -005_02_Update an attribute if the Entity Id is not a valid URI 400 thisisaninvaliduri +011_02_01_Update an attribute if the Entity Id is not present 400 ${EMPTY} +011_02_02_Update an attribute if the Entity Id is not a valid URI 400 thisisaninvaliduri *** Keywords *** Update Attributes diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/005_03.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_02_03.robot similarity index 100% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/005_03.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_02_03.robot diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/006.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_04.robot similarity index 93% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/006.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_04.robot index 6b1bea6ade78eaa90e8a5b1d7ed9f783465531fe..e8816488ab661c44026c36ccd3d2037ef1c0e21d 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/006.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011_04.robot @@ -9,7 +9,7 @@ ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: ${fragment_filename}= vehicle-two-datasetid-attributes-sample-01.jsonld *** Test Cases *** -006_Update entity attributes when the entity id is not known to the system +Update entity attributes when the entity id is not known to the system [Documentation] Check that you cannot update entity attributes if the entity id or attributes are not known to the system [Tags] mandatory diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/007.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_01.robot similarity index 79% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/007.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_01.robot index ea2fb14aa8a86b933f832fc8504f2803f34b8b17..6c37983391438e1a9748b8ea470f7f2f09579e10 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/007.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_01.robot @@ -13,8 +13,8 @@ ${attribute_id}= speed ${status_code}= 204 *** Test Cases *** FRAGMENT_FILENAME -007_01_Check that you can partially update an attribute vehicle-fragment-empty-datasetid-sample.jsonld -007_02_CCheck that you can partially update an attribute by specifying the datasetId vehicle-fragment-equal-datasetid-sample.jsonld +012_01_01_Check that you can partially update an attribute vehicle-fragment-empty-datasetid-sample.jsonld +012_01_02_Check that you can partially update an attribute by specifying the datasetId vehicle-fragment-equal-datasetid-sample.jsonld *** Keywords *** Update Attributes diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/008.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_02.robot similarity index 61% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/008.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_02.robot index 8f9f0238e813d84ef39d7e74b45f6e29f44dde15..e9e7405023cb93691c27b3d1fd17c10de2b2f492 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/008.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_02.robot @@ -13,12 +13,12 @@ ${filename}= vehicle-two-datasetid-attributes-sample.jsonld ${status_code}= 400 *** Test Cases *** ENTITY_ID ATTRIBUTE_ID FRAGMENT_FILENAME -008_01_Make a partial attribute update if the Entity Id is not present ${EMPTY} speed vehicle-fragment-equal-datasetid-sample.jsonld -008_02_Make a partial attribute update if the Entity Id is not a valid URI thisisaninvaliduri speed vehicle-fragment-equal-datasetid-sample.jsonld -008_03_Make a partial attribute update if the Attribute Name is not present ${valid_entity_id} speed vehicle-fragment-attribute-name-missing-sample.jsonld -008_04_Make a partial attribute update if the Attribute Id is invalid ${valid_entity_id} invalid vehicle-fragment-equal-datasetid-sample.jsonld -008_05_Make a partial attribute update if the Attribute type does not match ${valid_entity_id} speed vehicle-fragment-equal-datasetid-different-type-sample.jsonld -008_06_Make a partial attribute update if the entity fragment is empty ${valid_entity_id} speed vehicle-fragment-all-empty-sample.jsonld +012_02_01_Make a partial attribute update if the Entity Id is not present ${EMPTY} speed vehicle-fragment-equal-datasetid-sample.jsonld +012_02_02_Make a partial attribute update if the Entity Id is not a valid URI thisisaninvaliduri speed vehicle-fragment-equal-datasetid-sample.jsonld +012_02_03_Make a partial attribute update if the Attribute Name is not present ${valid_entity_id} speed vehicle-fragment-attribute-name-missing-sample.jsonld +012_02_04_Make a partial attribute update if the Attribute Id is invalid ${valid_entity_id} invalid vehicle-fragment-equal-datasetid-sample.jsonld +012_02_05_Make a partial attribute update if the Attribute type does not match ${valid_entity_id} speed vehicle-fragment-equal-datasetid-different-type-sample.jsonld +012_02_06_Make a partial attribute update if the entity fragment is empty ${valid_entity_id} speed vehicle-fragment-all-empty-sample.jsonld *** Keywords *** Update Attributes diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/009.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_03.robot similarity index 68% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/009.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_03.robot index 807efc9dc95df3063554f207bf3843dec64d51d0..e69df34a1cd138872df35ea1d8d40f15d9f8e4c6 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/009.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012_03.robot @@ -10,15 +10,14 @@ Test Template Partial Update Attributes *** Variable *** ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: ${filename}= vehicle-datasetid-attributes-sample.jsonld -${fragment_filename}= vehicle-two-datasetid-attributes-sample-01.jsonld ${status_code}= 404 ${attribute_id}= speed -*** Test Cases *** ENTITY_ID FRAGMENT_FILENAME -009_01_Partial update when the Entity Id is not known to the system ${not_found_entity_id} vehicle-fragment-same-datasetid-sample.jsonld -009_02_Partial update when no default instance and no datasetId specified ${valid_entity_id} vehicle-fragment-invalid-datasetid-sample.jsonld -009_03_Partial update when no instance with the datasetId specified ${valid_entity_id} vehicle-fragment-empty-datasetid-sample.jsonld -009_04_Partial update when no instance with the attrId specified ${valid_entity_id} vehicle-fragment-attribute-name-missing-sample.jsonld +*** Test Cases *** ENTITY_ID FRAGMENT_FILENAME +012_03_01_Partial update when the Entity Id is not known to the system ${not_found_entity_id} vehicle-fragment-same-datasetid-sample.jsonld +012_03_02_Partial update when no default instance and no datasetId specified ${valid_entity_id} vehicle-fragment-invalid-datasetid-sample.jsonld +012_03_03_Partial update when no instance with the datasetId specified ${valid_entity_id} vehicle-fragment-empty-datasetid-sample.jsonld +012_03_04_Partial update when no instance with the attrId specified ${valid_entity_id} vehicle-fragment-attribute-name-missing-sample.jsonld *** Keywords *** Partial Update Attributes diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_01.robot similarity index 66% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_01.robot index 83c959c5217aaa6cd9f6c5d2297c484e4a922a94..9ce044b2f3cc62608413eabada45773784dc2de6 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/010.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_01.robot @@ -4,7 +4,7 @@ Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource -Test Template Append Attributes +Test Template Delete Attributes *** Variable *** ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: @@ -12,13 +12,13 @@ ${status_code}= 204 ${filename}= vehicle-two-datasetid-attributes-sample.jsonld ${attribute_id}= speed -*** Test Cases *** DATASETID DELETEALL -010_01_delete an attribute with the id ${EMPTY} ${EMPTY} -010_02_delete an attribute with the datasetId urn:ngsi-ld:Property:gpsBxyz123-speed ${EMPTY} -010_03_delete all target attribute instances with a datasetId urn:ngsi-ld:Property:gpsBxyz123-speed True +*** Test Cases *** DATASETID DELETEALL +013_01_01_delete an attribute with the id ${EMPTY} false +013_01_02_delete an attribute with the datasetId urn:ngsi-ld:Property:gpsBxyz123-speed false +013_01_03_delete all target attribute instances with a datasetId urn:ngsi-ld:Property:gpsBxyz123-speed true *** Keywords *** -Append Attributes +Delete Attributes [Arguments] ${datasetId} ${deleteAll} [Documentation] Check that you can delete an attribute from an entity [Tags] mandatory failing @@ -27,7 +27,7 @@ Append Attributes ${request} ${response}= Create Entity Selecting Content Type ${filename} ${entity_id} ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response['status']} - ${response}= Delete Entity Attributes ${entity_id} ${attribute_id} ${CONTENT_TYPE_LD_JSON} ${datasetId} ${deleteAll} + ${response}= Delete Entity Attributes ${entity_id} ${attribute_id} ${datasetId} ${deleteAll} Check Response Status Code ${status_code} ${response['status']} [Teardown] Delete Entity by Id Returning Response ${entity_id} \ No newline at end of file diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_02.robot similarity index 59% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_02.robot index ebdd033bb75134352d75d30ee85775e2c597a041..be253f2f57616280b54bd8e25ebed85f1aa6b35e 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/011.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_02.robot @@ -5,31 +5,31 @@ Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Suite Setup Setup Initial Entities -Test Template Append Attributes +Test Template Delete Attributes *** Variable *** ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: ${status_code}= 400 ${filename}= vehicle-two-datasetid-attributes-sample.jsonld -*** Test Cases *** ENTITY_ID ATTRIBUTE_ID -011_01_delete an attribute if the Entity Id is not present ${EMPTY} speed -011_02_delete an attribute if the Entity Id is not a valid URI thisIsAnInvalidURI speed -011_03_delete an attribute if the Attribute Name is not present ${valid_entity_id} ${EMPTY} +*** Test Cases *** ENTITY_ID ATTRIBUTE_ID +013_02_01_delete an attribute if the Entity Id is not present ${EMPTY} speed +013_02_02_delete an attribute if the Entity Id is not a valid URI thisIsAnInvalidURI speed +013_02_03_delete an attribute if the Attribute Name is not present ${valid_entity_id} ${EMPTY} *** Keywords *** -Append Attributes +Delete Attributes [Arguments] ${entity_id} ${attribute_id} [Documentation] Check that you cannot delete an attribute from an entity with invalid/missing ids [Tags] mandatory failing - ${request} ${response}= Create Entity Selecting Content Type ${filename} ${entity_id} ${CONTENT_TYPE_LD_JSON} + ${request} ${response}= Create Entity Selecting Content Type ${filename} ${valid_entity_id} ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response['status']} - ${response}= Delete Entity Attributes ${entity_id} ${attribute_id} ${CONTENT_TYPE_LD_JSON} ${EMPTY} ${EMPTY} + ${response}= Delete Entity Attributes ${entity_id} ${attribute_id} ${EMPTY} false Check Response Status Code ${status_code} ${response['status']} - [Teardown] Delete Entity by Id Returning Response ${entity_id} + [Teardown] Delete Entity by Id Returning Response ${valid_entity_id} Setup Initial Entities ${valid_entity_id}= Generate Random Entity Id ${vehicle_id_prefix} diff --git a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012.robot b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_03.robot similarity index 60% rename from TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012.robot rename to TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_03.robot index 1b64141a3bd9194383ebc4dcf2688e46da665253..7f527c1ee53b1236649539f5c06178ec507d808d 100644 --- a/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/012.robot +++ b/TP/NGSI-LD/ContextInformation/Provision/EntityAttributes/013_03.robot @@ -5,28 +5,28 @@ Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Suite Setup Setup Initial Entities -Test Template Append Attributes +Test Template Delete Attributes *** Variable *** ${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: ${status_code}= 404 ${filename}= vehicle-two-datasetid-attributes-sample.jsonld -*** Test Cases *** ENTITY_ID ATTRIBUTE_ID DATASETID -012_01_delete an attribute when the Entity Id is not known to the system ${not_found_entity_id} speed urn:ngsi-ld:Property:gpsBxyz123-speed -012_02_delete an attribute when the Entity does not contain the target attribute id ${valid_entity_id} notFound ${EMPTY} -012_03_delete an attribute when the Entity does not contain the target attribute with same datasetId ${valid_entity_id} speed urn:ngsi-ld:Property:notFound +*** Test Cases *** ENTITY_ID ATTRIBUTE_ID DATASETID +013_03_01_delete an attribute when the Entity Id is not known to the system ${not_found_entity_id} speed urn:ngsi-ld:Property:gpsBxyz123-speed +013_03_02_delete an attribute when the Entity does not contain the target attribute id ${valid_entity_id} notFound ${EMPTY} +013_03_03_delete an attribute when the Entity does not contain the target attribute with same datasetId ${valid_entity_id} speed urn:ngsi-ld:Property:notFound *** Keywords *** -Append Attributes +Delete Attributes [Arguments] ${entity_id} ${attribute_id} ${datasetId} [Documentation] Check that you cannot delete an attribute from an entity with invalid/missing ids [Tags] mandatory failing - ${request} ${response}= Create Entity Selecting Content Type ${filename} ${entity_id} ${CONTENT_TYPE_LD_JSON} + ${request} ${response}= Create Entity Selecting Content Type ${filename} ${valid_entity_id} ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response['status']} - ${response}= Delete Entity Attributes ${entity_id} ${attribute_id} ${CONTENT_TYPE_LD_JSON} ${datasetId} ${EMPTY} + ${response}= Delete Entity Attributes ${entity_id} ${attribute_id} ${datasetId} false Check Response Status Code ${status_code} ${response['status']} [Teardown] Delete Entity by Id Returning Response ${entity_id} diff --git a/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/001.robot b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/001.robot new file mode 100644 index 0000000000000000000000000000000000000000..b0743d7f60053a28f6d10679b2ac9c0f087857ce --- /dev/null +++ b/TP/NGSI-LD/ContextInformation/Provision/TemporalEntity/001.robot @@ -0,0 +1,27 @@ +*** Settings *** +Documentation Check that you can create a temporal representation of an entity +Resource ${EXECDIR}/resources/ApiUtils.resource +Resource ${EXECDIR}/resources/AssertionUtils.resource +Resource ${EXECDIR}/resources/JsonUtils.resource + +Test Template Create Temporal Entity + +*** Variable *** +${vehicle_id_prefix}= urn:ngsi-ld:Vehicle: + +*** Test Cases *** FILENAME CONTENT_TYPE +001_01_Create a temporal representation of an entity with simplified temporal representation of an Entity vehicle-simplified-temporal-representation-sample.jsonld application/json +001_02_Create a temporal representation of an entity with simple temporal properties vehicle-temporal-representation-sample.jsonld application/ld+json +001_03_Create an temporal entity with no context vehicle-temporal-representation-withou-context-sample.jsonld application/ld+json + +*** Keywords *** +Create Temporal Entity + [Arguments] ${filename} ${content_type} + [Documentation] Check that you can create a temporal representation of an entity + [Tags] mandatory + + ${temporal_entity_representation_id}= Generate Random Entity Id ${vehicle_id_prefix} + ${response}= Create Temporal Representation Of Entity Selecting Content Type ${temporal_entity_representation_id} ${filename} ${content_type} + Check Response Status Code 201 ${response['status']} + + [Teardown] Delete Temporal Representation Of Entity ${temporal_entity_representation_id} \ No newline at end of file diff --git a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_01.robot b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_01.robot similarity index 97% rename from TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_01.robot rename to TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_01.robot index b416b584a5b989f7d81c9ba2ff82214689171214..48beab75521156beeeeb5f34152a60a92daeb481 100644 --- a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_01.robot +++ b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_01.robot @@ -17,7 +17,7 @@ Create Context Source Registration With Specific Date Expiration Date ${payload}= Load Json From File ${EXECDIR}/data/${registration_payload_file_path} ${updated_payload}= Update Value To Json ${payload} $..id ${registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 201 ${response['status']} Check Response Headers Containing URI set to ${request['path']}/ ${registration_id} ${response} diff --git a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_02.robot b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_02.robot similarity index 96% rename from TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_02.robot rename to TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_02.robot index 61fed06c5a3ae9b82fc9a52dbb3abc8e7637dd2a..a45c6ec9cda046ecb7674ffb8981838fe5514973 100644 --- a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_02.robot +++ b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_02.robot @@ -17,7 +17,7 @@ Create Context Source Registration That Never Expires ${payload}= Load Json From File ${EXECDIR}/data/${registration_payload_file_path} ${updated_payload}= Update Value To Json ${payload} $..id ${registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 201 ${response['status']} Check Response Headers Containing URI set to ${request['path']}/ ${registration_id} ${response} diff --git a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_03.robot b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_03.robot similarity index 96% rename from TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_03.robot rename to TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_03.robot index bafec59a22fee4dbb47f54053c76c6f629c5fc98..32d8e4f08b5f8de990dc3f06714e7ee14d41f43b 100644 --- a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/001_03.robot +++ b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_01_03.robot @@ -15,7 +15,7 @@ Create Context Source Registration Without A Sprecified ID [Tags] mandatory ${payload}= Load Json From File ${EXECDIR}/data/${registration_payload_file_path} - ${request} ${response}= Create Context Source Registration ${payload} + ${request} ${response}= Create Context Source Registration With Return ${payload} Check Response Status Code 201 ${response['status']} ${registration_id}= Check Response Headers ID Not Empty ${response} diff --git a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/002.robot b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_02.robot similarity index 75% rename from TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/002.robot rename to TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_02.robot index 78b751ee05b8fead88d86121698ebdd30d376449..bd9a79fff672fd4699eb8cf03323fb8a574dd974 100644 --- a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/002.robot +++ b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_02.robot @@ -11,8 +11,8 @@ Test Template Create Context Source With Invalid Content ${registration_id_prefix}= urn:ngsi-ld:Registration: *** Test Cases *** FILENAME -002_02_Create a context source registration with a different data structure than CsourRegistration data type csourceRegistrations/registration-invalid-structure-sample.jsonld -002_03_Create a context source registration with a date in the past csourceRegistrations/registration-past-expiration-sample.jsonld +033_02_02_Create a context source registration with a different data structure than CsourRegistration data type csourceRegistrations/registration-invalid-structure-sample.jsonld +033_02_03_Create a context source registration with a date in the past csourceRegistrations/registration-past-expiration-sample.jsonld *** Keywords *** Create Context Source With Invalid Content @@ -23,7 +23,7 @@ Create Context Source With Invalid Content ${payload}= Load Json From File ${EXECDIR}/data/${filename} ${updated_payload}= Update Value To Json ${payload} $..id ${registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 400 ${response['status']} Check Response Headers Containing URI set to ${request['path']}/ ${registration_id} ${response} diff --git a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/002_01.robot b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_02_01.robot similarity index 100% rename from TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/002_01.robot rename to TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_02_01.robot diff --git a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/003.robot b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_03.robot similarity index 94% rename from TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/003.robot rename to TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_03.robot index 8eabac9ed64d6c10e858edf8a830cd8d00cf4697..4274214ee68a035a6688bbb4f3983966b0711cf4 100644 --- a/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/003.robot +++ b/TP/NGSI-LD/ContextSource/Registration/CreateContextSourceRegistration/033_03.robot @@ -16,10 +16,10 @@ Create a context source registration that already exists ${registration_id}= Generate Random Entity Id ${registration_id_prefix} ${payload}= Load Json From File ${EXECDIR}/data/${filename} ${updated_payload}= Update Value To Json ${payload} $..id ${registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 201 ${response['status']} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 409 ${response['status']} Check Response Body Containing ProblemDetails Element Containing Title Element ${response} diff --git a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/007.robot b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_01.robot similarity index 89% rename from TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/007.robot rename to TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_01.robot index 210db5b9b8d1ae147e8846f93f5cc988f83b284d..594856379aff637accbbc4882e59a40fb4b1c455 100644 --- a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/007.robot +++ b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_01.robot @@ -16,8 +16,8 @@ Delete a context source registration by id ${registration_id}= Generate Random Entity Id ${registration_id_prefix} ${payload}= Load Json From File ${EXECDIR}/data/csourceRegistrations/${registration_payload_file_path} ${updated_payload}= Update Value To Json ${payload} $..id ${registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 201 ${response['status']} - ${response}= Delete Context Source Registration ${registration_id} + ${response}= Delete Context Source Registration With Return ${registration_id} Check Response Status Code 204 ${response['status']} diff --git a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/008.robot b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_02.robot similarity index 80% rename from TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/008.robot rename to TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_02.robot index b76f552fb789083a03832c3b71a5f8c747d9526a..479a314a2391677d130b2eafd4390f03fae5333a 100644 --- a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/008.robot +++ b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_02.robot @@ -11,8 +11,8 @@ ${registration_id_prefix}= urn:ngsi-ld:Registration: ${filename}= registration-sample.jsonld *** Test Case *** INVALID_REGISTRATION_ID -008_01_Delete a Context Source Registration if the Id is not present ${EMPTY} -008_02_Delete a Context Source Registration if the Id is not a valid URI invalidURI +035_02_01_Delete a Context Source Registration if the Id is not present ${EMPTY} +035_02_02_Delete a Context Source Registration if the Id is not a valid URI invalidURI *** Keywords *** Delete Context Source @@ -22,10 +22,10 @@ Delete Context Source ${registration_id}= Generate Random Entity Id ${registration_id_prefix} ${payload}= Load Json From File ${EXECDIR}/data/csourceRegistrations/${filename} ${updated_payload}= Update Value To Json ${payload} $..id ${registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 201 ${response['status']} - ${response}= Delete Context Source Registration ${invalid_registration_id} + ${response}= Delete Context Source Registration With Return ${invalid_registration_id} Check Response Status Code 400 ${response['status']} Check Response Body Containing ProblemDetails Element Containing Title Element ${response} diff --git a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/009.robot b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_03.robot similarity index 87% rename from TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/009.robot rename to TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_03.robot index 33768c9dc74e758962ab553fa676e8611c006012..b9406805daf93b70a7e34a0b4469ca4373a96cd3 100644 --- a/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/009.robot +++ b/TP/NGSI-LD/ContextSource/Registration/DeleteContextSourceRegistration/035_03.robot @@ -15,6 +15,6 @@ Delete a context source registration by id [Tags] mandatory ${registration_id}= Generate Random Entity Id ${registration_id_prefix} - ${response}= Delete Context Source Registration ${registration_id} + ${response}= Delete Context Source Registration With Return ${registration_id} Check Response Status Code 404 ${response['status']} Check Response Body Containing ProblemDetails Element Containing Title Element ${response} \ No newline at end of file diff --git a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/004.robot b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_01.robot similarity index 75% rename from TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/004.robot rename to TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_01.robot index a7aa85cdcdc910b737ca604b578b1a6f9585bc71..26c54f638c499d6441af5030a2a95f5f5e9fc879 100644 --- a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/004.robot +++ b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_01.robot @@ -10,8 +10,8 @@ Test Template Update Context Source ${registration_id_prefix}= urn:ngsi-ld:Registration: *** Test Case *** FILENAME UPDATE_FILENAME -004_01_Update a context source registration by id registration-sample.jsonld registration-with-expiration-sample.jsonld -004_02_Update a context source registration to never expire registration-with-expiration-sample.jsonld registration-sample.jsonld +034_01_01_Update a context source registration by id registration-sample.jsonld registration-with-expiration-sample.jsonld +034_01_02_Update a context source registration to never expire registration-with-expiration-sample.jsonld registration-sample.jsonld *** Keywords *** Update Context Source @@ -21,12 +21,12 @@ Update Context Source ${registration_id}= Generate Random Entity Id ${registration_id_prefix} ${payload}= Load Json From File ${EXECDIR}/data/csourceRegistrations/${filename} ${updated_payload}= Update Value To Json ${payload} $..id ${registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 201 ${response['status']} ${fragment}= Load Json From File ${EXECDIR}/data/csourceRegistrations/${update_filename} ${fragment_with_id}= Update Value To Json ${fragment} $..id ${registration_id} - ${response}= Update Context Source Registration ${registration_id} ${fragment_with_id} + ${response}= Update Context Source Registration With Return ${registration_id} ${fragment_with_id} Check Response Status Code 204 ${response['status']} [Teardown] Delete Context Source Registration ${registration_id} diff --git a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/005.robot b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02.robot similarity index 65% rename from TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/005.robot rename to TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02.robot index 265f1d82ef2f2dd9ccd7856300ad42c45807ff73..1068f5b2d92377e23f4600cd9b857553b30a887c 100644 --- a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/005.robot +++ b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02.robot @@ -12,10 +12,10 @@ ${registration_id_prefix}= urn:ngsi-ld:Registration: ${filename}= registration-sample.jsonld *** Test Case *** REGISTRATION_ID FRAGMENT_FILENAME -005_01_Update a context source registration by id if the Id is not present ${EMPTY} registration-with-expiration-sample.jsonld -005_02_Update a context source registration by id if the Id is not a valid URI invalidURI registration-with-expiration-sample.jsonld -005_03_Update a context source registration if the request body is not of the same data type ${valid_registration_id} registration-different-type-sample.jsonld -005_04_Update a context source registration if you attempt to remove a mandatory property ${valid_registration_id} registration-invalid-structure-sample.jsonld +034_02_01_Update a context source registration by id if the Id is not present ${EMPTY} registration-with-expiration-sample.jsonld +034_02_02_Update a context source registration by id if the Id is not a valid URI invalidURI registration-with-expiration-sample.jsonld +034_02_03_Update a context source registration if the request body is not of the same data type ${valid_registration_id} registration-different-type-sample.jsonld +034_02_04_Update a context source registration if you attempt to remove a mandatory property ${valid_registration_id} registration-invalid-structure-sample.jsonld *** Keywords *** Update Context Source @@ -24,12 +24,12 @@ Update Context Source [Tags] mandatory ${payload}= Load Json From File ${EXECDIR}/data/csourceRegistrations/${filename} ${updated_payload}= Update Value To Json ${payload} $..id ${valid_registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 201 ${response['status']} ${fragment}= Load Json From File ${EXECDIR}/data/csourceRegistrations/${fragment_filename} ${fragment_with_id}= Update Value To Json ${fragment} $..id ${registration_id} - ${response}= Update Context Source Registration ${registration_id} ${fragment_with_id} + ${response}= Update Context Source Registration With Return ${registration_id} ${fragment_with_id} Check Response Status Code 400 ${response['status']} Check Response Body Containing ProblemDetails Element Containing Title Element ${response} diff --git a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/005_05.robot b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02_05.robot similarity index 93% rename from TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/005_05.robot rename to TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02_05.robot index 9ba06b7bd24334dd4adc287e25df308c3f4a16fe..0d986b93419cd5fdfd7bf0c3f19edf6a4f8bd344 100644 --- a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/005_05.robot +++ b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02_05.robot @@ -10,13 +10,13 @@ ${filename}= registration-sample.jsonld ${registration_payload_file_path}= registration-invalid-sample.jsonld *** Test Case *** -005_04_Update a context source registration if the request body is invalid +Update a context source registration if the request body is invalid [Documentation] Check that you cannot update a context source registration if the request body is invalid [Tags] mandatory ${registration_id}= Generate Random Entity Id ${registration_id_prefix} ${payload}= Load Json From File ${EXECDIR}/data/csourceRegistrations/${filename} ${updated_payload}= Update Value To Json ${payload} $..id ${registration_id} - ${request} ${response}= Create Context Source Registration ${updated_payload} + ${request} ${response}= Create Context Source Registration With Return ${updated_payload} Check Response Status Code 201 ${response['status']} ${response}= Update Context Source Registration Using Session ${registration_id} ${registration_payload_file_path} ${CONTENT_TYPE_LD_JSON} diff --git a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/006.robot b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_03.robot similarity index 84% rename from TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/006.robot rename to TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_03.robot index 61b079cfeab628904433c487b7ac41d07f852245..9bdb1b5c331e7e135819d8d651521118568349aa 100644 --- a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/006.robot +++ b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_03.robot @@ -9,13 +9,13 @@ ${registration_id_prefix}= urn:ngsi-ld:Registration: ${filename}= registration-sample.jsonld *** Test Case *** -006_Update a context source registration by id if the id is not known to the system +Update a context source registration by id if the id is not known to the system [Documentation] Check that you cannot update a context source registration by id if the id is not known to the system [Tags] mandatory ${registration_id}= Generate Random Entity Id ${registration_id_prefix} ${fragment}= Load Json From File ${EXECDIR}/data/csourceRegistrations/${filename} ${fragment_with_id}= Update Value To Json ${fragment} $..id ${registration_id} - ${response}= Update Context Source Registration ${registration_id} ${fragment_with_id} + ${response}= Update Context Source Registration With Return ${registration_id} ${fragment_with_id} Check Response Status Code 404 ${response['status']} Check Response Body Containing ProblemDetails Element Containing Title Element ${response} diff --git a/data/entities/expectations/vehicle-attributes-sample-append-expectation-01.jsonld b/data/entities/expectations/vehicle-attributes-sample-append-expectation-01.jsonld deleted file mode 100644 index 544b7b4ddde01a730b456b39d168580fbc83b99e..0000000000000000000000000000000000000000 --- a/data/entities/expectations/vehicle-attributes-sample-append-expectation-01.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} \ No newline at end of file diff --git a/data/entities/expectations/vehicle-attributes-sample-append-expectation-03-04.jsonld b/data/entities/expectations/vehicle-attributes-sample-append-expectation-03-04.jsonld deleted file mode 100644 index e29f48752c622b56deda792ae02af3a616d636bc..0000000000000000000000000000000000000000 --- a/data/entities/expectations/vehicle-attributes-sample-append-expectation-03-04.jsonld +++ /dev/null @@ -1,30 +0,0 @@ -{ - "id": "urn:ngsi-ld:Vehicle:randomUUID", - "type": "Vehicle", - "brandName": { - "type": "Property", - "value": "Mercedes" - }, - "isParked": { - "type": "Relationship", - "object": "urn:ngsi-ld:OffStreetParking:Downtown1", - "observedAt": "2017-07-29T12:00:04Z", - "providedBy": { - "type": "Relationship", - "object": "urn:ngsi-ld:Person:Bob" - } - }, - "speed": { - "type": "Property", - "value": 56, - "source": { - "type": "Property", - "value": "Speedometer" - }, - "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed" - }, - "@context": [ - "https://fiware.github.io/data-models/context.jsonld", - "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" - ] -} \ No newline at end of file diff --git a/data/entities/expectations/vehicle-two-datasetid-attributes-sample-expectation-01.jsonld b/data/entities/expectations/vehicle-two-datasetid-attributes-sample-expectation-01.jsonld deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/data/entities/fragmentEntities/vehicle-fragment-attribute-name-missing-sample.jsonld b/data/entities/fragmentEntities/vehicle-fragment-attribute-name-missing-sample.jsonld index 10e3efd889436e1b062309fe59595f9bbf9b896a..7603760627793fb66535e1848efe29aa2e848b10 100644 --- a/data/entities/fragmentEntities/vehicle-fragment-attribute-name-missing-sample.jsonld +++ b/data/entities/fragmentEntities/vehicle-fragment-attribute-name-missing-sample.jsonld @@ -12,8 +12,6 @@ "type": "Property", "value": "BMW" }, - "@context": [ - "https://fiware.github.io/data-models/context.jsonld", + "@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" - ] } \ No newline at end of file diff --git a/data/entities/fragmentEntities/vehicle-fragment-equal-datasetid-different-type-sample.jsonld b/data/entities/fragmentEntities/vehicle-fragment-equal-datasetid-different-type-sample.jsonld index 05e676e6242f1a90a990be803d9e2edf261375f1..bb28f7b3cdd12a9273557183b0fd6cdf50c021b6 100644 --- a/data/entities/fragmentEntities/vehicle-fragment-equal-datasetid-different-type-sample.jsonld +++ b/data/entities/fragmentEntities/vehicle-fragment-equal-datasetid-different-type-sample.jsonld @@ -8,8 +8,6 @@ }, "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed" }, - "@context": [ - "https://fiware.github.io/data-models/context.jsonld", + "@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" - ] } \ No newline at end of file diff --git a/data/entities/fragmentEntities/vehicle-fragment-equal-datasetid-sample.jsonld b/data/entities/fragmentEntities/vehicle-fragment-equal-datasetid-sample.jsonld index 6a85b9029f6ab987958beb54922d7827f8a907f1..9b220bf4b3bb59053e11e8d1ce576d537baee6e4 100644 --- a/data/entities/fragmentEntities/vehicle-fragment-equal-datasetid-sample.jsonld +++ b/data/entities/fragmentEntities/vehicle-fragment-equal-datasetid-sample.jsonld @@ -8,8 +8,6 @@ }, "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed" }, - "@context": [ - "https://fiware.github.io/data-models/context.jsonld", + "@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" - ] } \ No newline at end of file diff --git a/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-01.jsonld b/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-01.jsonld index 115393ad0f2b8cf993b8e59d343ee1477766f86a..f845514462904c1592c6d126b5024ecae93b6ec5 100644 --- a/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-01.jsonld +++ b/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-01.jsonld @@ -17,7 +17,6 @@ } }, "@context": [ - "https://fiware.github.io/data-models/context.jsonld", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" ] } \ No newline at end of file diff --git a/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-02.jsonld b/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-02.jsonld index 5a0ece28081323df1ec0126a715a9c8c1a243812..e108e52cebd0e5b5a2a81949b5aefd2af974b918 100644 --- a/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-02.jsonld +++ b/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-02.jsonld @@ -19,7 +19,6 @@ "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed" }, "@context": [ - "https://fiware.github.io/data-models/context.jsonld", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" ] } \ No newline at end of file diff --git a/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-03.jsonld b/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-03.jsonld index b18c7a963483fda7dd0591823d2488539d0cc7e2..17a6c11dfd7793046107436de9a878442c50f9ba 100644 --- a/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-03.jsonld +++ b/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-03.jsonld @@ -19,7 +19,6 @@ "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed" }, "@context": [ - "https://fiware.github.io/data-models/context.jsonld", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" ] } \ No newline at end of file diff --git a/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-04.jsonld b/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-04.jsonld index a906bcc30d86ce12e4d06a37ac4939c281c73e11..e442fe0dd87a216d4c6736298e92250df140c5aa 100644 --- a/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-04.jsonld +++ b/data/entities/fragmentEntities/vehicle-two-datasetid-attributes-sample-04.jsonld @@ -19,7 +19,6 @@ "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed" }, "@context": [ - "https://fiware.github.io/data-models/context.jsonld", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" ] } \ No newline at end of file diff --git a/data/entities/vehicle-two-datasetid-attributes-sample.jsonld b/data/entities/vehicle-two-datasetid-attributes-sample.jsonld index 7e83ea235eee48fd671d539df9aceeb38869740c..334902b0342929315786f87116393bf5b21a45cf 100644 --- a/data/entities/vehicle-two-datasetid-attributes-sample.jsonld +++ b/data/entities/vehicle-two-datasetid-attributes-sample.jsonld @@ -21,8 +21,7 @@ "source": { "type": "Property", "value": "Speedometer" - }, - "datasetId": "urn:ngsi-ld:Property:speedometerA4567-speed" + } }, { "type": "Property", @@ -34,7 +33,6 @@ "datasetId": "urn:ngsi-ld:Property:gpsBxyz123-speed" }], "@context": [ - "https://fiware.github.io/data-models/context.jsonld", "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" ] } \ No newline at end of file diff --git a/data/temporalEntities/vehicle-simplified-temporal-representation-sample.jsonld b/data/temporalEntities/vehicle-simplified-temporal-representation-sample.jsonld new file mode 100644 index 0000000000000000000000000000000000000000..a0f6fe042d405f405b8d663721400288dd18210b --- /dev/null +++ b/data/temporalEntities/vehicle-simplified-temporal-representation-sample.jsonld @@ -0,0 +1,22 @@ +{ + "id": "urn:ngsi-ld:Vehicle:randomUUID", + "type": "Vehicle", + "brandName": { + "type": "Property", + "values": [ + ["Volvo",""] + ] + }, + "speed": { + "type": "Property", + "values": [ + [120,"2018-08-01T12:03:00Z"], + [80,"2018-08-01T12:05:00Z"], + [100,"2018-08-01T12:07:00Z"] + ] + }, + "@context":[ + "https://raw.githubusercontent.com/easy-global-market/ngsild-api-data-models/feature/add-json-ld-context-for-ngsi-ld-test-suite/ngsi-ld-test-suite/ngsi-ld-test-suite-context.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" + ] +} \ No newline at end of file diff --git a/data/temporalEntities/vehicle-temporal-representation-sample.jsonld b/data/temporalEntities/vehicle-temporal-representation-sample.jsonld new file mode 100644 index 0000000000000000000000000000000000000000..4f095bf17cff1f03d1b03f3fb05af2bb1e120221 --- /dev/null +++ b/data/temporalEntities/vehicle-temporal-representation-sample.jsonld @@ -0,0 +1,48 @@ +{ + "id":"urn:ngsi-ld:Vehicle:randomUUID", + "type":"Vehicle", + "brandName":[ + { + "type":"Property", + "value":"BMW" + } + ], + "speed":[ + { + "type":"Property", + "value":120, + "observedAt":"2020-09-01T12:03:00Z" + }, + { + "type":"Property", + "value":80, + "observedAt":"2020-09-01T12:05:00Z" + }, + { + "type":"Property", + "value":100, + "observedAt":"2020-09-01T12:07:00Z" + } + ], + "fuelLevel":[ + { + "type":"Property", + "value":67, + "observedAt":"2020-09-01T12:03:00Z" + }, + { + "type":"Property", + "value":53, + "observedAt":"2020-09-01T13:05:00Z" + }, + { + "type":"Property", + "value":40, + "observedAt":"2020-09-01T14:07:00Z" + } + ], + "@context":[ + "https://raw.githubusercontent.com/easy-global-market/ngsild-api-data-models/feature/add-json-ld-context-for-ngsi-ld-test-suite/ngsi-ld-test-suite/ngsi-ld-test-suite-context.jsonld", + "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld" + ] +} \ No newline at end of file diff --git a/data/temporalEntities/vehicle-temporal-representation-withou-context-sample.jsonld b/data/temporalEntities/vehicle-temporal-representation-withou-context-sample.jsonld new file mode 100644 index 0000000000000000000000000000000000000000..e3dba4596a894ae6bb96297d4e7e64f02a2a3d62 --- /dev/null +++ b/data/temporalEntities/vehicle-temporal-representation-withou-context-sample.jsonld @@ -0,0 +1,44 @@ +{ + "id":"urn:ngsi-ld:Vehicle:randomUUID", + "type":"Vehicle", + "brandName":[ + { + "type":"Property", + "value":"BMW" + } + ], + "speed":[ + { + "type":"Property", + "value":120, + "observedAt":"2020-09-01T12:03:00Z" + }, + { + "type":"Property", + "value":80, + "observedAt":"2020-09-01T12:05:00Z" + }, + { + "type":"Property", + "value":100, + "observedAt":"2020-09-01T12:07:00Z" + } + ], + "fuelLevel":[ + { + "type":"Property", + "value":67, + "observedAt":"2020-09-01T12:03:00Z" + }, + { + "type":"Property", + "value":53, + "observedAt":"2020-09-01T13:05:00Z" + }, + { + "type":"Property", + "value":40, + "observedAt":"2020-09-01T14:07:00Z" + } + ] +} \ No newline at end of file diff --git a/resources/ApiUtils.resource b/resources/ApiUtils.resource index 1256b7b184fd969e8b5f1128c27d533448548333..ca87fce190fece970b92240fb87e8ddcf8e7636a 100755 --- a/resources/ApiUtils.resource +++ b/resources/ApiUtils.resource @@ -158,12 +158,8 @@ Update Entity Attributes [return] ${response} Delete Entity Attributes - [Arguments] ${entityId} ${attributeId} ${content_type} ${datasetId} ${deleteAll} - &{headers}= Create Dictionary Content-Type=${content_type} - &{params}= Create Dictionary - Run Keyword If '${datasetId}'!='' Set To Dictionary ${params} datasetId=${datasetId} - Run Keyword If '${deleteAll}'!='' Set To Dictionary ${params} deletelAll=${deleteAll} - ${response}= DELETE ${ENTITIES_ENDPOINT_PATH}${entityId}/attrs/${attributeId} headers=${headers} parameter=${params} + [Arguments] ${entityId} ${attributeId} ${datasetId} ${deleteAll} + ${response}= DELETE ${ENTITIES_ENDPOINT_PATH}${entityId}/attrs/${attributeId}?datasetId=${datasetId}&deleteAll=${deleteAll} Output request Output response [return] ${response} @@ -177,7 +173,7 @@ Partial Update Entity Attributes Output response [return] ${response} -Create Context Source Registration +Create Context Source Registration With Return [Arguments] ${payload} &{headers}= Create Dictionary Content-Type=application/ld+json ${response}= POST ${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH} body=${payload} headers=${headers} @@ -194,7 +190,7 @@ Create Context Source Registration Using Session Output ${response.json()} [return] ${response} -Update Context Source Registration +Update Context Source Registration With Return [Arguments] ${registration_id} ${fragment} &{headers}= Create Dictionary Content-Type=application/ld+json ${response}= PATCH ${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${registration_id} body=${fragment} headers=${headers} @@ -212,7 +208,7 @@ Update Context Source Registration Using Session Output response [return] ${response} -Delete Context Source Registration +Delete Context Source Registration With Return [Arguments] ${registration_id} ${response}= DELETE ${CONTEXT_SOURCE_REGISTRATION_ENDPOINT_PATH}/${registration_id} Output request @@ -228,6 +224,17 @@ Create Entity Output request Output response +Create Temporal Representation Of Entity Selecting Content Type + [Arguments] ${temporal_entity_representation_id} ${filename} ${content_type} + ${temporal_entity_representation_payload}= Load Json From File ${EXECDIR}/data/temporalEntities/${filename} + ${temporal_entity_representation}= Update Value To Json ${temporal_entity_representation_payload} $..id ${temporal_entity_representation_id} + + &{headers}= Create Dictionary Content-Type=${content_type} + ${response}= POST ${TEMPORAL_ENTITIES_ENDPOINT_PATH} body=${temporal_entity_representation} headers=${headers} + Output request + Output response + [return] ${response} + Batch Create Entities [Arguments] @{entities_to_be_created} ${content_type}=${CONTENT_TYPE_LD_JSON} ${context}=${EMPTY} ${headers}= Create Dictionary diff --git a/resources/AssertionUtils.resource b/resources/AssertionUtils.resource index 89ca3ddba61ba5219f27e8bc5b6bbd74ed3fbb62..415a2d02e7d98fefd358005d6fc999142c7df854 100755 --- a/resources/AssertionUtils.resource +++ b/resources/AssertionUtils.resource @@ -31,6 +31,8 @@ Check Response Body Containing Array Of URIs set to Check Response Body Content [Arguments] ${expectation_filename} ${response_body} ${entity_payload}= Load Json From File ${EXECDIR}/data/entities/expectations/${expectation_filename} + Output ${response_body} + Output ${entity_payload} ${comparaison_result}= Compare Dictionaries Ignoring Keys ${response_body} ${entity_payload} ${instance_id_regex_expr} Should Be True ${comparaison_result} msg=Entity Comparaison Failed