From 4053916eef796c02f0b892df6e039eadc59bf89c Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Thu, 25 Apr 2024 14:39:37 +0200 Subject: [PATCH] fix(langprop): incorrect expectations when any language filter --- .../Consumption/Entity/RetrieveEntity/018_07.robot | 1 - ...anguage-property-any-language-filter-simplified.jsonld | 7 +------ .../building-language-property-any-language-filter.jsonld | 8 +++----- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_07.robot b/TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_07.robot index 314cbf35..9942b45e 100644 --- a/TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_07.robot +++ b/TP/NGSI-LD/ContextInformation/Consumption/Entity/RetrieveEntity/018_07.robot @@ -52,7 +52,6 @@ Retrieve Entity With Language Filter ... ${expectation_filename} ... ${entity_id} ... ${response.json()} - ... ${True} Create Initial Entity ${entity_id}= Generate Random Entity Id ${building_id_prefix} diff --git a/data/entities/expectations/building-language-property-any-language-filter-simplified.jsonld b/data/entities/expectations/building-language-property-any-language-filter-simplified.jsonld index b5449922..cb34cdcb 100644 --- a/data/entities/expectations/building-language-property-any-language-filter-simplified.jsonld +++ b/data/entities/expectations/building-language-property-any-language-filter-simplified.jsonld @@ -1,12 +1,7 @@ { "id": "urn:ngsi-ld:Building:randomUUID", "type": "Building", - "street": { - "languageMap": { - "fr": "Grand Place", - "nl": "Grote Markt" - } - }, + "street": "Grand Place", "@context": [ "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld" ] diff --git a/data/entities/expectations/building-language-property-any-language-filter.jsonld b/data/entities/expectations/building-language-property-any-language-filter.jsonld index 86f2fcb2..0857281e 100644 --- a/data/entities/expectations/building-language-property-any-language-filter.jsonld +++ b/data/entities/expectations/building-language-property-any-language-filter.jsonld @@ -2,11 +2,9 @@ "id": "urn:ngsi-ld:Building:randomUUID", "type": "Building", "street": { - "type": "LanguageProperty", - "languageMap": { - "fr": "Grand Place", - "nl": "Grote Markt" - } + "type": "Property", + "value": "Grand Place", + "lang": "fr" }, "@context": [ "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld" -- GitLab