From 9b7feb8f75e486fd66b1d6f55367f621e3f62c35 Mon Sep 17 00:00:00 2001 From: Houcem Kacem Date: Wed, 13 Jan 2021 09:35:14 +0100 Subject: [PATCH 1/3] feat: add tps for update context source registration subscription --- .../033_01.robot | 34 ++++++++++++++++++ .../033_02.robot | 20 +++++++++++ .../033_03.robot | 20 +++++++++++ .../033_04.robot | 36 +++++++++++++++++++ .../033_06.robot | 35 ++++++++++++++++++ ...bscription-update-invalid-json-sample.json | 9 +++++ .../subscription-update-invalid-sample.json | 10 ++++++ .../fragments/subscription-update-sample.json | 9 +++++ resources/ApiUtils.resource | 16 +++++++++ 9 files changed, 189 insertions(+) create mode 100644 TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_01.robot create mode 100644 TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_02.robot create mode 100644 TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_03.robot create mode 100644 TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot create mode 100644 TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_06.robot create mode 100644 data/csourceSubscriptions/fragments/subscription-update-invalid-json-sample.json create mode 100644 data/csourceSubscriptions/fragments/subscription-update-invalid-sample.json create mode 100644 data/csourceSubscriptions/fragments/subscription-update-sample.json diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_01.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_01.robot new file mode 100644 index 00000000..244b1a02 --- /dev/null +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_01.robot @@ -0,0 +1,34 @@ +*** Settings *** +Documentation Check that you can update a context source registration subscription +Resource ${EXECDIR}/resources/ApiUtils.resource +Resource ${EXECDIR}/resources/AssertionUtils.resource +Resource ${EXECDIR}/resources/JsonUtils.resource + +Suite Setup Setup Initial Context Source Registration Subscriptions +Suite Teardown Delete Initial Context Source Registration Subscriptions + +*** Variable *** +${subscription_payload_file_path}= ${EXECDIR}/data/csourceSubscriptions/subscription-sample.jsonld +${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-sample.json + +*** Test Case *** +Update Context Source Registration Subscription + [Documentation] Check that you can update a context source registration subscription + [Tags] mandatory + + ${subscription_update_fragment}= Load Test Sample ${subscription_update_fragment_file_path} + Update Context Source Registration Subscription ${subscription_id} ${subscription_update_fragment} + + Check Response Status Code Set To 204 + +*** Keywords *** +Setup Initial Context Source Registration Subscriptions + ${subscription_id}= Generate Random Entity Id ${subscription_id_prefix} + ${subscription_payload}= Load Test Sample ${subscription_payload_file_path} ${subscription_id} + + Create Context Source Registration Subscription ${subscription_payload} + + Set Suite Variable ${subscription_id} + +Delete Initial Context Source Registration Subscriptions + Delete Context Source Registration Subscription ${subscription_id} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_02.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_02.robot new file mode 100644 index 00000000..3b92854f --- /dev/null +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_02.robot @@ -0,0 +1,20 @@ +*** Settings *** +Documentation Check that you cannot update a context source registration subscription with an invalid URI +Resource ${EXECDIR}/resources/ApiUtils.resource +Resource ${EXECDIR}/resources/AssertionUtils.resource +Resource ${EXECDIR}/resources/JsonUtils.resource + +*** Variable *** +${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-sample.json + +*** Test Case *** +Update Context Source Registration Subscription With Invalid Uri + [Documentation] Check that you cannot update a context source registration subscription with an invalid URI + [Tags] mandatory + + ${subscription_update_fragment}= Load Test Sample ${subscription_update_fragment_file_path} + Update Context Source Registration Subscription invalidUri ${subscription_update_fragment} + + Check Response Status Code Set To 400 + Check Response Body Containing ProblemDetails Element Containing Type Element set to ${response} ${ERROR_TYPE_BAD_REQUEST_DATA} + Check Response Body Containing ProblemDetails Element Containing Title Element ${response} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_03.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_03.robot new file mode 100644 index 00000000..175e9102 --- /dev/null +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_03.robot @@ -0,0 +1,20 @@ +*** Settings *** +Documentation Check that you cannot update an unknown context source registration subscription +Resource ${EXECDIR}/resources/ApiUtils.resource +Resource ${EXECDIR}/resources/AssertionUtils.resource +Resource ${EXECDIR}/resources/JsonUtils.resource + +*** Variable *** +${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-sample.json + +*** Test Case *** +Update Unknown Context Source Registration Subscription + [Documentation] Check that you cannot update an unknown context source registration subscription + [Tags] mandatory + + ${subscription_update_fragment}= Load Test Sample ${subscription_update_fragment_file_path} + Update Context Source Registration Subscription urn:ngsi-ld:Subscription:unknowSubscription ${subscription_update_fragment} + + Check Response Status Code Set To 404 + Check Response Body Containing ProblemDetails Element Containing Type Element set to ${response} ${ERROR_TYPE_RESOURCE_NOT_FOUND} + Check Response Body Containing ProblemDetails Element Containing Title Element ${response} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot new file mode 100644 index 00000000..62686e1a --- /dev/null +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot @@ -0,0 +1,36 @@ +*** Settings *** +Documentation Check that you cannot update a context source registration subscription by setting to null its mandatory properties +Resource ${EXECDIR}/resources/ApiUtils.resource +Resource ${EXECDIR}/resources/AssertionUtils.resource +Resource ${EXECDIR}/resources/JsonUtils.resource + +Suite Setup Setup Initial Context Source Registration Subscriptions +Suite Teardown Delete Initial Context Source Registration Subscriptions + +*** Variable *** +${subscription_payload_file_path}= ${EXECDIR}/data/csourceSubscriptions/subscription-sample.jsonld +${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-invalid-sample.json + +*** Test Case *** +Update Context Source Registration Subscription With Invalid Fragment + [Documentation] Check that you cannot update a context source registration subscription by setting to null its mandatory properties + [Tags] mandatory + + ${subscription_update_fragment}= Load Test Sample ${subscription_update_fragment_file_path} + Update Context Source Registration Subscription ${subscription_id} ${subscription_update_fragment} + + Check Response Status Code Set To 400 + Check Response Body Containing ProblemDetails Element Containing Type Element set to ${response} ${ERROR_TYPE_BAD_REQUEST_DATA} + Check Response Body Containing ProblemDetails Element Containing Title Element ${response} + +*** Keywords *** +Setup Initial Context Source Registration Subscriptions + ${subscription_id}= Generate Random Entity Id ${subscription_id_prefix} + ${subscription_payload}= Load Test Sample ${subscription_payload_file_path} ${subscription_id} + + Create Context Source Registration Subscription ${subscription_payload} + + Set Suite Variable ${subscription_id} + +Delete Initial Context Source Registration Subscriptions + Delete Context Source Registration Subscription ${subscription_id} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_06.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_06.robot new file mode 100644 index 00000000..f90f18ed --- /dev/null +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_06.robot @@ -0,0 +1,35 @@ +*** Settings *** +Documentation Check that you cannot update a context source registration subscription with an invalid request body (invalid JSON document) +Resource ${EXECDIR}/resources/ApiUtils.resource +Resource ${EXECDIR}/resources/AssertionUtils.resource +Resource ${EXECDIR}/resources/JsonUtils.resource + +Suite Setup Setup Initial Context Source Registration Subscriptions +Suite Teardown Delete Initial Context Source Registration Subscriptions + +*** Variable *** +${subscription_payload_file_path}= ${EXECDIR}/data/csourceSubscriptions/subscription-sample.jsonld +${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-invalid-json-sample.json + +*** Test Case *** +Update Context Source Registration Subscription With Invalid JSON Fragment + [Documentation] Check that you cannot update a context source registration subscription with an invalid request body (invalid JSON document) + [Tags] mandatory + + Update Context Source Registration Subscription From File ${subscription_id} ${subscription_update_fragment_file_path} + + Check RL Response Status Code Set To 400 + Check RL Response Body Containing ProblemDetails Element Containing Type Element set to ${response} ${ERROR_TYPE_INVALID_REQUEST} + Check RL Response Body Containing ProblemDetails Element Containing Title Element ${response} + +*** Keywords *** +Setup Initial Context Source Registration Subscriptions + ${subscription_id}= Generate Random Entity Id ${subscription_id_prefix} + ${subscription_payload}= Load Test Sample ${subscription_payload_file_path} ${subscription_id} + + Create Context Source Registration Subscription ${subscription_payload} + + Set Suite Variable ${subscription_id} + +Delete Initial Context Source Registration Subscriptions + Delete Context Source Registration Subscription ${subscription_id} diff --git a/data/csourceSubscriptions/fragments/subscription-update-invalid-json-sample.json b/data/csourceSubscriptions/fragments/subscription-update-invalid-json-sample.json new file mode 100644 index 00000000..972d1c5c --- /dev/null +++ b/data/csourceSubscriptions/fragments/subscription-update-invalid-json-sample.json @@ -0,0 +1,9 @@ +{ + "notification":{ + "format":"keyValues",, + "endpoint":{ + "uri":"http://my.second.endpoint.org/notify", + "accept":"application/json" + } + } +} \ No newline at end of file diff --git a/data/csourceSubscriptions/fragments/subscription-update-invalid-sample.json b/data/csourceSubscriptions/fragments/subscription-update-invalid-sample.json new file mode 100644 index 00000000..3f46469e --- /dev/null +++ b/data/csourceSubscriptions/fragments/subscription-update-invalid-sample.json @@ -0,0 +1,10 @@ +{ + "type": null, + "notification":{ + "format":"keyValues", + "endpoint":{ + "uri":"http://my.second.endpoint.org/notify", + "accept":"application/json" + } + } +} \ No newline at end of file diff --git a/data/csourceSubscriptions/fragments/subscription-update-sample.json b/data/csourceSubscriptions/fragments/subscription-update-sample.json new file mode 100644 index 00000000..81f39078 --- /dev/null +++ b/data/csourceSubscriptions/fragments/subscription-update-sample.json @@ -0,0 +1,9 @@ +{ + "notification":{ + "format":"keyValues", + "endpoint":{ + "uri":"http://my.second.endpoint.org/notify", + "accept":"application/json" + } + } +} \ No newline at end of file diff --git a/resources/ApiUtils.resource b/resources/ApiUtils.resource index 80598c54..d460851b 100755 --- a/resources/ApiUtils.resource +++ b/resources/ApiUtils.resource @@ -301,6 +301,15 @@ Create Context Source Registration Subscription Set Suite Variable ${request} Set Suite Variable ${response} +Update Context Source Registration Subscription + [Arguments] ${subscription_id} ${subscription_update_fragment} + + ${response}= PATCH ${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id} body=${subscription_update_fragment} + Output request + Output response + + Set Test Variable ${response} + Delete Context Source Registration Subscription [Arguments] ${subscription_id} @@ -309,3 +318,10 @@ Delete Context Source Registration Subscription Output response Set Suite Variable ${response} + +Update Context Source Registration Subscription From File + [Arguments] ${subscription_id} ${file_path} + ${file_content}= Get File ${file_path} + Create Session CsrsUpdateRequest ${url} + ${response}= PATCH On Session CsrsUpdateRequest ${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id} data=${file_content} expected_status=any + Set Test Variable ${response} -- GitLab From 846d61f7cf6ff2ce33821f0d732eed05a08e80de Mon Sep 17 00:00:00 2001 From: Houcem Kacem Date: Thu, 14 Jan 2021 12:31:36 +0100 Subject: [PATCH 2/3] merge tps 033_04 and 033_05 in one tp + refactor code --- .../033_01.robot | 5 +++-- .../033_02.robot | 2 +- .../033_03.robot | 2 +- .../033_04.robot | 15 ++++++++++----- .../{033_06.robot => 033_05.robot} | 5 +++-- ...iption-update-invalid-notification-sample.json | 5 +++++ ... subscription-update-invalid-type-sample.json} | 0 resources/ApiUtils.resource | 2 +- 8 files changed, 24 insertions(+), 12 deletions(-) rename TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/{033_06.robot => 033_05.robot} (86%) create mode 100644 data/csourceSubscriptions/fragments/subscription-update-invalid-notification-sample.json rename data/csourceSubscriptions/fragments/{subscription-update-invalid-sample.json => subscription-update-invalid-type-sample.json} (100%) diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_01.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_01.robot index 244b1a02..c72a111c 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_01.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_01.robot @@ -8,8 +8,9 @@ Suite Setup Setup Initial Context Source Registration Subscriptions Suite Teardown Delete Initial Context Source Registration Subscriptions *** Variable *** -${subscription_payload_file_path}= ${EXECDIR}/data/csourceSubscriptions/subscription-sample.jsonld -${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-sample.json +${subscription_id_prefix}= urn:ngsi-ld:Subscription: +${subscription_payload_file_path}= csourceSubscriptions/subscription-sample.jsonld +${subscription_update_fragment_file_path}= csourceSubscriptions/fragments/subscription-update-sample.json *** Test Case *** Update Context Source Registration Subscription diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_02.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_02.robot index 3b92854f..c62c0d80 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_02.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_02.robot @@ -5,7 +5,7 @@ Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource *** Variable *** -${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-sample.json +${subscription_update_fragment_file_path}= csourceSubscriptions/fragments/subscription-update-sample.json *** Test Case *** Update Context Source Registration Subscription With Invalid Uri diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_03.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_03.robot index 175e9102..58da0713 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_03.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_03.robot @@ -5,7 +5,7 @@ Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource *** Variable *** -${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-sample.json +${subscription_update_fragment_file_path}= csourceSubscriptions/fragments/subscription-update-sample.json *** Test Case *** Update Unknown Context Source Registration Subscription diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot index 62686e1a..f19d11d1 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot @@ -4,26 +4,31 @@ Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource +Test Template Update Context Source Registration Subscription With Invalid Fragment Suite Setup Setup Initial Context Source Registration Subscriptions Suite Teardown Delete Initial Context Source Registration Subscriptions *** Variable *** -${subscription_payload_file_path}= ${EXECDIR}/data/csourceSubscriptions/subscription-sample.jsonld -${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-invalid-sample.json +${subscription_id_prefix}= urn:ngsi-ld:Subscription: +${subscription_payload_file_path}= csourceSubscriptions/subscription-sample.jsonld -*** Test Case *** +*** Test Cases *** FILEPATH +InvalidType csourceSubscriptions/fragments/subscription-update-invalid-type-sample.json +InvalidNotification csourceSubscriptions/fragments/subscription-update-invalid-notification-sample.json + +*** Keywords *** Update Context Source Registration Subscription With Invalid Fragment + [Arguments] ${filepath} [Documentation] Check that you cannot update a context source registration subscription by setting to null its mandatory properties [Tags] mandatory - ${subscription_update_fragment}= Load Test Sample ${subscription_update_fragment_file_path} + ${subscription_update_fragment}= Load Test Sample ${filepath} Update Context Source Registration Subscription ${subscription_id} ${subscription_update_fragment} Check Response Status Code Set To 400 Check Response Body Containing ProblemDetails Element Containing Type Element set to ${response} ${ERROR_TYPE_BAD_REQUEST_DATA} Check Response Body Containing ProblemDetails Element Containing Title Element ${response} -*** Keywords *** Setup Initial Context Source Registration Subscriptions ${subscription_id}= Generate Random Entity Id ${subscription_id_prefix} ${subscription_payload}= Load Test Sample ${subscription_payload_file_path} ${subscription_id} diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_06.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_05.robot similarity index 86% rename from TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_06.robot rename to TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_05.robot index f90f18ed..b646740c 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_06.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_05.robot @@ -8,8 +8,9 @@ Suite Setup Setup Initial Context Source Registration Subscriptions Suite Teardown Delete Initial Context Source Registration Subscriptions *** Variable *** -${subscription_payload_file_path}= ${EXECDIR}/data/csourceSubscriptions/subscription-sample.jsonld -${subscription_update_fragment_file_path}= ${EXECDIR}/data/csourceSubscriptions/fragments/subscription-update-invalid-json-sample.json +${subscription_id_prefix}= urn:ngsi-ld:Subscription: +${subscription_payload_file_path}= csourceSubscriptions/subscription-sample.jsonld +${subscription_update_fragment_file_path}= csourceSubscriptions/fragments/subscription-update-invalid-json-sample.json *** Test Case *** Update Context Source Registration Subscription With Invalid JSON Fragment diff --git a/data/csourceSubscriptions/fragments/subscription-update-invalid-notification-sample.json b/data/csourceSubscriptions/fragments/subscription-update-invalid-notification-sample.json new file mode 100644 index 00000000..e82d4022 --- /dev/null +++ b/data/csourceSubscriptions/fragments/subscription-update-invalid-notification-sample.json @@ -0,0 +1,5 @@ +{ + "notification":{ + "format":"keyValues" + } +} \ No newline at end of file diff --git a/data/csourceSubscriptions/fragments/subscription-update-invalid-sample.json b/data/csourceSubscriptions/fragments/subscription-update-invalid-type-sample.json similarity index 100% rename from data/csourceSubscriptions/fragments/subscription-update-invalid-sample.json rename to data/csourceSubscriptions/fragments/subscription-update-invalid-type-sample.json diff --git a/resources/ApiUtils.resource b/resources/ApiUtils.resource index d460851b..f81ceb97 100755 --- a/resources/ApiUtils.resource +++ b/resources/ApiUtils.resource @@ -321,7 +321,7 @@ Delete Context Source Registration Subscription Update Context Source Registration Subscription From File [Arguments] ${subscription_id} ${file_path} - ${file_content}= Get File ${file_path} + ${file_content}= Get File ${EXECDIR}/data/${file_path} Create Session CsrsUpdateRequest ${url} ${response}= PATCH On Session CsrsUpdateRequest ${CONTEXT_SOURCE_REGISTRATION_SUBSCRIPTION_ENDPOINT_PATH}/${subscription_id} data=${file_content} expected_status=any Set Test Variable ${response} -- GitLab From 8e91792413a393d4ba36bf1e4f11cc329b9d4f82 Mon Sep 17 00:00:00 2001 From: Houcem Kacem Date: Thu, 14 Jan 2021 12:35:47 +0100 Subject: [PATCH 3/3] doc: update documentation of 033_04 --- .../UpdateContextSourceRegistrationSubscription/033_04.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot index f19d11d1..54d969c6 100644 --- a/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot +++ b/TP/NGSI-LD/ContextSource/RegistrationSubscription/UpdateContextSourceRegistrationSubscription/033_04.robot @@ -1,5 +1,5 @@ *** Settings *** -Documentation Check that you cannot update a context source registration subscription by setting to null its mandatory properties +Documentation Check that you cannot update a context source registration subscription with a fragment that doesn't meet the data types and restrictions expressed by clause 5.2.12 Resource ${EXECDIR}/resources/ApiUtils.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource @@ -19,7 +19,7 @@ InvalidNotification csourceSubscriptions/fragments/subscri *** Keywords *** Update Context Source Registration Subscription With Invalid Fragment [Arguments] ${filepath} - [Documentation] Check that you cannot update a context source registration subscription by setting to null its mandatory properties + [Documentation] Check that you cannot update a context source registration subscription with a fragment that doesn't meet the data types and restrictions expressed by clause 5.2.12 [Tags] mandatory ${subscription_update_fragment}= Load Test Sample ${filepath} -- GitLab