......@@ -3,7 +3,7 @@
Documentation
... A test suite for validating Service Subscriptions (SRVSUB) operations.
Resource ../../GenericKeywords.robot
Resource ../../../GenericKeywords.robot
Resource environment/variables.txt
Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false
Library OperatingSystem
......@@ -13,12 +13,12 @@ Default Tags TC_MEC_SRV_SRVSUB
*** Test Cases ***
TC_MEC_SRV_SRVSUB_001_OK
TP_MEC_MEC011_SRV_SRVSUB_001_OK
[Documentation]
... 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.1.1, clause 8.2.8.3.1
... Reference ETSI GS MEC 011 V2.2.1, clause 8.2.8.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#/definitions/MecServiceMgmtApiSubscriptionLinkList
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -27,24 +27,24 @@ TC_MEC_SRV_SRVSUB_001_OK
Check HTTP Response Body Json Schema Is SubscriptionLinkList
TC_MEC_SRV_SRVSUB_001_NF
TP_MEC_MEC011_SRV_SRVSUB_001_NF
[Documentation]
... 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.1.1, clause 8.2.8.3.1
... Reference ETSI GS MEC 011 V2.2.1, clause 8.2.8.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get list of subscriptions ${NON_EXISTENT_INSTANCE_ID}
Check HTTP Response Status Code Is 404
TC_MEC_SRV_SRVSUB_002_OK
TP_MEC_MEC011_SRV_SRVSUB_002_OK
[Documentation]
... Check that the IUT acknowledges the subscription by a MEC Application
... to notifications on service availability events
...
... Reference ETSI GS MEC 011 V2.1.1, clause 8.2.8.3.4
... Reference ETSI GS MEC 011 V2.2.1, clause 8.2.8.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#/definitions/SerAvailabilityNotificationSubscription
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -56,12 +56,12 @@ TC_MEC_SRV_SRVSUB_002_OK
Check Response Contains ${response['body']} callbackReference ${APP_SRVSUB_NOTIF_CALLBACK_URI}
TC_MEC_SRV_SRVSUB_002_BR
TP_MEC_MEC011_SRV_SRVSUB_002_BR
[Documentation]
... 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.1.1, clause 8.2.8.3.4
... Reference ETSI GS MEC 011 V2.2.1, clause 8.2.8.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#/definitions/SerAvailabilityNotificationSubscription
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -69,12 +69,12 @@ TC_MEC_SRV_SRVSUB_002_BR
Check HTTP Response Status Code Is 400
TC_MEC_SRV_SRVSUB_003_OK
TP_MEC_MEC011_SRV_SRVSUB_003_OK
[Documentation]
... Check that the IUT responds with the information on a specific subscription
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.1.1, clause 8.2.9.3.1
... Reference ETSI GS MEC 011 V2.2.1, clause 8.2.9.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#/definitions/SerAvailabilityNotificationSubscription
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -84,36 +84,36 @@ TC_MEC_SRV_SRVSUB_003_OK
Check Response Contains ${response['body']} subscriptionType SerAvailabilityNotificationSubscription
TC_MEC_SRV_SRVSUB_003_NF
TP_MEC_MEC011_SRV_SRVSUB_003_NF
[Documentation]
... 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.1.1, clause 8.2.9.3.1
... Reference ETSI GS MEC 011 V2.2.1, clause 8.2.9.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
TC_MEC_SRV_SRVSUB_004_OK
TP_MEC_MEC011_SRV_SRVSUB_004_OK
[Documentation]
... Check that the IUT acknowledges the unsubscribe from service availability event notifications
... when commanded by a MEC Application
...
... Reference ETSI GS MEC 011 V2.1.1, clause 8.2.9.3.5
... Reference ETSI GS MEC 011 V2.2.1, clause 8.2.9.3.5
[Tags] PIC_MEC_PLAT PIC_SERVICES
Remove subscription ${APP_INSTANCE_ID} ${SUBSCRIPTION_ID}
Check HTTP Response Status Code Is 204
TC_MEC_SRV_SRVSUB_004_NF
TP_MEC_MEC011_SRV_SRVSUB_004_NF
[Documentation]
... 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.1.1, clause 8.2.9.3.5
... Reference ETSI GS MEC 011 V2.2.1, clause 8.2.9.3.5
[Tags] PIC_MEC_PLAT PIC_SERVICES
Remove subscription ${NON_EXISTENT_INSTANCE_ID} ${SUBSCRIPTION_ID}
......@@ -125,6 +125,7 @@ Get list of subscriptions
[Arguments] ${appInstanceId}
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Type":"*/*"}
Get ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/subscriptions
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -144,6 +145,7 @@ Get individual subscription
[Arguments] ${appInstanceId} ${subscriptionId}
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Type":"*/*"}
Get ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/subscriptions/${subscriptionId}
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -152,6 +154,7 @@ Remove subscription
[Arguments] ${appInstanceId} ${subscriptionId}
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Type":"*/*"}
Delete ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/subscriptions/${subscriptionId}
${output}= Output response
Set Suite Variable ${response} ${output}
\ No newline at end of file
*** Variables ***
# Generic variables
${SCHEMA} http
${HOST} 10.192.2.172
${HOST} 127.0.0.1
${PORT} 8081
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
......
......@@ -42,6 +42,13 @@
"filteringCriteria": {
"description": "Filtering criteria to match services for which events are requested to be reported. If absent, matches all services. All child attributes are combined with the logical \"AND\" operation.",
"type": "object",
"not": {
"required": [
"serInstanceIds",
"serNames",
"serCategories"
]
},
"properties": {
"serInstanceIds": {
"description": "Identifiers of service instances about which to report events.",
......@@ -111,7 +118,8 @@
"type": "string",
"enum": [
"ACTIVE",
"INACTIVE"
"INACTIVE",
"SUSPENDED"
],
"example": "ACTIVE"
}
......
......@@ -3,7 +3,7 @@
Documentation
... A test suite for validating Timing capabilities (TIME) operations.
Resource ../../GenericKeywords.robot
Resource ../../../GenericKeywords.robot
Resource environment/variables.txt
Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false
Library OperatingSystem
......@@ -14,12 +14,12 @@ Default Tags TC_MEC_SRV_TIME
*** Test Cases ***
TC_MEC_SRV_TIME_001_OK
TP_MEC_MEC011_SRV_TIME_001_OK
[Documentation]
... Check that the IUT responds with timing capabilities
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.5.3.1
... Reference ETSI GS MEC 011 V2.2.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
......@@ -28,12 +28,12 @@ TC_MEC_SRV_TIME_001_OK
Check HTTP Response Body Json Schema Is TimingCaps
TC_MEC_SRV_TIME_002_OK
TP_MEC_MEC011_SRV_TIME_002_OK
[Documentation]
... Check that the IUT responds with current time
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.6.3.1
... Reference ETSI GS MEC 011 V2.2.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
......@@ -47,12 +47,14 @@ Get time capabilities
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Get ${apiRoot}/${apiName}/${apiVersion}/timing/timing_caps
Set Headers {"Content-Type":"*/*"}
${output}= Output response
Set Suite Variable ${response} ${output}
Get current time
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Type":"*/*"}
Get ${apiRoot}/${apiName}/${apiVersion}/timing/current_time
${output}= Output response
Set Suite Variable ${response} ${output}
\ No newline at end of file
*** Variables ***
# Generic variables
${SCHEMA} http
${HOST} 10.192.2.172
${HOST} 127.0.0.1
${PORT} 8081
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
......
......@@ -3,7 +3,7 @@
Documentation
... A test suite for validating Traffic rules (TRAF) operations.
Resource ../../GenericKeywords.robot
Resource ../../../GenericKeywords.robot
Resource environment/variables.txt
Library REST ${SCHEMA}://${HOST}:${PORT} ssl_verify=false
Library OperatingSystem
......@@ -13,12 +13,12 @@ Default Tags TC_MEC_SRV_TRAF
*** Test Cases ***
TC_MEC_SRV_TRAF_001_OK
TP_MEC_MEC011_SRV_TRAF_001_OK
[Documentation]
... Check that the IUT responds with a list of available traffic rules
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.7.3.1
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.7.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/TrafficRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -27,24 +27,24 @@ TC_MEC_SRV_TRAF_001_OK
Check HTTP Response Body Json Schema Is TrafficRuleList
TC_MEC_SRV_TRAF_001_NF
TP_MEC_MEC011_SRV_TRAF_001_NF
[Documentation]
... 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.8.3.1
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.8.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
Get list of traffic rules ${NON_EXISTENT_APP_INSTANCE_ID}
Check HTTP Response Status Code Is 404
TC_MEC_SRV_TRAF_002_OK
TP_MEC_MEC011_SRV_TRAF_002_OK
[Documentation]
... Check that the IUT responds with the information on a specific traffic rule
... when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.8.3.1
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.8.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/TrafficRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -54,12 +54,12 @@ TC_MEC_SRV_TRAF_002_OK
Check Response Contains ${response['body']} trafficRuleId ${TRAFFIC_RULE_ID}
TC_MEC_SRV_TRAF_003_OK
TP_MEC_MEC011_SRV_TRAF_003_OK
[Documentation]
... Check that the IUT updates a specific traffic rule
... when commanded by a MEC Application
...
... Reference ETSI GS MEC 011 V2.1.1, clause 7.2.8.3.2
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.8.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/TrafficRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -70,12 +70,12 @@ TC_MEC_SRV_TRAF_003_OK
Check Response Contains ${response['body']} action DROP
TC_MEC_SRV_TRAF_003_BR
TP_MEC_MEC011_SRV_TRAF_003_BR
[Documentation]
... 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.1.1, clause 7.2.8.3.2
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.8.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/TrafficRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
......@@ -83,36 +83,37 @@ TC_MEC_SRV_TRAF_003_BR
Check HTTP Response Status Code Is 400
TC_MEC_SRV_TRAF_003_NF
TP_MEC_MEC011_SRV_TRAF_003_NF
[Documentation]
... 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.1.1, clause 7.2.8.3.2
... Reference ETSI GS MEC 011 V2.2.1, clause 7.2.8.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/TrafficRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update a traffic rule ${APP_INSTANCE_ID} ${NON_EXISTENT_TRAFFIC_RULE_ID} TrafficRuleUpdate
Check HTTP Response Status Code Is 404
TC_MEC_SRV_TRAF_003_PF
[Documentation]
... 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.1.1, clause 7.2.8.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/TrafficRule
[Tags] PIC_MEC_PLAT PIC_SERVICES
Update a traffic rule with invalid etag ${APP_INSTANCE_ID} ${TRAFFIC_RULE_ID} TrafficRuleUpdate
Check HTTP Response Status Code Is 412
## Commented as ETag is not mandatory
#TP_MEC_MEC011_SRV_TRAF_003_PF
# [Documentation]
# ... 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.2.1, clause 7.2.8.3.2
# ... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#/definitions/TrafficRule
#
# [Tags] PIC_MEC_PLAT PIC_SERVICES
# Update a traffic rule with invalid etag ${APP_INSTANCE_ID} ${TRAFFIC_RULE_ID} TrafficRuleUpdate
# Check HTTP Response Status Code Is 412
*** Keywords ***
Get list of traffic rules
[Arguments] ${appInstanceId}
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Type":"*/*"}
Get ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/traffic_rules
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -121,6 +122,7 @@ Get individual traffic rule
[Arguments] ${appInstanceId} ${trafficRuleId}
Set Headers {"Accept":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"Content-Type":"*/*"}
Get ${apiRoot}/${apiName}/${apiVersion}/applications/${appInstanceId}/traffic_rules/${trafficRuleId}
${output}= Output response
Set Suite Variable ${response} ${output}
......@@ -130,6 +132,7 @@ Update a traffic rule
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}/traffic_rules/${trafficRuleId} ${body}
......
*** Variables ***
# Generic variables
${SCHEMA} http
${HOST} 10.192.2.172
${HOST} 127.0.0.1
${PORT} 8081
${response} {}
${TOKEN} Basic YWxhZGRpbjpvcGVuc2VzYW1l
......