From 9d503c5495a2c7f6af6c49e1d9fb53749f57be71 Mon Sep 17 00:00:00 2001 From: kzangeli Date: Fri, 12 Jun 2026 14:14:52 +0200 Subject: [PATCH 1/2] fix(051_02_01): use a URI for the unknown-context delete id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 051_02 asserts 404 ResourceNotFound but generated a bare 16-digit numeric id, which is not a URI. TS 104-175 § 13.5.4 mandates 400 BadRequestData for a non-URI context id, so a conformant broker returns 400 before the 404 path is ever reached. Prefix the random id with urn:ngsi-ld:Context: so it is a valid-but-unknown URI and the intended 404 path is exercised. --- TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_02.robot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_02.robot b/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_02.robot index f4d06342..07582e72 100644 --- a/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_02.robot +++ b/TP/NGSI-LD/jsonldContext/Provision/DeleteContext/051_02.robot @@ -14,7 +14,8 @@ ${reason_404}= Not Found [Documentation] Check that an error message is obtained in the response when one tries to delete a @context with unknonwn id [Tags] ctx-serve 5_13_5 since_v1.5.1 - ${random_url}= Generate Random String 16 [NUMBERS] + ${random_id}= Generate Random String 16 [NUMBERS] + ${random_url}= Set Variable urn:ngsi-ld:Context:${random_id} ${response}= Delete a @context ${random_url} Check Response Status Code 404 ${response.status_code} -- GitLab From 7d40b4f36e14228dd41ba1125758d26e6d4b759b Mon Sep 17 00:00:00 2001 From: kzangeli Date: Fri, 12 Jun 2026 14:14:52 +0200 Subject: [PATCH 2/2] fix(NotificationUtils): EntityInfo.type is scalar, don't index it as an array MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Check Notification Data Entities collected [entities][0][type][0] — the first CHARACTER of the type string ("Building" -> "B") — so the assertion failed with e.g. 'Building != B'. TS 104-175 § 5.2.6.6.2 defines EntityInfo.type as a single attribute name and TS 104-176 § 6.2.4 compacts a single value to a string. Drop the trailing [0]. Affects the 047_* CSR-subscription notification assertions. --- resources/NotificationUtils.resource | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/NotificationUtils.resource b/resources/NotificationUtils.resource index d8da0f9c..466f3fab 100644 --- a/resources/NotificationUtils.resource +++ b/resources/NotificationUtils.resource @@ -100,7 +100,7 @@ Check Notification Data Entities ${notification_data_entities}= Create List ${index}= Set Variable 0 FOR ${registration_information} IN @{notification_data_information} - Append To List ${notification_data_entities} ${registration_information}[entities][0][type][0] + Append To List ${notification_data_entities} ${registration_information}[entities][0][type] END Lists Should Be Equal -- GitLab