diff --git a/MEC011/SRV/APPSUB/PlatAppSubscriptions.robot b/MEC011/SRV/APPSUB/PlatAppSubscriptions.robot index 3154e0f5f89e1ddfc66aec0bb30c0acd576cc162..9ba023868799916963c684fcafbc097ee01fb4f9 100644 --- a/MEC011/SRV/APPSUB/PlatAppSubscriptions.robot +++ b/MEC011/SRV/APPSUB/PlatAppSubscriptions.robot @@ -18,9 +18,8 @@ TP_MEC_MEC011_SRV_APPSUB_001_OK ... Check that the IUT responds with a list of subscriptions for notifications ... on services availability when queried by a MEC Application ... - ... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.3.3.1 - ... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/MecAppSuptApiSubscriptionLinkList - + ... Reference "ETSI GS MEC 011 3.2.1, clause 5.2.6", + ... "ETSI GS MEC 011 3.2.1, clause 7.2.3.3.1" [Tags] PIC_MEC_PLAT PIC_SERVICES Get Subscriptions list ${APP_INSTANCE_ID} Check HTTP Response Status Code Is 200 @@ -32,8 +31,8 @@ TP_MEC_MEC011_SRV_APPSUB_001_NF ... Check that the IUT responds with an error when ... a request for an unknown URI is sent by a MEC Application ... - ... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.3.3.1 - + ... Reference "ETSI GS MEC 011 3.2.1, clause 5.2.6", + ... "ETSI GS MEC 011 3.2.1, clause 7.2.3.3.1" [Tags] PIC_MEC_PLAT PIC_SERVICES Get Subscriptions list ${NON_EXISTENT_APP_INSTANCE_ID} Check HTTP Response Status Code Is 404 @@ -44,9 +43,8 @@ TP_MEC_MEC011_SRV_APPSUB_002_OK ... Check that the IUT acknowledges the subscription by a MEC Application ... to notifications on service availability events ... - ... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.3.3.4 - ... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppTerminationNotificationSubscription - + ... Reference "ETSI GS MEC 011 3.2.1, clause 5.2.6", + ... "ETSI GS MEC 011 3.2.1, clause 7.2.3.3.4" [Tags] PIC_MEC_PLAT PIC_SERVICES Create new subscription ${APP_INSTANCE_ID} AppTerminationNotificationSubscription Check HTTP Response Status Code Is 201 @@ -61,15 +59,11 @@ TP_MEC_MEC011_SRV_APPSUB_002_BR ... Check that the IUT responds with the information on a specific subscription ... when queried by a MEC Application ... - ... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.3.3.4 - ... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppTerminationNotificationSubscription - + ... Reference "ETSI GS MEC 011 3.2.1, clause 5.2.6", + ... "ETSI GS MEC 011 3.2.1, clause 7.2.3.3.4" [Tags] PIC_MEC_PLAT PIC_SERVICES - Get individual subscription ${APP_INSTANCE_ID} ${SUBSCRIPTION_ID} - Check HTTP Response Status Code Is 200 - Check HTTP Response Body Json Schema Is AppTerminationNotificationSubscription - Check Response Contains ${response['body']} subscriptionType AppTerminationNotificationSubscription - + Create new subscription ${APP_INSTANCE_ID} AppTerminationNotificationSubscriptionBR + Check HTTP Response Status Code Is 400 TP_MEC_MEC011_SRV_APPSUB_003_OK @@ -77,8 +71,8 @@ TP_MEC_MEC011_SRV_APPSUB_003_OK ... Check that the IUT responds with the information on a specific subscription ... when queried by a MEC Application ... - ... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.4.3.1 - + ... Reference "ETSI GS MEC 011 3.2.1, clause 5.2.6", + ... "ETSI GS MEC 011 3.2.1, clause 7.2.4.3.1" [Tags] PIC_MEC_PLAT PIC_SERVICES Get individual subscription ${APP_INSTANCE_ID} ${SUBSCRIPTION_ID} Check HTTP Response Status Code Is 200 @@ -90,8 +84,8 @@ TP_MEC_MEC011_SRV_APPSUB_003_NF ... Check that the IUT responds with an error when ... a request for an unknown URI is sent by a MEC Application ... - ... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.4.3.1 - + ... Reference "ETSI GS MEC 011 3.2.1, clause 5.2.6", + ... "ETSI GS MEC 011 3.2.1, clause 7.2.4.3.1" [Tags] PIC_MEC_PLAT PIC_SERVICES Get individual subscription ${APP_INSTANCE_ID} ${NON_EXISTENT_SUBSCRIPTION_ID} Check HTTP Response Status Code Is 404 @@ -102,8 +96,8 @@ TP_MEC_MEC011_SRV_APPSUB_004_OK ... Check that the IUT acknowledges the unsubscribe from service availability event notifications ... when commanded by a MEC Application ... - ... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.4.3.5 - + ... Reference "ETSI GS MEC 011 3.2.1, clause 5.2.6", + ... "ETSI GS MEC 011 3.2.1, clause 7.2.4.3.5" [Tags] PIC_MEC_PLAT PIC_SERVICES Remove subscription ${APP_INSTANCE_ID} ${SUBSCRIPTION_ID} Check HTTP Response Status Code Is 204 @@ -114,8 +108,8 @@ TP_MEC_MEC011_SRV_APPSUB_004_NF ... Check that the IUT responds with an error when ... a request for an unknown URI is sent by a MEC Application ... - ... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.4.3.5 - + ... Reference "ETSI GS MEC 011 3.2.1, clause 5.2.6", + ... "ETSI GS MEC 011 3.2.1, clause 7.2.4.3.5" [Tags] PIC_MEC_PLAT PIC_SERVICES Remove subscription ${NON_EXISTENT_APP_INSTANCE_ID} ${SUBSCRIPTION_ID} Check HTTP Response Status Code Is 404 @@ -136,7 +130,7 @@ Create new subscription Set Headers {"Accept":"application/json"} Set Headers {"Content-Type":"application/json"} Set Headers {"Authorization":"${TOKEN}"} - Set Headers {"Content-Type":"*/*"} + #Set Headers {"Content-Type":"*/*"} ${file}= Catenate SEPARATOR= jsons/ ${content} .json ${body}= Get File ${file} Post ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/subscriptions ${body} diff --git a/MEC011/SRV/APPSUB/jsons/AppTerminationNotificationSubscription.json b/MEC011/SRV/APPSUB/jsons/AppTerminationNotificationSubscription.json index 760b35c7fbfa597f5f792b9e367230579c475fe8..eb61a28a8b765a0762950ce3e70866b869bc1593 100644 --- a/MEC011/SRV/APPSUB/jsons/AppTerminationNotificationSubscription.json +++ b/MEC011/SRV/APPSUB/jsons/AppTerminationNotificationSubscription.json @@ -6,5 +6,5 @@ "href": "https://somewhere.com/mecAppSuptApi/example" } }, - "appInstanceId": "est eiusmod nulla exercitation" + "appInstanceId": "appIntanceId" } \ No newline at end of file diff --git a/MEC011/SRV/APPSUB/jsons/AppTerminationNotificationSubscriptionBR.json b/MEC011/SRV/APPSUB/jsons/AppTerminationNotificationSubscriptionBR.json new file mode 100644 index 0000000000000000000000000000000000000000..0de784b8d516390eb7eb5cb6a031722f5d612481 --- /dev/null +++ b/MEC011/SRV/APPSUB/jsons/AppTerminationNotificationSubscriptionBR.json @@ -0,0 +1,10 @@ +{ + "subscriptionType": "INVALID_SUBSCRIPTION_TYPE", + "callbackReference": "https://somewhere.com/mecAppSuptApi/example", + "_links": { + "self": { + "href": "https://somewhere.com/mecAppSuptApi/example" + } + }, + "appInstanceId": "appInstanceId" +} \ No newline at end of file