*** Variables ***
# Generic variables
${SCHEMA} http
${HOST} 10.192.2.172
${HOST} 127.0.0.1
${PORT} 8081
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
......@@ -10,7 +10,7 @@ ${apiName} mec_service_mgmt
${apiVersion} v1
# Specific variables
${APP_INSTANCE_ID} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${APP_INSTANCE_ID} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${INSTANCE_ID} instance_id
${FAKE_INSTANCE_ID_VALUE} 5
${NON_EXISTENT_APP_INSTANCE_ID} NON_ESISTENT_APP_INSTANCE_ID
......
This diff is collapsed.
*** Variables ***
# Generic variables
${SCHEMA} http
${HOST} 10.192.2.172
${HOST} 127.0.0.1
${PORT} 8081
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
......
......@@ -3,7 +3,7 @@
Documentation
... A test suite for validating DNS rules (DNS) operations.
Resource ../../GenericKeywords.robot
Resource ../../../GenericKeywords.robot
Resource environment/variables.txt
Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false
Library OperatingSystem
......@@ -16,12 +16,12 @@ Default Tags TC_MEC_SRV_CONF
*** Test Cases ***
TC_MEC_SRV_CONF_001_OK
TP_MEC_MEC011_SRV_CONFTASK_001_OK
[Documentation]
... Check that the IUT responds with an acknowledge
... when requested graceful termination/stop of a MEC Application instance
... Check that the IUT responds that it has completed
... the application level termination
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.11.3.4
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.11.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppTerminationConfirmation
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -29,12 +29,12 @@ TC_MEC_SRV_CONF_001_OK
Check HTTP Response Status Code Is 204
TC_MEC_SRV_CONF_001_NF
TP_MEC_MEC011_SRV_CONFTASK_001_NF
[Documentation]
... Check that the IUT responds with an error
... when requested graceful termination/stop of an unknown MEC Application instance
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.11.3.4
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.11.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppTerminationConfirmation
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -44,12 +44,12 @@ TC_MEC_SRV_CONF_001_NF
TC_MEC_SRV_CONF_002_OK
TP_MEC_MEC011_SRV_CONFTASK_002_OK
[Documentation]
... Check that the IUT responds with an acknowledge
... when requested readiness status for a MEC Application instance
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.12.3.4
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.12.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppReadyConfirmation
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -57,12 +57,12 @@ TC_MEC_SRV_CONF_002_OK
Check HTTP Response Status Code Is 204
TC_MEC_SRV_CONF_002_NF
TP_MEC_MEC011_SRV_CONFTASK_002_NF
[Documentation]
... Check that the IUT responds with an error
... when requested readiness status for an unknown MEC Application instance
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.12.3.4
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.12.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppReadyConfirmation
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -78,7 +78,7 @@ Request termination of MEC Application
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
PUT ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/confirm_termination ${body}
POST ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/confirm_termination ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -90,6 +90,6 @@ Request readiness status of MEC Application
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
PUT ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/confirm_ready ${body}
POST ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/confirm_ready ${body}
${output}= Output response
Set Suite Variable ${response} ${output}