Loading TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01.robot +6 −6 Original line number Diff line number Diff line Loading @@ -16,18 +16,18 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi *** Test Cases *** FILENAME HAS_MODE 033_01_01 Create Context Source Registration With Specific Date Expiration Date [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration-with-expiration.jsonld 033_01_02 Create Context Source Registration That Never Expires 033_01_01 Create Context Source Registration Without Mode And Operation [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration.jsonld 033_01_03 Create Context Source Registration With Non Default Mode And Operations 033_01_02 Create Context Source Registration With Non Default Mode And Operations [Tags] csr-create 5_9_2 since_v1.6.1 csourceRegistrations/context-source-registration-with-mode-and-operations.jsonld ${True} 033_01_04 Create Context Source Registration With Location 033_01_03 Create Context Source Registration With Location [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration-location.jsonld 033_01_04 Create Context Source Registration With Specific Date Expiration Date [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration-with-expiration.jsonld *** Keywords *** Loading TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_11.robot +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi *** Test Cases *** 033_11 Create Context Source Registration Without Specifying an ID [Documentation] Check that one can create a context source registration without specifying an ID [Tags] csr-create 5_9_2 since_v1.6.1 [Tags] csr-create 5_9_2 ${payload}= Load JSON From File ${EXECDIR}/data/${registration_payload_file_path} ${response}= Create Context Source Registration With Return ${payload} Check Response Status Code 201 ${response.status_code} Loading TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_12.robotdeleted 100644 → 0 +0 −41 Original line number Diff line number Diff line *** Settings *** Documentation Check that one can create a context source registration without default mode and operations Resource ${EXECDIR}/resources/ApiUtils/ContextSourceRegistration.resource Resource ${EXECDIR}/resources/ApiUtils/ContextSourceDiscovery.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Suite Teardown Delete Created Context Source Registrations *** Variables *** ${registration_id_prefix}= urn:ngsi-ld:Registration: ${registration_payload_file_path}= csourceRegistrations/context-source-registration-without-mode-operations.jsonld *** Test Cases *** 033_12 Create Context Source Registration Without Mode And Operation [Documentation] Check that one can create a context source registration without mode and operations [Tags] csr-create 5_9_2 since_v1.6.1 ${registration_id}= Generate Random Entity Id ${registration_id_prefix} Set Suite Variable ${registration_id} ${payload}= Load JSON From File ${EXECDIR}/data/${registration_payload_file_path} ${registration_payload}= Update Value To JSON ${payload} $..id ${registration_id} ${response}= Create Context Source Registration With Return ${registration_payload} Check Response Status Code 201 ${response.status_code} Check Response Headers Containing URI set to ${registration_id} ${response.headers} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} ... context=${ngsild_test_suite_context} ... accept=${CONTENT_TYPE_LD_JSON} ${ignored_attributes}= Create List ${status_regex_expr} mode operations timesSent timesFailed Check Created Resource Set To ${registration_payload} ${response1.json()} ${ignored_attributes} *** Keywords *** Delete Created Context Source Registrations Delete Context Source Registration ${registration_id} data/csourceRegistrations/context-source-registration-location.jsonld +0 −2 Original line number Diff line number Diff line Loading @@ -14,8 +14,6 @@ "type":"Point", "coordinates":[-8.521,41.2] }, "mode": "inclusive", "operations": ["federationOps"], "endpoint":"http://my.csource.org:1026", "@context":[ "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld" Loading data/csourceRegistrations/context-source-registration-without-mode-operations.jsonlddeleted 100644 → 0 +0 −34 Original line number Diff line number Diff line { "id": "urn:ngsi-ld:ContextSourceRegistration:randomUUID", "type": "ContextSourceRegistration", "information": [ { "entities": [ { "id": "urn:ngsi-ld:Vehicle:A456", "type": "Vehicle" } ], "propertyNames": ["brandName","speed"], "relationshipNames": ["isParked"] }, { "entities": [ { "idPattern": ".*downtown$", "type": "OffStreetParking" }, { "idPattern": ".*47$", "type": "OffStreetParking" } ], "propertyNames": ["availableSpotNumber","totalSpotNumber"], "relationshipNames": ["isNextToBuilding"] } ], "endpoint": "http://my.csource.org:1026", "@context": [ "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld" ] } No newline at end of file Loading
TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_01.robot +6 −6 Original line number Diff line number Diff line Loading @@ -16,18 +16,18 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi *** Test Cases *** FILENAME HAS_MODE 033_01_01 Create Context Source Registration With Specific Date Expiration Date [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration-with-expiration.jsonld 033_01_02 Create Context Source Registration That Never Expires 033_01_01 Create Context Source Registration Without Mode And Operation [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration.jsonld 033_01_03 Create Context Source Registration With Non Default Mode And Operations 033_01_02 Create Context Source Registration With Non Default Mode And Operations [Tags] csr-create 5_9_2 since_v1.6.1 csourceRegistrations/context-source-registration-with-mode-and-operations.jsonld ${True} 033_01_04 Create Context Source Registration With Location 033_01_03 Create Context Source Registration With Location [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration-location.jsonld 033_01_04 Create Context Source Registration With Specific Date Expiration Date [Tags] csr-create 5_9_2 csourceRegistrations/context-source-registration-with-expiration.jsonld *** Keywords *** Loading
TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_11.robot +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ ${registration_payload_file_path}= csourceRegistrations/context-source-regi *** Test Cases *** 033_11 Create Context Source Registration Without Specifying an ID [Documentation] Check that one can create a context source registration without specifying an ID [Tags] csr-create 5_9_2 since_v1.6.1 [Tags] csr-create 5_9_2 ${payload}= Load JSON From File ${EXECDIR}/data/${registration_payload_file_path} ${response}= Create Context Source Registration With Return ${payload} Check Response Status Code 201 ${response.status_code} Loading
TP/NGSI-LD/ContextSource/Registration/RegisterContextSource/033_12.robotdeleted 100644 → 0 +0 −41 Original line number Diff line number Diff line *** Settings *** Documentation Check that one can create a context source registration without default mode and operations Resource ${EXECDIR}/resources/ApiUtils/ContextSourceRegistration.resource Resource ${EXECDIR}/resources/ApiUtils/ContextSourceDiscovery.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Suite Teardown Delete Created Context Source Registrations *** Variables *** ${registration_id_prefix}= urn:ngsi-ld:Registration: ${registration_payload_file_path}= csourceRegistrations/context-source-registration-without-mode-operations.jsonld *** Test Cases *** 033_12 Create Context Source Registration Without Mode And Operation [Documentation] Check that one can create a context source registration without mode and operations [Tags] csr-create 5_9_2 since_v1.6.1 ${registration_id}= Generate Random Entity Id ${registration_id_prefix} Set Suite Variable ${registration_id} ${payload}= Load JSON From File ${EXECDIR}/data/${registration_payload_file_path} ${registration_payload}= Update Value To JSON ${payload} $..id ${registration_id} ${response}= Create Context Source Registration With Return ${registration_payload} Check Response Status Code 201 ${response.status_code} Check Response Headers Containing URI set to ${registration_id} ${response.headers} ${response1}= Retrieve Context Source Registration ... context_source_registration_id=${registration_id} ... context=${ngsild_test_suite_context} ... accept=${CONTENT_TYPE_LD_JSON} ${ignored_attributes}= Create List ${status_regex_expr} mode operations timesSent timesFailed Check Created Resource Set To ${registration_payload} ${response1.json()} ${ignored_attributes} *** Keywords *** Delete Created Context Source Registrations Delete Context Source Registration ${registration_id}
data/csourceRegistrations/context-source-registration-location.jsonld +0 −2 Original line number Diff line number Diff line Loading @@ -14,8 +14,6 @@ "type":"Point", "coordinates":[-8.521,41.2] }, "mode": "inclusive", "operations": ["federationOps"], "endpoint":"http://my.csource.org:1026", "@context":[ "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld" Loading
data/csourceRegistrations/context-source-registration-without-mode-operations.jsonlddeleted 100644 → 0 +0 −34 Original line number Diff line number Diff line { "id": "urn:ngsi-ld:ContextSourceRegistration:randomUUID", "type": "ContextSourceRegistration", "information": [ { "entities": [ { "id": "urn:ngsi-ld:Vehicle:A456", "type": "Vehicle" } ], "propertyNames": ["brandName","speed"], "relationshipNames": ["isParked"] }, { "entities": [ { "idPattern": ".*downtown$", "type": "OffStreetParking" }, { "idPattern": ".*47$", "type": "OffStreetParking" } ], "propertyNames": ["availableSpotNumber","totalSpotNumber"], "relationshipNames": ["isNextToBuilding"] } ], "endpoint": "http://my.csource.org:1026", "@context": [ "https://forge.etsi.org/rep/cim/ngsi-ld-test-suite/-/raw/develop/resources/jsonld-contexts/ngsi-ld-test-suite-compound.jsonld" ] } No newline at end of file