Loading TP/NGSI-LD/JSON-LD@contextServer/Consumption/ListContexts/052_01.robot 0 → 100644 +0 −0 Empty file added. TP/NGSI-LD/JSON-LD@contextServer/Consumption/ServeContext/053_01.robot 0 → 100644 +43 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you can serve a previous created @context Resource ${EXECDIR}/resources/ApiUtils/JSON-LD@ContextServer.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Resource ${EXECDIR}/resources/HttpUtils.resource Library Collections Test Setup Create Initial @context Test Teardown Delete Initial @context *** Variables *** ${filename}= @context-minimal-valid.json ${reason_200}= OK ${reason_204}= No Content *** Test Cases *** 053_01_01 Serve a @context without details [Documentation] Check that you can serve a @context [Tags] ctx-serve 5_13_4 ${response}= Serve a @context ${uri} Check Response Status Code 200 ${response.status_code} Check Response Reason set to ${response.reason} ${reason_200} Check Response Headers Containing Content-Type set to ${CONTENT_TYPE_JSON} ${response.headers} Check Context Response Body Content ${filename} ${response.json()} *** Keywords *** Create Initial @context ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} ${uri}= Fetch Id From Response Location Header ${response.headers} Set Suite Variable ${uri} Delete Initial @context ${response_delete}= Delete a @context without reload ${uri} Check Response Status Code 204 ${response_delete.status_code} Check Response Reason set to ${response_delete.reason} ${reason_204} TP/NGSI-LD/JSON-LD@contextServer/Consumption/ServeContext/053_02.robot 0 → 100644 +48 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you can serve a previous created @context with details equal to False Resource ${EXECDIR}/resources/ApiUtils/JSON-LD@ContextServer.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Resource ${EXECDIR}/resources/HttpUtils.resource Library Collections Test Setup Create Initial @context Test Teardown Delete Initial @context Test Template Serve a @context with details equal to true *** Variables *** ${filename}= @context-minimal-valid.json ${reason_200}= OK ${reason_204}= No Content *** Test Cases *** DETAILS 053_02_01 Serve a @context with details equal to False [Tags] ctx-serve 5_13_4 ${False} *** Keywords *** Create Initial @context ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} ${uri}= Fetch Id From Response Location Header ${response.headers} Set Suite Variable ${uri} Serve a @context with details equal to true [Documentation] Check that you can serve a @context with details [Arguments] ${details} ${response}= Serve a @context ${uri} ${details} Check Response Status Code 200 ${response.status_code} Check Response Reason set to ${response.reason} ${reason_200} Check Response Headers Containing Content-Type set to ${CONTENT_TYPE_JSON} ${response.headers} Check Context Response Body Content ${filename} ${response.json()} Delete Initial @context ${response_delete}= Delete a @context without reload ${uri} Check Response Status Code 204 ${response_delete.status_code} Check Response Reason set to ${response_delete.reason} ${reason_204} TP/NGSI-LD/JSON-LD@contextServer/Consumption/ServeContext/053_03.robot 0 → 100644 +56 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you can serve a previous created @context with details equal to True Resource ${EXECDIR}/resources/ApiUtils/JSON-LD@ContextServer.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Resource ${EXECDIR}/resources/HttpUtils.resource Library Collections Test Setup Create Initial @context Test Teardown Delete Initial @context Test Template Serve a @context with details equal to true *** Variables *** ${filename}= @context-minimal-valid.json ${reason_200}= OK ${reason_204}= No Content *** Test Cases *** DETAILS 053_02_01 Serve a @context with details equal to True [Tags] ctx-serve 5_13_4 ${True} *** Keywords *** Create Initial @context ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} ${uri}= Fetch Id From Response Location Header ${response.headers} Set Suite Variable ${uri} Serve a @context with details equal to true [Documentation] Check that you can serve a @context with details [Arguments] ${details} ${response}= Serve a @context ${uri} ${details} Check Response Status Code 200 ${response.status_code} Check Response Reason set to ${response.reason} ${reason_200} Check Response Headers Containing Content-Type set to ${CONTENT_TYPE_JSON} ${response.headers} # URL; # localId; # kind; # timestamp; # lastUsage [OPTIONAL]; # numberOfHits [OPTIONAL]; # extraInfo [OPTIONAL, used by implementations to report any kind of custom information]. Check Context Response Body Containing Detailed Information ${response.json()} Delete Initial @context ${response_delete}= Delete a @context without reload ${uri} Check Response Status Code 204 ${response_delete.status_code} Check Response Reason set to ${response_delete.reason} ${reason_204} TP/NGSI-LD/JSON-LD@contextServer/Provision/AddContext/050_01.robot 0 → 100644 +47 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you can add a @context Resource ${EXECDIR}/resources/ApiUtils/JSON-LD@ContextServer.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Resource ${EXECDIR}/resources/HttpUtils.resource Test Teardown Delete Initial @context *** Variables *** ${filename}= @context-minimal-valid.json ${reason_201}= Created ${reason_204}= No Content ${context_hosted}= hosted *** Test Cases *** 050_01_01 Add a valid @context [Documentation] Check that you can add a @context [Tags] ctx-add 5_13_2 ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} Check Response Does Not Contain Body ${response} Check Response Reason set to ${response.reason} ${reason_201} Dictionary Should Contain Key ${response.headers} Location msg=HTTP Headers do not contain key 'Location' ${uri}= Fetch Id From Response Location Header ${response.headers} Set Suite Variable ${uri} Log URI: ${uri} # Need to check that the kind value of the created context is "hosted" ${response_serve}= Serve a @context ${uri} True Check Response Kind set to ${response.kind} ${context_hosted} Log URI: ${response_serve} *** Keywords *** Delete Initial @context ${response_delete}= Delete a @context without reload ${uri} Check Response Status Code 204 ${response_delete.status_code} Check Response Reason set to ${response_delete.reason} ${reason_204} Loading
TP/NGSI-LD/JSON-LD@contextServer/Consumption/ListContexts/052_01.robot 0 → 100644 +0 −0 Empty file added.
TP/NGSI-LD/JSON-LD@contextServer/Consumption/ServeContext/053_01.robot 0 → 100644 +43 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you can serve a previous created @context Resource ${EXECDIR}/resources/ApiUtils/JSON-LD@ContextServer.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Resource ${EXECDIR}/resources/HttpUtils.resource Library Collections Test Setup Create Initial @context Test Teardown Delete Initial @context *** Variables *** ${filename}= @context-minimal-valid.json ${reason_200}= OK ${reason_204}= No Content *** Test Cases *** 053_01_01 Serve a @context without details [Documentation] Check that you can serve a @context [Tags] ctx-serve 5_13_4 ${response}= Serve a @context ${uri} Check Response Status Code 200 ${response.status_code} Check Response Reason set to ${response.reason} ${reason_200} Check Response Headers Containing Content-Type set to ${CONTENT_TYPE_JSON} ${response.headers} Check Context Response Body Content ${filename} ${response.json()} *** Keywords *** Create Initial @context ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} ${uri}= Fetch Id From Response Location Header ${response.headers} Set Suite Variable ${uri} Delete Initial @context ${response_delete}= Delete a @context without reload ${uri} Check Response Status Code 204 ${response_delete.status_code} Check Response Reason set to ${response_delete.reason} ${reason_204}
TP/NGSI-LD/JSON-LD@contextServer/Consumption/ServeContext/053_02.robot 0 → 100644 +48 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you can serve a previous created @context with details equal to False Resource ${EXECDIR}/resources/ApiUtils/JSON-LD@ContextServer.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Resource ${EXECDIR}/resources/HttpUtils.resource Library Collections Test Setup Create Initial @context Test Teardown Delete Initial @context Test Template Serve a @context with details equal to true *** Variables *** ${filename}= @context-minimal-valid.json ${reason_200}= OK ${reason_204}= No Content *** Test Cases *** DETAILS 053_02_01 Serve a @context with details equal to False [Tags] ctx-serve 5_13_4 ${False} *** Keywords *** Create Initial @context ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} ${uri}= Fetch Id From Response Location Header ${response.headers} Set Suite Variable ${uri} Serve a @context with details equal to true [Documentation] Check that you can serve a @context with details [Arguments] ${details} ${response}= Serve a @context ${uri} ${details} Check Response Status Code 200 ${response.status_code} Check Response Reason set to ${response.reason} ${reason_200} Check Response Headers Containing Content-Type set to ${CONTENT_TYPE_JSON} ${response.headers} Check Context Response Body Content ${filename} ${response.json()} Delete Initial @context ${response_delete}= Delete a @context without reload ${uri} Check Response Status Code 204 ${response_delete.status_code} Check Response Reason set to ${response_delete.reason} ${reason_204}
TP/NGSI-LD/JSON-LD@contextServer/Consumption/ServeContext/053_03.robot 0 → 100644 +56 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you can serve a previous created @context with details equal to True Resource ${EXECDIR}/resources/ApiUtils/JSON-LD@ContextServer.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Resource ${EXECDIR}/resources/HttpUtils.resource Library Collections Test Setup Create Initial @context Test Teardown Delete Initial @context Test Template Serve a @context with details equal to true *** Variables *** ${filename}= @context-minimal-valid.json ${reason_200}= OK ${reason_204}= No Content *** Test Cases *** DETAILS 053_02_01 Serve a @context with details equal to True [Tags] ctx-serve 5_13_4 ${True} *** Keywords *** Create Initial @context ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} ${uri}= Fetch Id From Response Location Header ${response.headers} Set Suite Variable ${uri} Serve a @context with details equal to true [Documentation] Check that you can serve a @context with details [Arguments] ${details} ${response}= Serve a @context ${uri} ${details} Check Response Status Code 200 ${response.status_code} Check Response Reason set to ${response.reason} ${reason_200} Check Response Headers Containing Content-Type set to ${CONTENT_TYPE_JSON} ${response.headers} # URL; # localId; # kind; # timestamp; # lastUsage [OPTIONAL]; # numberOfHits [OPTIONAL]; # extraInfo [OPTIONAL, used by implementations to report any kind of custom information]. Check Context Response Body Containing Detailed Information ${response.json()} Delete Initial @context ${response_delete}= Delete a @context without reload ${uri} Check Response Status Code 204 ${response_delete.status_code} Check Response Reason set to ${response_delete.reason} ${reason_204}
TP/NGSI-LD/JSON-LD@contextServer/Provision/AddContext/050_01.robot 0 → 100644 +47 −0 Original line number Diff line number Diff line *** Settings *** Documentation Check that you can add a @context Resource ${EXECDIR}/resources/ApiUtils/JSON-LD@ContextServer.resource Resource ${EXECDIR}/resources/AssertionUtils.resource Resource ${EXECDIR}/resources/JsonUtils.resource Resource ${EXECDIR}/resources/HttpUtils.resource Test Teardown Delete Initial @context *** Variables *** ${filename}= @context-minimal-valid.json ${reason_201}= Created ${reason_204}= No Content ${context_hosted}= hosted *** Test Cases *** 050_01_01 Add a valid @context [Documentation] Check that you can add a @context [Tags] ctx-add 5_13_2 ${response}= Add a new @context ${filename} Check Response Status Code 201 ${response.status_code} Check Response Does Not Contain Body ${response} Check Response Reason set to ${response.reason} ${reason_201} Dictionary Should Contain Key ${response.headers} Location msg=HTTP Headers do not contain key 'Location' ${uri}= Fetch Id From Response Location Header ${response.headers} Set Suite Variable ${uri} Log URI: ${uri} # Need to check that the kind value of the created context is "hosted" ${response_serve}= Serve a @context ${uri} True Check Response Kind set to ${response.kind} ${context_hosted} Log URI: ${response_serve} *** Keywords *** Delete Initial @context ${response_delete}= Delete a @context without reload ${uri} Check Response Status Code 204 ${response_delete.status_code} Check Response Reason set to ${response_delete.reason} ${reason_204}