Skip to content
...@@ -17,7 +17,7 @@ ${invalid_entity_id_pattern}= invalid_entity_id_pattern** ...@@ -17,7 +17,7 @@ ${invalid_entity_id_pattern}= invalid_entity_id_pattern**
*** Test Cases *** *** Test Cases ***
Query several entities based on incorrect id pattern 019_03_03 Query several entities based on incorrect id pattern
[Documentation] Check that you cannot query entities if the requested id pattern is incorrect [Documentation] Check that you cannot query entities if the requested id pattern is incorrect
[Tags] e-query 5_7_2 [Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -18,7 +18,7 @@ ${invalid_attribute_two}= type ...@@ -18,7 +18,7 @@ ${invalid_attribute_two}= type
*** Test Cases *** *** Test Cases ***
Query several entities based on incorrect attribute names 019_03_04 Query several entities based on incorrect attribute names
[Documentation] Check that you cannot query entities if the requested attribute names are incorrect [Documentation] Check that you cannot query entities if the requested attribute names are incorrect
[Tags] e-query 5_7_2 [Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......
*** Settings *** *** Settings ***
Documentation Check that you cannot query entitites if the request has a wrong geometryProperty Documentation Check that you cannot query entities if the request has a wrong geometryProperty
Resource ${EXECDIR}/resources/ApiUtils/ContextInformationConsumption/ApiUtils.resource Resource ${EXECDIR}/resources/ApiUtils/ContextInformationConsumption/ApiUtils.resource
# Resource ${EXECDIR}/resources/ApiUtils.resource # Resource ${EXECDIR}/resources/ApiUtils.resource
...@@ -20,8 +20,8 @@ ${geoproperty}= location ...@@ -20,8 +20,8 @@ ${geoproperty}= location
*** Test Cases *** *** Test Cases ***
Query entitites when the request has a wrong geometryProperty 019_03_05 Query entities when the request has a wrong geometryProperty
[Documentation] Check that you cannot query entitites if the request has a wrong geometryProperty [Documentation] Check that you cannot query entities if the request has a wrong geometryProperty
[Tags] e-query 5_7_2 [Tags] e-query 5_7_2
${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
Set Suite Variable ${first_entity_id} Set Suite Variable ${first_entity_id}
......
...@@ -18,7 +18,7 @@ ${entity_type}= https://ngsi-ld-test-suite/context#Building ...@@ -18,7 +18,7 @@ ${entity_type}= https://ngsi-ld-test-suite/context#Building
*** Test Cases *** *** Test Cases ***
Query entities in a simplified representation 019_04_01 Query entities in a simplified representation
[Documentation] Check that the queried entities by Id can be returned in a simplified representation [Documentation] Check that the queried entities by Id can be returned in a simplified representation
[Tags] e-query 6_3_7 [Tags] e-query 6_3_7
${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
...@@ -50,7 +50,7 @@ Query entities in a simplified representation ...@@ -50,7 +50,7 @@ Query entities in a simplified representation
... entity_types=${entity_types_to_be_retrieved} ... entity_types=${entity_types_to_be_retrieved}
... options=${options_parameter} ... options=${options_parameter}
Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements Check Response Body Containing List Containing Entity Elements
... ${expectation_filename} ... ${expectation_filename}
... ${entities_ids_to_be_compared} ... ${entities_ids_to_be_compared}
... ${response.json()} ... ${response.json()}
......
...@@ -18,7 +18,7 @@ ${accept_header}= application/geo+json ...@@ -18,7 +18,7 @@ ${accept_header}= application/geo+json
*** Test Cases *** *** Test Cases ***
Get an entity by id that can be returned in a geoJSON format 019_05_01 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 [Documentation] Check that the queried entities by id can be returned in a geoJSON format
[Tags] e-query 6_3_7 [Tags] e-query 6_3_7
${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
...@@ -50,7 +50,7 @@ Get an entity by id that can be returned in a geoJSON format ...@@ -50,7 +50,7 @@ Get an entity by id that can be returned in a geoJSON format
... entity_types=${entity_types_to_be_retrieved} ... entity_types=${entity_types_to_be_retrieved}
... accept=${accept_header} ... accept=${accept_header}
Check Response Status Code 200 ${response.status_code} Check Response Status Code 200 ${response.status_code}
Check Response Body Containing List Containing Entity elements Check Response Body Containing List Containing Entity Elements
... ${expectation_filename} ... ${expectation_filename}
... ${entities_ids_to_be_compared} ... ${entities_ids_to_be_compared}
... ${response.json()} ... ${response.json()}
......
...@@ -17,7 +17,7 @@ ${limit}= 2 ...@@ -17,7 +17,7 @@ ${limit}= 2
*** Test Cases *** *** Test Cases ***
Query entities specifying a maximum number of results 019_06_01 Query entities specifying a maximum number of results
[Documentation] Check that you can query entities specifying a maximum number of results [Documentation] Check that you can query entities specifying a maximum number of results
[Tags] e-query 6_3_10 [Tags] e-query 6_3_10
${first_entity_id}= Generate Random Entity Id ${building_id_prefix} ${first_entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -16,7 +16,7 @@ ${expectation_filename}= building-simple-attributes-expectation.jsonld ...@@ -16,7 +16,7 @@ ${expectation_filename}= building-simple-attributes-expectation.jsonld
*** Test Cases *** *** Test Cases ***
018_01_01_Get an entity by id 018_01_01 Get an entity by id
[Documentation] Check that you can get an entity by id [Documentation] Check that you can get an entity by id
[Tags] e-retrieve 5_7_1 [Tags] e-retrieve 5_7_1
${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -18,7 +18,7 @@ ${attribute_subcategory}= https://ngsi-ld-test-suite/context#subCatego ...@@ -18,7 +18,7 @@ ${attribute_subcategory}= https://ngsi-ld-test-suite/context#subCatego
*** Test Cases *** *** Test Cases ***
018_01_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 [Documentation] Check that you can query some attributes from an entity
[Tags] e-retrieve 5_7_1 [Tags] e-retrieve 5_7_1
${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -17,7 +17,7 @@ ${geometry_property}= location ...@@ -17,7 +17,7 @@ ${geometry_property}= location
*** Test Cases *** *** Test Cases ***
018_01_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 [Documentation] Check that you can query the geometry property from an entity
[Tags] e-retrieve 5_7_1 [Tags] e-retrieve 5_7_1
${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -9,9 +9,9 @@ Test Template Get Entity With Invalid/Missing Id ...@@ -9,9 +9,9 @@ Test Template Get Entity With Invalid/Missing Id
*** Test Cases *** ENTITY_ID EXPECTED_STATUS_CODE PROBLEM_TYPE *** Test Cases *** ENTITY_ID EXPECTED_STATUS_CODE PROBLEM_TYPE
018_02_01_Get an entity if the Entity Id is not present 018_02_01 Get an entity if the Entity Id is not present
${EMPTY} 400 ${ERROR_TYPE_BAD_REQUEST_DATA} ${EMPTY} 400 ${ERROR_TYPE_BAD_REQUEST_DATA}
018_02_02_Get an entity if the Entity Id is not a valid URI 018_02_02 Get an entity if the Entity Id is not a valid URI
thisisaninvaliduri 400 ${ERROR_TYPE_BAD_REQUEST_DATA} thisisaninvaliduri 400 ${ERROR_TYPE_BAD_REQUEST_DATA}
......
...@@ -12,7 +12,7 @@ ${building_id_prefix}= urn:ngsi-ld:Building: ...@@ -12,7 +12,7 @@ ${building_id_prefix}= urn:ngsi-ld:Building:
*** Test Cases *** *** Test Cases ***
Get an entity if the Entity Id is not known to the system 018_03_01 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 [Documentation] Check that you cannot get an entity if the entity id or attributes are not known to the system
[Tags] e-retrieve 5_7_1 [Tags] e-retrieve 5_7_1
${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -16,7 +16,7 @@ ${attribute_not_known}= property_not_found ...@@ -16,7 +16,7 @@ ${attribute_not_known}= property_not_found
*** Test Cases *** *** Test Cases ***
Get an entity if an attribute is not known to the system 018_03_02 Get an entity if an attribute is not known to the system
[Documentation] Check that you cannot get an entity if an attribute is not known to the system [Documentation] Check that you cannot get an entity if an attribute is not known to the system
[Tags] e-retrieve 5_7_1 [Tags] e-retrieve 5_7_1
${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -17,7 +17,7 @@ ${options_parameter}= keyValues ...@@ -17,7 +17,7 @@ ${options_parameter}= keyValues
*** Test Cases *** *** Test Cases ***
Get an entity in a simplified representation 018_04_01 Get an entity in a simplified representation
[Documentation] Check that the queried entity by Id can be returned in a simplified representation [Documentation] Check that the queried entity by Id can be returned in a simplified representation
[Tags] e-retrieve 6_3_7 [Tags] e-retrieve 6_3_7
${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -18,7 +18,7 @@ ${accept_header}= application/geo+json ...@@ -18,7 +18,7 @@ ${accept_header}= application/geo+json
*** Test Cases *** *** Test Cases ***
Get an entity by id that can be returned in a geoJSON format 018_05_01 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 [Documentation] Check that the queried entity by id can be returned in a geoJSON format
[Tags] e-retrieve 6_3_7 [Tags] e-retrieve 6_3_7
${entity_id}= Generate Random Entity Id ${building_id_prefix} ${entity_id}= Generate Random Entity Id ${building_id_prefix}
......
...@@ -19,10 +19,10 @@ ${creation_jsonld_expectation_filename}= building-simple-attributes-sample-co ...@@ -19,10 +19,10 @@ ${creation_jsonld_expectation_filename}= building-simple-attributes-sample-co
*** Test Cases *** CONTEXT EXPECTED_PAYLOAD *** Test Cases *** CONTEXT EXPECTED_PAYLOAD
EmptyJsonLdContext 018_06_01 EmptyJsonLdContext
[Tags] e-retrieve 6_3_5 [Tags] e-retrieve 6_3_5
${EMPTY} ${empty_jsonld_expectation_filename} ${EMPTY} ${empty_jsonld_expectation_filename}
CreationTimeJsonLdContext 018_06_02 CreationTimeJsonLdContext
[Tags] e-retrieve 6_3_5 [Tags] e-retrieve 6_3_5
${ngsild_test_suite_context} ${creation_jsonld_expectation_filename} ${ngsild_test_suite_context} ${creation_jsonld_expectation_filename}
......
...@@ -19,9 +19,9 @@ ${bus_payload_file}= 2020-08-bus-temporal-representation-sample.j ...@@ -19,9 +19,9 @@ ${bus_payload_file}= 2020-08-bus-temporal-representation-sample.j
*** Test Cases *** TIMEREL TIMEAT EXPECTATION_FILE *** Test Cases *** TIMEREL TIMEAT EXPECTATION_FILE
After [Tags] te-query 5_7_4 021_01_01 After [Tags] te-query 5_7_4
after 2020-08-01T12:04:00Z vehicles-temporal-representation-021-01-01-expectation.jsonld after 2020-08-01T12:04:00Z vehicles-temporal-representation-021-01-01-expectation.jsonld
Before [Tags] te-query 5_7_4 021_01_02 Before [Tags] te-query 5_7_4
before 2020-09-01T13:06:00Z vehicles-temporal-representation-021-01-02-expectation.jsonld before 2020-09-01T13:06:00Z vehicles-temporal-representation-021-01-02-expectation.jsonld
......
...@@ -17,7 +17,7 @@ ${expectation_file}= vehicles-temporal-representation-021-02-expe ...@@ -17,7 +17,7 @@ ${expectation_file}= vehicles-temporal-representation-021-02-expe
*** Test Cases *** *** Test Cases ***
Query the temporal evolution of certain attributes of entities 021_02_01 Query the temporal evolution of certain attributes of entities
[Documentation] Check that you can query the temporal evolution of certain attributes of entities [Documentation] Check that you can query the temporal evolution of certain attributes of entities
[Tags] te-query 5_7_4 [Tags] te-query 5_7_4
${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Vehicle ${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Vehicle
......
...@@ -17,7 +17,7 @@ ${expectation_file}= vehicles-temporal-representation-021-03-expe ...@@ -17,7 +17,7 @@ ${expectation_file}= vehicles-temporal-representation-021-03-expe
*** Test Cases *** *** Test Cases ***
Query the temporal evolution of the last N instances of entities attributes 021_03_01 Query the temporal evolution of the last N instances of entities attributes
[Documentation] Check that you can query the temporal evolution of the last N instances of entities attributes [Documentation] Check that you can query the temporal evolution of the last N instances of entities attributes
[Tags] te-query 5_7_4 [Tags] te-query 5_7_4
${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Vehicle ${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Vehicle
......
...@@ -17,7 +17,7 @@ ${expectation_file}= vehicles-temporal-representation-021-04-expe ...@@ -17,7 +17,7 @@ ${expectation_file}= vehicles-temporal-representation-021-04-expe
*** Test Cases *** *** Test Cases ***
Query the temporal evolution of entities using a context 021_04 Query the temporal evolution of entities using a context
[Documentation] Check that you can query the temporal evolution of entities using a context [Documentation] Check that you can query the temporal evolution of entities using a context
[Tags] te-query 5_7_4 [Tags] te-query 5_7_4
${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Vehicle ${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Vehicle
......
...@@ -18,7 +18,7 @@ ${expectation_file}= vehicles-temporal-representation-021-05-expectation. ...@@ -18,7 +18,7 @@ ${expectation_file}= vehicles-temporal-representation-021-05-expectation.
*** Test Cases *** *** Test Cases ***
Query the temporal evolution of entities matching the given type(s) 021_05_01 Query the temporal evolution of entities matching the given type(s)
[Documentation] Check that you can query the temporal evolution of entities matching the given type(s) [Documentation] Check that you can query the temporal evolution of entities matching the given type(s)
[Tags] te-query 5_7_4 [Tags] te-query 5_7_4
${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Bus ${entity_types_to_be_retrieved}= Catenate SEPARATOR=, Bus
......