From 90d824da20185d9aa4a6f2eb3caced2ca05dc5d0 Mon Sep 17 00:00:00 2001 From: Benoit Orihuela Date: Fri, 21 Nov 2025 17:52:29 +0100 Subject: [PATCH] fix: incorrect or misplaced tags - to be taken into account, tags must be placed in the Test Cases (and not in the Keywords) - some "category" tags are not correct --- .../Registration/RegisterContextSource/033_10.robot | 3 ++- .../Registration/UpdateContextSourceRegistration/034_02.robot | 4 +++- .../Registration/UpdateContextSourceRegistration/034_06.robot | 2 +- .../jsonldContext/Consumption/ServeContext/053_07.robot | 2 +- TP/NGSI-LD/jsonldContext/Provision/AddContext/050_03.robot | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_10.robot b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_10.robot index fd059e05..c4452962 100644 --- a/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_10.robot +++ b/TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_10.robot @@ -11,15 +11,16 @@ Test Template Create Context Source With Invalid Content *** Test Cases *** 033_10_01 Create A Context Source Registration With A Different Data Structure Than CSourceRegistration Data Type + [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration-invalid-structure.jsonld 033_10_02 Create A Context Source Registration With A Date In The Past + [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration-past-expiration.jsonld *** Keywords *** Create Context Source With Invalid Content [Documentation] Check that one cannot create a context source with invalid content - [Tags] csr-create 6_3_5 [Arguments] ${filename} ${registration_id}= Generate Random CSR Id ${payload}= Load JSON From File ${EXECDIR}/data/${filename} diff --git a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02.robot b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02.robot index 8fc0b589..4c9cdd3f 100644 --- a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02.robot +++ b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_02.robot @@ -19,17 +19,19 @@ ${reason_400}= Bad Request *** Test Cases *** REGISTRATION_ID FRAGMENT_FILENAME EXPECTED_STATUS_CODE PROBLEM_TYPE 034_02_01 Update A Context Source Registration By Id If The Id Is Not A Valid URI + [Tags] csr-update 5_9_3 invalidURI fragments/context-source-registration-different-type.jsonld 400 ${ERROR_TYPE_BAD_REQUEST_DATA} 034_02_02 Update A Context Source Registration If The Request Body Is Not Of The Same Data Type + [Tags] csr-update 5_9_3 ${valid_registration_id} fragments/context-source-registration-different-type.jsonld 400 ${ERROR_TYPE_BAD_REQUEST_DATA} 034_02_03 Update A Context Source Registration If One Attempts To Remove A Mandatory Property + [Tags] csr-update 5_9_3 ${valid_registration_id} context-source-registration-invalid.jsonld 400 ${ERROR_TYPE_BAD_REQUEST_DATA} *** Keywords *** Update A Context Source [Documentation] Check that one cannot update a context source registration under some conditions - [Tags] csr-update 5_9_3 [Arguments] ${registration_id} ${fragment_filename} ${expected_status_code} ${problem_type} ${fragment}= Load JSON From File ${EXECDIR}/data/csourceRegistrations/${fragment_filename} ${fragment_with_id}= Update Value To JSON ${fragment} $.id ${registration_id} diff --git a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_06.robot b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_06.robot index e74a700d..cd05615f 100644 --- a/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_06.robot +++ b/TP/NGSI-LD/ContextSource/Registration/UpdateContextSourceRegistration/034_06.robot @@ -19,13 +19,13 @@ ${reason_405}= Method Not Allowed *** Test Cases *** FRAGMENT_FILENAME EXPECTED_STATUS_CODE REASON 034_06_01 Update A Context Source Registration By Id If The Id Is Not Present + [Tags] csr-update 5_9_3 fragments/context-source-registration-different-type.jsonld 405 ${reason_405} *** Keywords *** Update A Context Source [Documentation] Check that one cannot update a context source registration under some conditions - [Tags] csr-update 5_9_3 [Arguments] ${fragment_filename} ${expected_status_code} ${reason} ${fragment}= Load JSON From File ${EXECDIR}/data/csourceRegistrations/${fragment_filename} ${fragment_with_id}= Update Value To JSON ${fragment} $.id ${EMPTY} diff --git a/TP/NGSI-LD/jsonldContext/Consumption/ServeContext/053_07.robot b/TP/NGSI-LD/jsonldContext/Consumption/ServeContext/053_07.robot index 5c920b12..64bc9a62 100644 --- a/TP/NGSI-LD/jsonldContext/Consumption/ServeContext/053_07.robot +++ b/TP/NGSI-LD/jsonldContext/Consumption/ServeContext/053_07.robot @@ -18,7 +18,7 @@ ${reason_200}= OK *** Test Cases *** 053_07_01 Check That One Can Serve A ImplicitlyCreated @context With Details Set To True [Documentation] Check that one can serve a ImplicitlyCreated @context with details set to true - [Tags] sub-create 5_13_4 since_v1.5.1 + [Tags] ctx-serve 5_13_4 since_v1.5.1 ${response}= Serve a @context ... contextId=${implicit_id} diff --git a/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_03.robot b/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_03.robot index a9c5350b..e9ba98f1 100644 --- a/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_03.robot +++ b/TP/NGSI-LD/jsonldContext/Provision/AddContext/050_03.robot @@ -16,7 +16,7 @@ ${subscription_payload_file_path}= jsonldContext/subscription-with-implicit *** Test Cases *** 050_03_01 Check The Creation Of ImplicitelyCreted @context [Documentation] Check that one can create a subscription - [Tags] sub-create 5_13_2 since_v1.5.1 + [Tags] ctx-add 5_13_2 since_v1.5.1 ${subscription_payload}= Load JSON From File ${EXECDIR}/data/${subscription_payload_file_path} ${subscription_id}= Get Value From JSON ${subscription_payload} $..id -- GitLab