Commit a431da9b authored by Elian Kraja's avatar Elian Kraja Committed by Michele Carignani

Updating from v2.0.9 to v2.1.1. Cause 7: MEC Application support API

parent d3fc569c
......@@ -18,8 +18,8 @@ TC_MEC_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.0.9, clause 7.2.3.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/MecAppSuptApiSubscriptionLinkList
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.3.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/MecAppSuptApiSubscriptionLinkList
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get Subscriptions list ${APP_INSTANCE_ID}
......@@ -32,7 +32,7 @@ TC_MEC_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.0.9, clause 7.2.3.3.1
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.3.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get Subscriptions list ${NON_EXISTENT_APP_INSTANCE_ID}
......@@ -44,16 +44,16 @@ TC_MEC_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.0.9, clause 7.2.3.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/AppTerminationNotificationSubscription
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.3.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppTerminationNotificationSubscription
[Tags] PIC_MEC_PLAT PIC_SERVICES
Create new subscription ${APP_INSTANCE_ID} AppTerminationNotificationSubscription
Check HTTP Response Status Code Is 201
Check HTTP Response Body Json Schema Is AppTerminationNotificationSubscription
Check HTTP Response Header Contains Location
Check Result Contains ${response['body']['AppTerminationNotificationSubscription']} subscriptionType "AppTerminationNotificationSubscription"
Check Result Contains ${response['body']['AppTerminationNotificationSubscription']} callbackReference ${APP_TERM_NOTIF_CALLBACK_URI}
Check Result Contains ${response['body']} subscriptionType "AppTerminationNotificationSubscription"
Check Result Contains ${response['body']} callbackReference ${APP_TERM_NOTIF_CALLBACK_URI}
TC_MEC_SRV_APPSUB_003_OK
......@@ -61,14 +61,14 @@ TC_MEC_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.0.9, clause 7.2.4.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/AppTerminationNotificationSubscription
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.4.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppTerminationNotificationSubscription
[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 Result Contains ${response['body']['AppTerminationNotificationSubscription']} subscriptionType "AppTerminationNotificationSubscription"
Check Result Contains ${response['body']} subscriptionType "AppTerminationNotificationSubscription"
TC_MEC_SRV_APPSUB_003_NF
......@@ -76,7 +76,7 @@ TC_MEC_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.0.9, clause 7.2.4.3.1
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.4.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get individual subscription ${APP_INSTANCE_ID} ${NON_EXISTENT_SUBSCRIPTION_ID}
......@@ -88,7 +88,7 @@ TC_MEC_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.0.9, clause 7.2.4.3.5
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.4.3.5
[Tags] PIC_MEC_PLAT PIC_SERVICES
Remove subscription ${APP_INSTANCE_ID} ${SUBSCRIPTION_ID}
......
{
"subscriptionType": "AppTerminationNotificationSubscription",
"callbackReference": "https://somewhere.com/mecAppSuptApi/example",
"_links": {
"self": {
"href": "https://somewhere.com/mecAppSuptApi/example"
}
},
"appInstanceId": "est eiusmod nulla exercitation"
}
\ No newline at end of file
{
"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
{
"description": "This type represents a list of links related to currently existing subscriptions for a MEC application instance. This information is returned when sending a request to receive current subscriptions.",
"type": "object",
"required": [
"_links"
],
"properties": {
"_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"
}
}
},
"subscriptions": {
"description": "The MEC application instance's subscriptions",
"type": "array",
"items": {
"description": "A link to a subscription.",
"type": "object",
"required": [
"href",
"rel"
],
"properties": {
"href": {
"description": "URI referring to a resource",
"type": "string",
"format": "uri",
"example": "/mecAppSuptApi/example"
},
"rel": {
"description": "The values shall be set to AppTerminationNotificationSubscription.",
"type": "string"
}
}
}
}
}
}
}
}
\ No newline at end of file
*** Settings ***
Documentation
... A test suite for validating DNS rules (DNS) operations.
Resource ../../GenericKeywords.robot
Resource environment/variables.txt
Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false
Library OperatingSystem
Default Tags TC_MEC_SRV_CONF
*** Variables ***
*** Test Cases ***
TC_MEC_SRV_CONF_001_OK
[Documentation]
... Check that the IUT responds with an acknowledge
... when requested graceful termination/stop of a MEC Application instance
...
... Reference ETSI GS MEC 011 V2.1.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
Request termination of MEC Application ${APP_INSTANCE_ID} AppTerminationConfirmation
Check HTTP Response Status Code Is 204
TC_MEC_SRV_CONF_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
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppTerminationConfirmation
[Tags] PIC_MEC_PLAT PIC_SERVICES
Request termination of MEC Application ${NON_ESISTENT_APP_INSTANCE_ID} AppTerminationConfirmation
Check HTTP Response Status Code Is 404
TC_MEC_SRV_CONF_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
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppReadyConfirmation
[Tags] PIC_MEC_PLAT PIC_SERVICES
Request readiness status of MEC Application ${APP_INSTANCE_ID} AppReadyConfirmation
Check HTTP Response Status Code Is 204
TC_MEC_SRV_CONF_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
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/AppReadyConfirmation
[Tags] PIC_MEC_PLAT PIC_SERVICES
Request readiness status of MEC Application ${NON_ESISTENT_APP_INSTANCE_ID} AppReadyConfirmation
Check HTTP Response Status Code Is 404
*** Keywords ***
Request termination of MEC Application
[Arguments] ${appInstanceId} ${content}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
PUT ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/confirm_termination ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
Request readiness status of MEC Application
[Arguments] ${appInstanceId} ${content}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
PUT ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/confirm_ready ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
*** Variables ***
# Generic variables
${SCHEMA} http
${HOST} 10.192.2.172
${PORT} 8081
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
${apiRoot}
${apiName} mec_app_support
${apiVersion} v1
# Specific variables
${APP_INSTANCE_ID} 5abe4782-2c70-4e47-9a4e-0ee3a1a0fd1f
${NON_ESISTENT_APP_INSTANCE_ID} NON_ESISTENT_APP_INSTANCE_ID
# ${DNS_RULE_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
# ${NON_ESISTENT_DNS_RULE_ID} NON_ESISTENT_DNS_RULE_ID
# ${INVALID_ETAG} INVALID_ETAG
# ${SOME_IP_ADDRESS} 146.241.7.3
# ${SUBSCRIPTION_TYPE} MobilityProcedureSubscription
# ${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
# ${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID
# ${NON_EXISTENT_APP_MOBILITY_SERVICE_ID} NON_EXISTENT_APP_MOBILITY_SERVICE_ID
# # Notifications variables
# ${MOCK_SERVER_JAR} ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar
# ${callback_port} 9091
# ${callback_uri} http://172.22.1.7:${callback_port}
# ${callback_endpoint} /amsi/subscriptions
# ${callback_endpoint_error} /subs_404
# ${total_polling_time} 2 min
# ${polling_interval} 10 sec
\ No newline at end of file
{
"indication": "READY"
}
\ No newline at end of file
{
"operationAction": "TERMINATING"
}
\ No newline at end of file
{
"description": "This type represents the information that the MEC application instance indicates to the MEC platform that it is up and running.",
"type": "object",
"required": [
"indication"
],
"properties": {
"indication": {
"description": "Indication about the MEC application instance.",
"type": "string",
"enum": [
"READY"
],
"example": "READY"
}
}
}
\ No newline at end of file
{
"description": "This type represents the information that the MEC application instance provides to the MEC platform when informing it that the application has completed its application level related terminate/stop actions, e.g. retention of application state in the case of stop.",
"type": "object",
"required": [
"operationAction"
],
"properties": {
"operationAction": {
"description": "Operation that is being performed on the MEC application instance.",
"type": "string",
"enum": [
"STOPPING",
"TERMINATING"
],
"example": "TERMINATING"
}
}
}
\ No newline at end of file
......@@ -21,8 +21,8 @@ TC_MEC_SRV_DNS_001_OK
... Check that the IUT responds with a list of active DNS rules
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.9.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/DnsRule
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.9.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get list of active DNS rules ${APP_INSTANCE_ID}
......@@ -35,14 +35,14 @@ TC_MEC_SRV_DNS_002_OK
... Check that the IUT responds with the information on a specific DNS rule
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.10.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/DnsRule
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.10.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get individual DNS rule ${APP_INSTANCE_ID} ${DNS_RULE_ID}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is DnsRule
Check Result Contains ${response['body']['DnsRule']} dnsRuleId ${DNS_RULE_ID}
Check Result Contains ${response['body']} dnsRuleId ${DNS_RULE_ID}
TC_MEC_SRV_DNS_002_NF
......@@ -50,7 +50,7 @@ TC_MEC_SRV_DNS_002_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.0.9, clause 7.2.10.3.1
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.10.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get individual DNS rule ${APP_INSTANCE_ID} ${NON_ESISTENT_DNS_RULE_ID}
......@@ -62,15 +62,14 @@ TC_MEC_SRV_DNS_003_OK
... Check that the IUT updates a specific DNS rule
... when commanded by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/DnsRule
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update a DNS Rule ${APP_INSTANCE_ID} ${DNS_RULE_ID} DnsRuleUpdate
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is DnsRule
# Check Result Contains ${response['body']['DnsRule']} dnsRuleId ${DNS_RULE_NAME}
# Check Result Contains ${response['body']['DnsRule']} ipAddress ${SOME_IP_ADDRESS}
Check Result Contains ${response['body']} ipAddress ${SOME_IP_ADDRESS}
TC_MEC_SRV_DNS_003_BR
......@@ -78,8 +77,8 @@ TC_MEC_SRV_DNS_003_BR
... Check that the IUT responds with an error when
... a request with incorrect parameters is sent by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/DnsRule
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update a DNS Rule ${APP_INSTANCE_ID} ${DNS_RULE_ID} DnsRuleUpdateError
......@@ -91,8 +90,8 @@ TC_MEC_SRV_DNS_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.0.9, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/DnsRule
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update a DNS Rule ${APP_INSTANCE_ID} ${NON_ESISTENT_DNS_RULE_ID} DnsRuleUpdate
......@@ -104,8 +103,8 @@ TC_MEC_SRV_DNS_003_PF
... Check that the IUT responds with an error when
... a request sent by a MEC Application doesn't comply with a required condition
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecAppSupportApi.yaml#/definitions/DnsRule
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.10.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/DnsRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update a DNS Rule with invalid etag ${APP_INSTANCE_ID} ${DNS_RULE_ID} DnsRuleUpdate
......@@ -138,10 +137,11 @@ Update a DNS Rule
Set Headers {"Authorization":"${TOKEN}"}
${file}= Catenate SEPARATOR= jsons/ ${content} .json
${body}= Get File ${file}
Post ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/dns_rules/${dnsRuleId} ${body}
PUT ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/dns_rules/${dnsRuleId} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
Update a DNS Rule with invalid etag
[Arguments] ${appInstanceId} ${dnsRuleId} ${content}
Set Headers {"If-Match": ${INVALID_ETAG}}
\ No newline at end of file
Set Headers {"If-Match": ${INVALID_ETAG}}
Update a DNS Rule ${appInstanceId} ${dnsRuleId} ${content}
\ No newline at end of file
......@@ -15,6 +15,8 @@ ${DNS_RULE_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
${NON_ESISTENT_DNS_RULE_ID} NON_ESISTENT_DNS_RULE_ID
${INVALID_ETAG} INVALID_ETAG
${SOME_IP_ADDRESS} 146.241.7.3
# ${SUBSCRIPTION_TYPE} MobilityProcedureSubscription
# ${SUBSCRIPTION_ID} e0deee2b-6e50-4f33-ab09-8bf0585025d3
# ${NON_EXISTENT_SUBSCRIPTION_ID} NON_EXISTENT_SUBSCRIPTION_ID
......
{
"dnsRuleId": "DnsRule1",
"domainName": "www.example.com",
"ipAddressType": "IP_V4",
"ipAddress": "146.241.7.3",
"ttl": 300,
"state": "ACTIVE"
}
\ No newline at end of file
{
"dnsRuleId": "DnsRule1",
"domainName": "www.example.com",
"ipAddressType": "IP_V4",
"ipAddress": "146.241.7.3",
"ttl": 300,
"state": "UNKNOWN_VALUE"
}
\ No newline at end of file
{
"description": "This type represents the general information of a DNS rule.",
"type": "object",
"required": [
"dnsRuleId",
"domainName",
"ipAddressType",
"ipAddress",
"state"
],
"properties": {
"dnsRuleId": {
"description": "Identifies the DNS Rule",
"type": "string",
"example": "dnsRule1"
},
"domainName": {
"description": "FQDN resolved by the DNS rule",
"type": "string",
"example": "www.example.com"
},
"ipAddressType": {
"description": "IP address type",
"type": "string",
"enum": [
"IP_V6",
"IP_V4"
],
"example": "IP_V6"
},
"ipAddress": {
"description": "IP address associated with the FQDN resolved by the DNS rule",
"type": "string",
"example": "192.0.2.0"
},
"ttl": {
"description": "Time to live value",
"type": "integer",
"format": "uint32",
"example": "?"
},
"state": {
"description": "DNS rule state. This attribute may be updated using HTTP PUT method",
"type": "string",
"enum": [
"ACTIVE",
"INACTIVE"
],
"example": "ACTIVE"
}
}
}
\ No newline at end of file
{
"type": "array",
"objects": {
"description": "This type represents the general information of a DNS rule.",
"type": "object",
"required": [
"dnsRuleId",
"domainName",
"ipAddressType",
"ipAddress",
"state"
],
"properties": {
"dnsRuleId": {
"description": "Identifies the DNS Rule",
"type": "string",
"example": "dnsRule1"
},
"domainName": {
"description": "FQDN resolved by the DNS rule",
"type": "string",
"example": "www.example.com"
},
"ipAddressType": {
"description": "IP address type",
"type": "string",
"enum": [
"IP_V6",
"IP_V4"
],
"example": "IP_V6"
},
"ipAddress": {
"description": "IP address associated with the FQDN resolved by the DNS rule",
"type": "string",
"example": "192.0.2.0"
},
"ttl": {
"description": "Time to live value",
"type": "integer",
"format": "uint32",
"example": "?"
},
"state": {
"description": "DNS rule state. This attribute may be updated using HTTP PUT method",
"type": "string",
"enum": [
"ACTIVE",
"INACTIVE"
],
"example": "ACTIVE"
}
}
}
}
\ No newline at end of file
......@@ -19,8 +19,8 @@ TC_MEC_SRV_TIME_001_OK
... Check that the IUT responds with timing capabilities
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.5.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.8/Mp1.yaml#/definitions/TimingCaps
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.5.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/TimingCaps
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get time capabilities
......@@ -33,8 +33,8 @@ TC_MEC_SRV_TIME_002_OK
... Check that the IUT responds with current time
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 7.2.6.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.8/Mp1.yaml#/definitions/CurrentTime
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.6.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/CurrentTime
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get current time
......
{
"description": "This type represents the information provided by the MEC platform in response to the Get Platform Time Request message.",
"type": "object",
"required": [
"nanoSeconds",
"seconds",
"timeSourceStatus"
],
"properties": {
"seconds": {
"type": "integer",
"format": "uint32",
"description": "The seconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC",
"example": 1577836800
},
"nanoSeconds": {
"type": "integer",
"format": "uint32",
"description": "The nanoseconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC",
"example": 0
},
"timeSourceStatus": {
"type": "string",
"enum": [
"TRACEABLE",
"NONTRACEABLE"
],
"description": "Platform Time Source status. 1 = TRACEABLE - time source is locked to the UTC time source. 2 = NONTRACEABLE - time source is not locked to the UTC time source",
"example": "TRACEABLE"
}
}
}
\ No newline at end of file
{
"description": "This type represents the information provided by the MEC platform in response to the Timing capabilities Query message.",
"type": "object",
"properties": {
"timeStamp": {
"description": "time",
"type": "object",
"required": [
"nanoSeconds",
"seconds"
],
"properties": {
"seconds": {
"type": "integer",
"format": "uint32",
"description": "The seconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC",
"example": 1577836800
},
"nanoSeconds": {
"type": "integer",
"format": "uint32",
"description": "The nanoseconds part of the time. Time is defined as Unix-time since January 1, 1970, 00:00:00 UTC",
"example": 0
}
}
},
"ntpServers": {
"description": "Available NTP servers",
"type": "array",
"items": {
"description": "NTP server detail.",
"type": "object",
"required": [
"ntpServerAddrType",
"ntpServerAddr",
"minPollingInterval",
"maxPollingInterval",
"localPriority",
"authenticationOption",
"authenticationKeyNum"
],
"properties": {
"ntpServerAddrType": {
"description": "Address type of NTP server",
"type": "string",
"enum": [
"IP_ADDRESS",
"DNS_NAME"
],
"example": "IP_ADDRESS"
},
"ntpServerAddr": {
"description": "NTP server address",
"type": "string",
"example": "192.0.2.0"
},
"minPollingInterval": {
"description": "Minimum poll interval for NTP messages, in seconds as a power of two. Range 3...17",