diff --git a/SRV/APPSUB/PlatAppSubscriptions.robot b/SRV/APPSUB/PlatAppSubscriptions.robot index 85ce9499e11382c0dd91699dc911987c712ad9f1..4472cd8c111f6e9af472b5901f9adeb59cf4df14 100644 --- a/SRV/APPSUB/PlatAppSubscriptions.robot +++ b/SRV/APPSUB/PlatAppSubscriptions.robot @@ -24,7 +24,7 @@ TC_MEC_SRV_APPSUB_001_OK [Tags] PIC_MEC_PLAT PIC_SERVICES Get Subscriptions list ${APP_INSTANCE_ID} Check HTTP Response Status Code Is 200 - Check HTTP Response Body Json Schema Is SubscriptionsLinkList + Check HTTP Response Body Json Schema Is AppTerminationNotificationSubscription TC_MEC_SRV_APPSUB_001_NF diff --git a/SRV/APPSUB/schemas/AppTerminationNotificationSubscriptions.schema.json b/SRV/APPSUB/schemas/AppTerminationNotificationSubscriptions.schema.json new file mode 100644 index 0000000000000000000000000000000000000000..8700a266e7d65218f07a6b4159df49bfeacdb952 --- /dev/null +++ b/SRV/APPSUB/schemas/AppTerminationNotificationSubscriptions.schema.json @@ -0,0 +1,52 @@ +{ + "tyre": "array", + "items": { + "description": "This type represents the information that the MEC platform notifies the subscribed application instance about the corresponding application instance termination/stop.", + "type": "object", + "required": [ + "subscriptionType", + "callbackReference", + "_links", + "appInstanceId" + ], + "properties": { + "subscriptionType": { + "description": "Shall be set to AppTerminationNotificationSubscription.", + "type": "string", + "example": "AppTerminationNotificationSubscription" + }, + "callbackReference": { + "description": "URI selected by the MEC application instance to receive notifications on the subscribed MEC application instance management information. This shall be included in both the request and the response.", + "type": "string", + "format": "uri" + }, + "_links": { + "description": "Self-referring URI.", + "type": "object", + "required": [ + "self" + ], + "properties": { + "self": { + "description": "This type represents a type of link and may be referenced from data structures", + "type": "object", + "properties": { + "href": { + "description": "URI referring to a resource", + "type": "string", + "format": "uri", + "example": "/mecAppSuptApi/example" + } + } + } + }, + "readOnly": true + }, + "appInstanceId": { + "description": "It is used as the filtering criterion for the subscribed events.", + "type": "string", + "example": "ID1" + } + } + } +} \ No newline at end of file diff --git a/SRV/APPSUB/schemas/SubscriptionsLinkList.schema.json b/SRV/APPSUB/schemas/SubscriptionsLinkList.schema.json index d2eb1d9ba8d48fb2fb323a793a189c557505b9ad..87951477ee8f7169916b79f6a4ad5621316ac1b9 100644 --- a/SRV/APPSUB/schemas/SubscriptionsLinkList.schema.json +++ b/SRV/APPSUB/schemas/SubscriptionsLinkList.schema.json @@ -32,7 +32,7 @@ "type": "object", "required": [ "href", - "rel" + "subscriptionType" ], "properties": { "href": { @@ -41,7 +41,7 @@ "format": "uri", "example": "/mecAppSuptApi/example" }, - "rel": { + "subscriptionType": { "description": "The values shall be set to AppTerminationNotificationSubscription.", "type": "string" } diff --git a/SRV/DNS/PlatDnsRules.robot b/SRV/DNS/PlatDnsRules.robot index 087e9454ae92360cbcca942cc48391d1807a1e8c..d47a6795ffb3070ae67cc259a018fe0030b94cc7 100644 --- a/SRV/DNS/PlatDnsRules.robot +++ b/SRV/DNS/PlatDnsRules.robot @@ -143,5 +143,5 @@ Update a DNS Rule Update a DNS Rule with invalid etag [Arguments] ${appInstanceId} ${dnsRuleId} ${content} - Set Headers {"If-Match": ${INVALID_ETAG}} + Set Headers {"If-Match": "${INVALID_ETAG}"} Update a DNS Rule ${appInstanceId} ${dnsRuleId} ${content} \ No newline at end of file