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