Skip to content
GitLab
Explore
Sign in
CIM - Context Information Management
NGSI-LD Test Suite
Compare revisions
caf82b037088f7614f999a635afd57abd2e4862e to 4b4a15722a7015845a06f573180385e0a08d0d77
Hide whitespace changes
Inline
Side-by-side
TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_03_03.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_03_04.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_03_05.robot
View file @
4b4a1572
*** Settings ***
*** Settings ***
Documentation
Check that you cannot query entiti
t
es 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 entiti
t
es 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 entiti
t
es 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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_04.robot
View file @
4b4a1572
...
@@ -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
e
lements
Check Response Body Containing List Containing Entity
E
lements
...
${expectation_filename}
...
${expectation_filename}
...
${entities_ids_to_be_compared}
...
${entities_ids_to_be_compared}
...
${response.json()}
...
${response.json()}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_05.robot
View file @
4b4a1572
...
@@ -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
e
lements
Check Response Body Containing List Containing Entity
E
lements
...
${expectation_filename}
...
${expectation_filename}
...
${entities_ids_to_be_compared}
...
${entities_ids_to_be_compared}
...
${response.json()}
...
${response.json()}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_06.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_01_01.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_01_02.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_01_03.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_02.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_03_01.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_03_02.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_04.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_05.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_06.robot
View file @
4b4a1572
...
@@ -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}
...
...
TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_01.robot
View file @
4b4a1572
...
@@ -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
...
...
TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_02.robot
View file @
4b4a1572
...
@@ -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
...
...
TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_03.robot
View file @
4b4a1572
...
@@ -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
...
...
TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_04.robot
View file @
4b4a1572
...
@@ -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
...
...
TP/NGSI-LD/ContextInformation/Consumption/TemporalEntity/QueryTemporalEvolutionOfEntities/021_05.robot
View file @
4b4a1572
...
@@ -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
...
...
Prev
1
2
3
4
5
Next