From 7a667803698488f3f26dbe6d5c9f6ca009ddc185 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Sat, 23 Sep 2023 10:07:18 +0200 Subject: [PATCH] fix(019_01_05): use a correct geoquery when queryng entities --- .../Entity/QueryEntities/019_01_05.robot | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_01_05.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_01_05.robot index f7c2624b..c1bbe238 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_01_05.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/QueryEntities/019_01_05.robot @@ -1,5 +1,5 @@ *** Settings *** -Documentation Check that you can query entitites based on a list of properties +Documentation Check that you can query entitites based on a geoquery Resource ${EXECDIR}/resources/ApiUtils/ContextInformationProvision.resource Resource ${EXECDIR}/resources/ApiUtils/ContextInformationConsumption.resource @@ -14,12 +14,14 @@ ${building_id_prefix}= urn:ngsi-ld:Building: ${filename}= building-location-attribute-sample.jsonld ${expectation_filename}= building-geoproperty-query-expectation.jsonld ${entity_type}= https://ngsi-ld-test-suite/context#Building -${geometry_property}= location +${georal}= equals +${geometry}= Point +${coordinates}= [13.3986, 52.5547] *** Test Cases *** -019_01_05 Query several entities based on a list of properties - [Documentation] Check that you can query entitites based on a list of properties +019_01_05 Query several entities based on a geoquery + [Documentation] Check that you can query entitites based on a geoquery [Tags] e-query 5_7_2 ${first_entity_id}= Generate Random Entity Id ${building_id_prefix} Set Suite Variable ${first_entity_id} @@ -40,8 +42,10 @@ ${geometry_property}= location ${entity_types_to_be_retrieved}= Catenate SEPARATOR=, ${entity_type} ${response}= Query Entities ... entity_types=${entity_types_to_be_retrieved} - ... geoproperty=${geometry_property} ... accept=${CONTENT_TYPE_LD_JSON} + ... georel=${georal} + ... geometry=${geometry} + ... coordinates=${coordinates} Check Response Status Code 200 ${response.status_code} Check Response Body Containing List Containing Entity elements ... ${expectation_filename} -- GitLab