Loading .pre-commit-config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -3,4 +3,4 @@ repos: rev: v6.9.2 hooks: - id: robocop-format additional_dependencies: [typing_extensions] additional_dependencies: [typing_extensions, click] TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_31.robot 0 → 100644 +68 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that entities can be queried in a concise representation for every kind of attribute Resource ${EXECDIR}/resources/ApiUtils/Common.resource Resource ${EXECDIR}/resources/ApiUtils/ContextInformationConsumption.resource Resource ${EXECDIR}/resources/ApiUtils/ContextInformationProvision.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Test Teardown Delete Created Entity Test Template Query Entities In A Concise Representation *** Test Cases *** EXPECTATION_FILENAME 019_31_01 Property [Tags] e-query 5_7_2 4_5_2_3 since_v1.6.1 [Setup] Create Initial Entity building-simple-attributes.jsonld concise/building-simple-attributes-concise.json 019_31_02 Relationship [Tags] e-query 5_7_2 4_5_3_3 since_v1.6.1 [Setup] Create Initial Entity building-relationship.jsonld concise/building-relationship-concise.json 019_31_03 GeoProperty [Tags] e-query 5_7_2 4_7_3 since_v1.6.1 [Setup] Create Initial Entity building-location-attribute.jsonld concise/building-location-attribute-concise.json 019_31_04 JsonProperty [Tags] e-query 5_7_2 4_5_24_3 since_v1.6.1 [Setup] Create Initial Entity building-json-property-object.jsonld concise/building-json-property-object-concise.json 019_31_05 LanguageProperty [Tags] e-query 5_7_2 4_5_18_3 since_v1.6.1 [Setup] Create Initial Entity building-language-property.jsonld concise/building-language-property-concise.json 019_31_06 VocabProperty [Tags] e-query 5_7_2 4_5_20_3 since_v1.6.1 [Setup] Create Initial Entity building-vocab-property-string.jsonld concise/building-vocab-property-string-concise.json *** Keywords *** Query Entities In A Concise Representation [Documentation] Check that entities can be queried in a concise representation for a given kind of attribute [Arguments] ${expectation_filename} ${response}= Query Entities ... entity_ids=${entity_id} ... entity_types=Building ... format=concise ... context=${ngsild_test_suite_context} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Entity element ... ${expectation_filename} ... ${entity_id} ... ${response.json()[0]} ... ${True} Create Initial Entity [Arguments] ${source_filename} ${entity_id}= Generate Random Building Entity Id Set Test Variable ${entity_id} ${response}= Create Entity Selecting Content Type ... ${source_filename} ... ${entity_id} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response.status_code} Delete Created Entity Delete Entity ${entity_id} TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_05.robot +20 −10 Original line number Diff line number Diff line Loading @@ -16,29 +16,39 @@ Test Template Retrieve Entity In GeoJSON Representation ${filename}= building-two-geometry-attributes.jsonld *** Test Cases *** OPTIONS EXPECTATION_FILENAME 018_05_01 Simplified *** Test Cases *** OPTIONS FORMAT GEOMETRY_PROPERTY EXPECTATION_FILENAME 018_05_01 Simplified Using Options Param [Tags] e-retrieve 6_3_7 keyValues ${EMPTY} building-two-geometry-attribute-simplified.geojson 018_05_02 Normalized keyValues ${EMPTY} ${EMPTY} building-two-geometry-attribute-simplified.geojson 018_05_02 Simplified Using Format Param [Tags] e-retrieve 6_3_7 ${EMPTY} ${EMPTY} building-two-geometry-attribute-normalized.geojson 018_05_03 With geometryProperty ${EMPTY} keyValues ${EMPTY} building-two-geometry-attribute-simplified.geojson 018_05_03 Normalized [Tags] e-retrieve 6_3_7 ${EMPTY} observationSpace building-two-geometry-property-on-observation-space.geojson 018_05_04 With Nonexistent geometryProperty ${EMPTY} ${EMPTY} ${EMPTY} building-two-geometry-attribute-normalized.geojson 018_05_04 With geometryProperty [Tags] e-retrieve 6_3_7 ${EMPTY} operationSpace building-two-geometry-property-on-nonexistent-operation-space.geojson ${EMPTY} ${EMPTY} observationSpace building-two-geometry-property-on-observation-space.geojson 018_05_05 With Nonexistent geometryProperty [Tags] e-retrieve 6_3_7 ${EMPTY} ${EMPTY} operationSpace building-two-geometry-property-on-nonexistent-operation-space.geojson 018_05_06 Concise Using Options Param [Tags] e-retrieve 6_3_7 4_5_2_3 4_7_3 since_v1.6.1 concise ${EMPTY} ${EMPTY} concise/building-two-geometry-attribute-concise.geojson 018_05_07 Concise Using Format Param [Tags] e-retrieve 6_3_7 4_5_2_3 4_7_3 since_v1.6.1 ${EMPTY} concise ${EMPTY} concise/building-two-geometry-attribute-concise.geojson *** Keywords *** Retrieve Entity In GeoJSON Representation [Documentation] Check that the queried entity by id can be returned in a GeoJSON format [Arguments] ${options} ${geometry_property} ${expectation_filename} [Arguments] ${options} ${format} ${geometry_property} ${expectation_filename} ${response}= Retrieve Entity ... id=${entity_id} ... accept=${CONTENT_TYPE_GEOJSON} ... options=${options} ... format=${format} ... context=${ngsild_test_suite_context} ... geometryProperty=${geometry_property} Check Response Status Code 200 ${response.status_code} Loading TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_08.robot +16 −6 Original line number Diff line number Diff line Loading @@ -16,22 +16,32 @@ Test Template Retrieve Entity With observationSpace Geospatial Property ${filename}= building-observation-space-geoproperty.jsonld *** Test Cases *** OPTIONS EXPECTATION_FILENAME 018_08_01 Simplified *** Test Cases *** OPTIONS FORMAT EXPECTATION_FILENAME 018_08_01 Simplified Using Options Param [Tags] e-retrieve 5_7_1 4_7 keyValues building-observation-space-geoproperty-simplified.jsonld 018_08_02 Normalized keyValues ${EMPTY} building-observation-space-geoproperty-simplified.jsonld 018_08_02 Simplified Using Format Param [Tags] e-retrieve 5_7_1 4_7 ${EMPTY} building-observation-space-geoproperty-normalized.jsonld ${EMPTY} keyValues building-observation-space-geoproperty-simplified.jsonld 018_08_03 Normalized [Tags] e-retrieve 5_7_1 4_7 ${EMPTY} ${EMPTY} building-observation-space-geoproperty-normalized.jsonld 018_08_04 Concise Using Options Param [Tags] e-retrieve 5_7_1 4_7_3 since_v1.6.1 concise ${EMPTY} concise/building-observation-space-geoproperty-concise.json 018_08_05 Concise Using Format Param [Tags] e-retrieve 5_7_1 4_7_3 since_v1.6.1 ${EMPTY} concise concise/building-observation-space-geoproperty-concise.json *** Keywords *** Retrieve Entity With observationSpace Geospatial Property [Documentation] Check that an entity with observationSpace geospatial Property can be retrieved [Arguments] ${options} ${expectation_filename} [Arguments] ${options} ${format} ${expectation_filename} ${response}= Retrieve Entity ... id=${entity_id} ... options=${options} ... format=${format} ... context=${ngsild_test_suite_context} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response.json()} Loading TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_09.robot +16 −6 Original line number Diff line number Diff line Loading @@ -16,22 +16,32 @@ Test Template Retrieve Entity With operationSpace Geospatial Property ${filename}= building-operation-space-geoproperty.jsonld *** Test Cases *** OPTIONS EXPECTATION_FILENAME 018_09_01 Simplified *** Test Cases *** OPTIONS FORMAT EXPECTATION_FILENAME 018_09_01 Simplified Using Options Param [Tags] e-retrieve 5_7_1 4_7 keyValues building-operation-space-geoproperty-simplified.jsonld 018_09_02 Normalized keyValues ${EMPTY} building-operation-space-geoproperty-simplified.jsonld 018_09_02 Simplified Using Format Param [Tags] e-retrieve 5_7_1 4_7 ${EMPTY} building-operation-space-geoproperty-normalized.jsonld ${EMPTY} keyValues building-operation-space-geoproperty-simplified.jsonld 018_09_03 Normalized [Tags] e-retrieve 5_7_1 4_7 ${EMPTY} ${EMPTY} building-operation-space-geoproperty-normalized.jsonld 018_09_04 Concise Using Options Param [Tags] e-retrieve 5_7_1 4_7_3 since_v1.6.1 concise ${EMPTY} concise/building-operation-space-geoproperty-concise.json 018_09_05 Concise Using Format Param [Tags] e-retrieve 5_7_1 4_7_3 since_v1.6.1 ${EMPTY} concise concise/building-operation-space-geoproperty-concise.json *** Keywords *** Retrieve Entity With operationSpace Geospatial Property [Documentation] Check that an entity with operationSpace geospatial Property can be retrieved [Arguments] ${options} ${expectation_filename} [Arguments] ${options} ${format} ${expectation_filename} ${response}= Retrieve Entity ... id=${entity_id} ... options=${options} ... format=${format} ... context=${ngsild_test_suite_context} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response.json()} Loading Loading
.pre-commit-config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -3,4 +3,4 @@ repos: rev: v6.9.2 hooks: - id: robocop-format additional_dependencies: [typing_extensions] additional_dependencies: [typing_extensions, click]
TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_31.robot 0 → 100644 +68 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that entities can be queried in a concise representation for every kind of attribute Resource ${EXECDIR}/resources/ApiUtils/Common.resource Resource ${EXECDIR}/resources/ApiUtils/ContextInformationConsumption.resource Resource ${EXECDIR}/resources/ApiUtils/ContextInformationProvision.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Test Teardown Delete Created Entity Test Template Query Entities In A Concise Representation *** Test Cases *** EXPECTATION_FILENAME 019_31_01 Property [Tags] e-query 5_7_2 4_5_2_3 since_v1.6.1 [Setup] Create Initial Entity building-simple-attributes.jsonld concise/building-simple-attributes-concise.json 019_31_02 Relationship [Tags] e-query 5_7_2 4_5_3_3 since_v1.6.1 [Setup] Create Initial Entity building-relationship.jsonld concise/building-relationship-concise.json 019_31_03 GeoProperty [Tags] e-query 5_7_2 4_7_3 since_v1.6.1 [Setup] Create Initial Entity building-location-attribute.jsonld concise/building-location-attribute-concise.json 019_31_04 JsonProperty [Tags] e-query 5_7_2 4_5_24_3 since_v1.6.1 [Setup] Create Initial Entity building-json-property-object.jsonld concise/building-json-property-object-concise.json 019_31_05 LanguageProperty [Tags] e-query 5_7_2 4_5_18_3 since_v1.6.1 [Setup] Create Initial Entity building-language-property.jsonld concise/building-language-property-concise.json 019_31_06 VocabProperty [Tags] e-query 5_7_2 4_5_20_3 since_v1.6.1 [Setup] Create Initial Entity building-vocab-property-string.jsonld concise/building-vocab-property-string-concise.json *** Keywords *** Query Entities In A Concise Representation [Documentation] Check that entities can be queried in a concise representation for a given kind of attribute [Arguments] ${expectation_filename} ${response}= Query Entities ... entity_ids=${entity_id} ... entity_types=Building ... format=concise ... context=${ngsild_test_suite_context} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Entity element ... ${expectation_filename} ... ${entity_id} ... ${response.json()[0]} ... ${True} Create Initial Entity [Arguments] ${source_filename} ${entity_id}= Generate Random Building Entity Id Set Test Variable ${entity_id} ${response}= Create Entity Selecting Content Type ... ${source_filename} ... ${entity_id} ... ${CONTENT_TYPE_LD_JSON} Check Response Status Code 201 ${response.status_code} Delete Created Entity Delete Entity ${entity_id}
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_05.robot +20 −10 Original line number Diff line number Diff line Loading @@ -16,29 +16,39 @@ Test Template Retrieve Entity In GeoJSON Representation ${filename}= building-two-geometry-attributes.jsonld *** Test Cases *** OPTIONS EXPECTATION_FILENAME 018_05_01 Simplified *** Test Cases *** OPTIONS FORMAT GEOMETRY_PROPERTY EXPECTATION_FILENAME 018_05_01 Simplified Using Options Param [Tags] e-retrieve 6_3_7 keyValues ${EMPTY} building-two-geometry-attribute-simplified.geojson 018_05_02 Normalized keyValues ${EMPTY} ${EMPTY} building-two-geometry-attribute-simplified.geojson 018_05_02 Simplified Using Format Param [Tags] e-retrieve 6_3_7 ${EMPTY} ${EMPTY} building-two-geometry-attribute-normalized.geojson 018_05_03 With geometryProperty ${EMPTY} keyValues ${EMPTY} building-two-geometry-attribute-simplified.geojson 018_05_03 Normalized [Tags] e-retrieve 6_3_7 ${EMPTY} observationSpace building-two-geometry-property-on-observation-space.geojson 018_05_04 With Nonexistent geometryProperty ${EMPTY} ${EMPTY} ${EMPTY} building-two-geometry-attribute-normalized.geojson 018_05_04 With geometryProperty [Tags] e-retrieve 6_3_7 ${EMPTY} operationSpace building-two-geometry-property-on-nonexistent-operation-space.geojson ${EMPTY} ${EMPTY} observationSpace building-two-geometry-property-on-observation-space.geojson 018_05_05 With Nonexistent geometryProperty [Tags] e-retrieve 6_3_7 ${EMPTY} ${EMPTY} operationSpace building-two-geometry-property-on-nonexistent-operation-space.geojson 018_05_06 Concise Using Options Param [Tags] e-retrieve 6_3_7 4_5_2_3 4_7_3 since_v1.6.1 concise ${EMPTY} ${EMPTY} concise/building-two-geometry-attribute-concise.geojson 018_05_07 Concise Using Format Param [Tags] e-retrieve 6_3_7 4_5_2_3 4_7_3 since_v1.6.1 ${EMPTY} concise ${EMPTY} concise/building-two-geometry-attribute-concise.geojson *** Keywords *** Retrieve Entity In GeoJSON Representation [Documentation] Check that the queried entity by id can be returned in a GeoJSON format [Arguments] ${options} ${geometry_property} ${expectation_filename} [Arguments] ${options} ${format} ${geometry_property} ${expectation_filename} ${response}= Retrieve Entity ... id=${entity_id} ... accept=${CONTENT_TYPE_GEOJSON} ... options=${options} ... format=${format} ... context=${ngsild_test_suite_context} ... geometryProperty=${geometry_property} Check Response Status Code 200 ${response.status_code} Loading
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_08.robot +16 −6 Original line number Diff line number Diff line Loading @@ -16,22 +16,32 @@ Test Template Retrieve Entity With observationSpace Geospatial Property ${filename}= building-observation-space-geoproperty.jsonld *** Test Cases *** OPTIONS EXPECTATION_FILENAME 018_08_01 Simplified *** Test Cases *** OPTIONS FORMAT EXPECTATION_FILENAME 018_08_01 Simplified Using Options Param [Tags] e-retrieve 5_7_1 4_7 keyValues building-observation-space-geoproperty-simplified.jsonld 018_08_02 Normalized keyValues ${EMPTY} building-observation-space-geoproperty-simplified.jsonld 018_08_02 Simplified Using Format Param [Tags] e-retrieve 5_7_1 4_7 ${EMPTY} building-observation-space-geoproperty-normalized.jsonld ${EMPTY} keyValues building-observation-space-geoproperty-simplified.jsonld 018_08_03 Normalized [Tags] e-retrieve 5_7_1 4_7 ${EMPTY} ${EMPTY} building-observation-space-geoproperty-normalized.jsonld 018_08_04 Concise Using Options Param [Tags] e-retrieve 5_7_1 4_7_3 since_v1.6.1 concise ${EMPTY} concise/building-observation-space-geoproperty-concise.json 018_08_05 Concise Using Format Param [Tags] e-retrieve 5_7_1 4_7_3 since_v1.6.1 ${EMPTY} concise concise/building-observation-space-geoproperty-concise.json *** Keywords *** Retrieve Entity With observationSpace Geospatial Property [Documentation] Check that an entity with observationSpace geospatial Property can be retrieved [Arguments] ${options} ${expectation_filename} [Arguments] ${options} ${format} ${expectation_filename} ${response}= Retrieve Entity ... id=${entity_id} ... options=${options} ... format=${format} ... context=${ngsild_test_suite_context} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response.json()} Loading
TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_09.robot +16 −6 Original line number Diff line number Diff line Loading @@ -16,22 +16,32 @@ Test Template Retrieve Entity With operationSpace Geospatial Property ${filename}= building-operation-space-geoproperty.jsonld *** Test Cases *** OPTIONS EXPECTATION_FILENAME 018_09_01 Simplified *** Test Cases *** OPTIONS FORMAT EXPECTATION_FILENAME 018_09_01 Simplified Using Options Param [Tags] e-retrieve 5_7_1 4_7 keyValues building-operation-space-geoproperty-simplified.jsonld 018_09_02 Normalized keyValues ${EMPTY} building-operation-space-geoproperty-simplified.jsonld 018_09_02 Simplified Using Format Param [Tags] e-retrieve 5_7_1 4_7 ${EMPTY} building-operation-space-geoproperty-normalized.jsonld ${EMPTY} keyValues building-operation-space-geoproperty-simplified.jsonld 018_09_03 Normalized [Tags] e-retrieve 5_7_1 4_7 ${EMPTY} ${EMPTY} building-operation-space-geoproperty-normalized.jsonld 018_09_04 Concise Using Options Param [Tags] e-retrieve 5_7_1 4_7_3 since_v1.6.1 concise ${EMPTY} concise/building-operation-space-geoproperty-concise.json 018_09_05 Concise Using Format Param [Tags] e-retrieve 5_7_1 4_7_3 since_v1.6.1 ${EMPTY} concise concise/building-operation-space-geoproperty-concise.json *** Keywords *** Retrieve Entity With operationSpace Geospatial Property [Documentation] Check that an entity with operationSpace geospatial Property can be retrieved [Arguments] ${options} ${expectation_filename} [Arguments] ${options} ${format} ${expectation_filename} ${response}= Retrieve Entity ... id=${entity_id} ... options=${options} ... format=${format} ... context=${ngsild_test_suite_context} Check Response Status Code 200 ${response.status_code} Check Response Body Containing Entity element ${expectation_filename} ${entity_id} ${response.json()} Loading