Skip to content
Snippets Groups Projects
Commit 2157cff7 authored by piscione's avatar piscione
Browse files

Updated APPSUB TCs for MEC011 v3.2.1

parent e9bdd119
No related branches found
No related tags found
1 merge request!3Merge of TT027 branch into master
Pipeline #15095 passed
......@@ -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}
......
......@@ -6,5 +6,5 @@
"href": "https://somewhere.com/mecAppSuptApi/example"
}
},
"appInstanceId": "est eiusmod nulla exercitation"
"appInstanceId": "appIntanceId"
}
\ No newline at end of file
{
"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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment