Loading MEC011/SRV/APPSUB/environment/variables.txt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -18,7 +18,7 @@ ${APP_TERM_NOTIF_CALLBACK_URI} http://127.0.0.1/subscribe ${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3 ${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3 ${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID ${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID ${SUB_ID} # ${SUBSCRIPTION_TYPE} MobilityProcedureSubscription # ${SUBSCRIPTION_TYPE} MobilityProcedureSubscription Loading MEC011/SRV/LIV/Liveness.robot→MEC011/SRV/MLS/Liveness.robot +37 −9 Original line number Original line Diff line number Diff line Loading @@ -10,8 +10,7 @@ Library OperatingSystem *** Test Cases *** *** Test Cases *** TC_MEC_MEC011_SRV_MSL_001_OK TP_MEC_MEC011_SRV_MSL_001_OK [Documentation] [Documentation] ... Check that the IUT responds with the liveness of a MEC service instance ... Check that the IUT responds with the liveness of a MEC service instance ... when queried by a MEC Application ... when queried by a MEC Application Loading @@ -19,13 +18,14 @@ TP_MEC_MEC011_SRV_MSL_001_OK ... "ETSI GS MEC 011 3.2.1, clause 8.1.2.4", ... "ETSI GS MEC 011 3.2.1, clause 8.1.2.4", ... "ETSI GS MEC 011 3.2.1, clause 8.2.10.3.1" ... "ETSI GS MEC 011 3.2.1, clause 8.2.10.3.1" [Tags] PIC_MEC_PLAT PIC_SERVICES [Tags] PIC_MEC_PLAT PIC_SERVICES Individual MEC service liveness ${URL_SERVICE_MEC_LIVENESS} [Setup] Create new service ServiceInfo ${APP_INSTANCE_ID} Individual MEC service liveness ${LIVENESS_URI} Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ServiceLivenessInfo Check HTTP Response Body Json Schema Is ServiceLivenessInfo Check Response Contains ${response['body']} state ACTIVE Check Response Contains ${response['body']} state ACTIVE [TearDown] Remove individual service ${APP_INSTANCE_ID} ${SERVICE_NAME} TC_MEC_MEC011_SRV_MSL_001_NF TP_MEC_MEC011_SRV_MSL_001_NF [Documentation] [Documentation] ... Check that the IUT responds with an error when ... Check that the IUT responds with an error when ... a request for an URI that cannot be mapped to a valid resource URI ... a request for an URI that cannot be mapped to a valid resource URI Loading @@ -38,7 +38,7 @@ TP_MEC_MEC011_SRV_MSL_001_NF Check HTTP Response Status Code Is 404 Check HTTP Response Status Code Is 404 TP_MEC_MEC011_SRV_MSL_002_OK_01 TC_MEC_MEC011_SRV_MSL_002_OK_01 [Documentation] [Documentation] ... Check that the IUT updates the liveness of a MEC service instance ... Check that the IUT updates the liveness of a MEC service instance ... when requested by a MEC Application ... when requested by a MEC Application Loading @@ -49,13 +49,15 @@ TP_MEC_MEC011_SRV_MSL_002_OK_01 Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"} ${file}= Catenate SEPARATOR= jsons/ ServiceLivenessUpdate .json ${file}= Catenate SEPARATOR= jsons/ ServiceLivenessUpdate .json ${body}= Get File ${file} ${body}= Get File ${file} [Setup] Create new service ServiceInfo ${APP_INSTANCE_ID} Update MEC service liveness ${URL_SERVICE_MEC_LIVENESS} ${body} Update MEC service liveness ${URL_SERVICE_MEC_LIVENESS} ${body} Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ServiceLivenessInfo Check HTTP Response Body Json Schema Is ServiceLivenessInfo Check Response Contains ${response['body']} state ACTIVE Check Response Contains ${response['body']} state ACTIVE [TearDown] Remove individual service ${APP_INSTANCE_ID} ${SERVICE_NAME} TP_MEC_MEC011_SRV_MSL_002_OK_02 TC_MEC_MEC011_SRV_MSL_002_OK_02 [Documentation] [Documentation] ... Check that the IUT updates the liveness of a MEC service instance ... Check that the IUT updates the liveness of a MEC service instance ... when requested by a MEC Application ... when requested by a MEC Application Loading @@ -71,7 +73,7 @@ TP_MEC_MEC011_SRV_MSL_002_OK_02 Check HTTP Response Status Code Is 204 Check HTTP Response Status Code Is 204 TP_MEC_MEC011_SRV_MSL_002_BR TC_MEC_MEC011_SRV_MSL_002_BR [Documentation] [Documentation] ... Check that the IUT responds with an error when ... Check that the IUT responds with an error when ... incorrect parameters were sent by a MEC Application ... incorrect parameters were sent by a MEC Application Loading @@ -88,6 +90,32 @@ TP_MEC_MEC011_SRV_MSL_002_BR *** Keywords *** *** Keywords *** Create new service [Arguments] ${content} ${appInstanceId} Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} #Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} ${file}= Catenate SEPARATOR= jsons/ ${content} .json ${body}= Get File ${file} POST http://${HOST_APP_SAQ}:${PORT_APP_SAQ}/${apiRoot_APP_SAQ}${apiName_APP_SAQ}/${apiVersion_APP_SAQ}/applications/${appInstanceId}/services ${body} ${output}= Output response Set Suite Variable ${response} ${output} Set Suite Variable ${LIVENESS_URI} ${response['body']['_links']['liveness']['href']} Set Suite Variable ${SERVICE_NAME} ${response['body']['serName']} Remove individual service [Arguments] ${appInstanceId} ${serviceName} Set Headers {"Accept":"application/json"} Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Content-Type":"*/*"} DELETE http://${HOST_APP_SAQ}:${PORT_APP_SAQ}/${apiRoot_APP_SAQ}${apiName_APP_SAQ}/${apiVersion_APP_SAQ}/applications/${appInstanceId}/services/${serviceName} ${output}= Output response Set Suite Variable ${response} ${output} Individual MEC service liveness Individual MEC service liveness [Arguments] ${URL_MEC_SERVICE_LIVENESS} [Arguments] ${URL_MEC_SERVICE_LIVENESS} Set Headers {"Accept":"application/json"} Set Headers {"Accept":"application/json"} Loading MEC011/SRV/LIV/README.md→MEC011/SRV/MLS/README.md +0 −0 File moved. MEC011/SRV/LIV/environment/variables.txt→MEC011/SRV/MLS/environment/variables.txt +11 −1 Original line number Original line Diff line number Diff line Loading @@ -10,3 +10,13 @@ ${apiRoot} # Specific variables # Specific variables ${URL_SERVICE_MEC_LIVENESS} /link/to/individual/mecServiceLiveness ${URL_SERVICE_MEC_LIVENESS} /link/to/individual/mecServiceLiveness ${NOT_EXISING_URL_SERVICE_MEC_LIVENESS} /not_existing_link/to/individual/mecServiceLiveness ${NOT_EXISING_URL_SERVICE_MEC_LIVENESS} /not_existing_link/to/individual/mecServiceLiveness #Variables for test setups and teardowns ${HOST_APP_SAQ} 127.0.0.1 ${PORT_APP_SAQ} 8082 ${apiRoot_APP_SAQ} ${apiName_APP_SAQ} mec_service_mgmt ${apiVersion_APP_SAQ} v1 ${APP_INSTANCE_ID} appInstanceId ${SERVICE_NAME} MEC011/SRV/MLS/jsons/ServiceInfo.json 0 → 100644 +8 −0 Original line number Original line Diff line number Diff line { "serName": "serviceName", "version": "0.1", "state": "INACTIVE", "serializer": "XML", "serInstanceId": "3F897E85-ABCD-FFFF-A957-FCF0CCE649FD", "transportId": "transportId" } No newline at end of file Loading
MEC011/SRV/APPSUB/environment/variables.txt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -18,7 +18,7 @@ ${APP_TERM_NOTIF_CALLBACK_URI} http://127.0.0.1/subscribe ${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3 ${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3 ${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID ${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID ${SUB_ID} # ${SUBSCRIPTION_TYPE} MobilityProcedureSubscription # ${SUBSCRIPTION_TYPE} MobilityProcedureSubscription Loading
MEC011/SRV/LIV/Liveness.robot→MEC011/SRV/MLS/Liveness.robot +37 −9 Original line number Original line Diff line number Diff line Loading @@ -10,8 +10,7 @@ Library OperatingSystem *** Test Cases *** *** Test Cases *** TC_MEC_MEC011_SRV_MSL_001_OK TP_MEC_MEC011_SRV_MSL_001_OK [Documentation] [Documentation] ... Check that the IUT responds with the liveness of a MEC service instance ... Check that the IUT responds with the liveness of a MEC service instance ... when queried by a MEC Application ... when queried by a MEC Application Loading @@ -19,13 +18,14 @@ TP_MEC_MEC011_SRV_MSL_001_OK ... "ETSI GS MEC 011 3.2.1, clause 8.1.2.4", ... "ETSI GS MEC 011 3.2.1, clause 8.1.2.4", ... "ETSI GS MEC 011 3.2.1, clause 8.2.10.3.1" ... "ETSI GS MEC 011 3.2.1, clause 8.2.10.3.1" [Tags] PIC_MEC_PLAT PIC_SERVICES [Tags] PIC_MEC_PLAT PIC_SERVICES Individual MEC service liveness ${URL_SERVICE_MEC_LIVENESS} [Setup] Create new service ServiceInfo ${APP_INSTANCE_ID} Individual MEC service liveness ${LIVENESS_URI} Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ServiceLivenessInfo Check HTTP Response Body Json Schema Is ServiceLivenessInfo Check Response Contains ${response['body']} state ACTIVE Check Response Contains ${response['body']} state ACTIVE [TearDown] Remove individual service ${APP_INSTANCE_ID} ${SERVICE_NAME} TC_MEC_MEC011_SRV_MSL_001_NF TP_MEC_MEC011_SRV_MSL_001_NF [Documentation] [Documentation] ... Check that the IUT responds with an error when ... Check that the IUT responds with an error when ... a request for an URI that cannot be mapped to a valid resource URI ... a request for an URI that cannot be mapped to a valid resource URI Loading @@ -38,7 +38,7 @@ TP_MEC_MEC011_SRV_MSL_001_NF Check HTTP Response Status Code Is 404 Check HTTP Response Status Code Is 404 TP_MEC_MEC011_SRV_MSL_002_OK_01 TC_MEC_MEC011_SRV_MSL_002_OK_01 [Documentation] [Documentation] ... Check that the IUT updates the liveness of a MEC service instance ... Check that the IUT updates the liveness of a MEC service instance ... when requested by a MEC Application ... when requested by a MEC Application Loading @@ -49,13 +49,15 @@ TP_MEC_MEC011_SRV_MSL_002_OK_01 Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Authorization":"${TOKEN}"} ${file}= Catenate SEPARATOR= jsons/ ServiceLivenessUpdate .json ${file}= Catenate SEPARATOR= jsons/ ServiceLivenessUpdate .json ${body}= Get File ${file} ${body}= Get File ${file} [Setup] Create new service ServiceInfo ${APP_INSTANCE_ID} Update MEC service liveness ${URL_SERVICE_MEC_LIVENESS} ${body} Update MEC service liveness ${URL_SERVICE_MEC_LIVENESS} ${body} Check HTTP Response Status Code Is 200 Check HTTP Response Status Code Is 200 Check HTTP Response Body Json Schema Is ServiceLivenessInfo Check HTTP Response Body Json Schema Is ServiceLivenessInfo Check Response Contains ${response['body']} state ACTIVE Check Response Contains ${response['body']} state ACTIVE [TearDown] Remove individual service ${APP_INSTANCE_ID} ${SERVICE_NAME} TP_MEC_MEC011_SRV_MSL_002_OK_02 TC_MEC_MEC011_SRV_MSL_002_OK_02 [Documentation] [Documentation] ... Check that the IUT updates the liveness of a MEC service instance ... Check that the IUT updates the liveness of a MEC service instance ... when requested by a MEC Application ... when requested by a MEC Application Loading @@ -71,7 +73,7 @@ TP_MEC_MEC011_SRV_MSL_002_OK_02 Check HTTP Response Status Code Is 204 Check HTTP Response Status Code Is 204 TP_MEC_MEC011_SRV_MSL_002_BR TC_MEC_MEC011_SRV_MSL_002_BR [Documentation] [Documentation] ... Check that the IUT responds with an error when ... Check that the IUT responds with an error when ... incorrect parameters were sent by a MEC Application ... incorrect parameters were sent by a MEC Application Loading @@ -88,6 +90,32 @@ TP_MEC_MEC011_SRV_MSL_002_BR *** Keywords *** *** Keywords *** Create new service [Arguments] ${content} ${appInstanceId} Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} #Set Headers {"Content-Type":"*/*"} Set Headers {"Authorization":"${TOKEN}"} ${file}= Catenate SEPARATOR= jsons/ ${content} .json ${body}= Get File ${file} POST http://${HOST_APP_SAQ}:${PORT_APP_SAQ}/${apiRoot_APP_SAQ}${apiName_APP_SAQ}/${apiVersion_APP_SAQ}/applications/${appInstanceId}/services ${body} ${output}= Output response Set Suite Variable ${response} ${output} Set Suite Variable ${LIVENESS_URI} ${response['body']['_links']['liveness']['href']} Set Suite Variable ${SERVICE_NAME} ${response['body']['serName']} Remove individual service [Arguments] ${appInstanceId} ${serviceName} Set Headers {"Accept":"application/json"} Set Headers {"Authorization":"${TOKEN}"} Set Headers {"Content-Type":"*/*"} DELETE http://${HOST_APP_SAQ}:${PORT_APP_SAQ}/${apiRoot_APP_SAQ}${apiName_APP_SAQ}/${apiVersion_APP_SAQ}/applications/${appInstanceId}/services/${serviceName} ${output}= Output response Set Suite Variable ${response} ${output} Individual MEC service liveness Individual MEC service liveness [Arguments] ${URL_MEC_SERVICE_LIVENESS} [Arguments] ${URL_MEC_SERVICE_LIVENESS} Set Headers {"Accept":"application/json"} Set Headers {"Accept":"application/json"} Loading
MEC011/SRV/LIV/environment/variables.txt→MEC011/SRV/MLS/environment/variables.txt +11 −1 Original line number Original line Diff line number Diff line Loading @@ -10,3 +10,13 @@ ${apiRoot} # Specific variables # Specific variables ${URL_SERVICE_MEC_LIVENESS} /link/to/individual/mecServiceLiveness ${URL_SERVICE_MEC_LIVENESS} /link/to/individual/mecServiceLiveness ${NOT_EXISING_URL_SERVICE_MEC_LIVENESS} /not_existing_link/to/individual/mecServiceLiveness ${NOT_EXISING_URL_SERVICE_MEC_LIVENESS} /not_existing_link/to/individual/mecServiceLiveness #Variables for test setups and teardowns ${HOST_APP_SAQ} 127.0.0.1 ${PORT_APP_SAQ} 8082 ${apiRoot_APP_SAQ} ${apiName_APP_SAQ} mec_service_mgmt ${apiVersion_APP_SAQ} v1 ${APP_INSTANCE_ID} appInstanceId ${SERVICE_NAME}
MEC011/SRV/MLS/jsons/ServiceInfo.json 0 → 100644 +8 −0 Original line number Original line Diff line number Diff line { "serName": "serviceName", "version": "0.1", "state": "INACTIVE", "serializer": "XML", "serInstanceId": "3F897E85-ABCD-FFFF-A957-FCF0CCE649FD", "transportId": "transportId" } No newline at end of file