Commit 133462d7 authored by Elian Kraja's avatar Elian Kraja
Browse files
parents 9c850edd 97709b8a
Pipeline #1592 failed with stage
in 0 seconds
*** Settings *** *** Settings ***
Library JSONSchemaLibrary schemas/ Library JSONSchemaLibrary schemas/
Library BuiltIn Library BuiltIn
Library REST ${AMS_SCHEMA}://${AMS_HOST}:${AMS_PORT} ssl_verify=false
Library OperatingSystem
*** Variables *** *** Variables ***
${response} ${response}
...@@ -51,4 +53,114 @@ Check HTTP Response Contain Header with value ...@@ -51,4 +53,114 @@ Check HTTP Response Contain Header with value
[Arguments] ${HEADER_TOCHECK} ${VALUE} [Arguments] ${HEADER_TOCHECK} ${VALUE}
Check HTTP Response Header Contains ${HEADER_TOCHECK} Check HTTP Response Header Contains ${HEADER_TOCHECK}
Should Be Equal As Strings ${value} ${response['headers']['Content-Type']} Should Be Equal As Strings ${value} ${response['headers']['Content-Type']}
\ No newline at end of file vGET
[Arguments] ${uri}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
GET ${uri}
${output}= Output response
Set Suite Variable ${response} ${output}
vPOST
[Arguments] ${uri} ${content}
${file}= Catenate SEPARATOR= json/ ${content} .json
${body}= Get File ${file}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
POST ${uri} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
vPUT
[Arguments] ${uri} ${content}
${file}= Catenate SEPARATOR= json/ ${content} .json
${body}= Get File ${file}
# Retrieve the e-tag value to ensure a proper update.
vGET ${uri}
Set Headers {"If-Match":"${response['headers']['If-Match']}"}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
PUT ${uri} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
vPUT without e-tag
[Arguments] ${uri} ${content}
${file}= Catenate SEPARATOR= json/ ${content} .json
${body}= Get File ${file}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
PUT ${uri} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
vPUT invalid e-tag
[Arguments] ${uri} ${content}
${file}= Catenate SEPARATOR= json/ ${content} .json
${body}= Get File ${file}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"If-Match":"__some_invalid_value__"}
PUT ${uri} ${body}
${output}= Output response
Set Suite Variable ${response} ${output}
vDELETE
[Arguments] ${uri}
# Retrieve the e-tag value to ensure a proper delete.
vGET ${uri}
Set Headers {"If-Match":"${response['headers']['If-Match']}"}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
DELETE ${uri}
${output}= Output response
Set Suite Variable ${response} ${output}
vDELETE without e-tag
[Arguments] ${uri}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
DELETE ${uri}
${output}= Output response
Set Suite Variable ${response} ${output}
vDELETE invalid e-tag
[Arguments] ${uri}
Set Headers {"Accept":"application/json"}
Set Headers {"Content-Type":"application/json"}
Set Headers {"Authorization":"${TOKEN}"}
Set Headers {"If-Match":"__some_invalid_value__"}
DELETE ${uri}
${output}= Output response
Set Suite Variable ${response} ${output}
*** Settings *** *** Settings ***
Documentation Documentation
... A test suite for validating Application Service Availability Query (APPSAQ) operations. ... A test suite for validating Application Service Availability Query (APPSAQ) operations.
Resource ../../resources/GenericKeywords.robot Resource ../../GenericKeywords.robot
Default Tags TP_MEC_SRV_APPSAQ Default Tags TP_MEC_SRV_APPSAQ
...@@ -13,61 +13,189 @@ Default Tags TP_MEC_SRV_APPSAQ ...@@ -13,61 +13,189 @@ Default Tags TP_MEC_SRV_APPSAQ
*** Test Cases *** *** Test Cases ***
Get the available MEC services for a given application instance TP_MEC_SRV_APPSAQ_001_OK
[Documentation] [Documentation]
... Check that the IUT responds with a list of available MEC services ... Check that the IUT responds with a list of available MEC services
... for a given application instance when queried by a MEC Application ... for a given application instance when queried by a MEC Application
... ...
... Reference ETSI GS MEC 011 V2.0.8, clause 7.15.3.1 ... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.6.3.1
... OpenAPI https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo ... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] TP_MEC_SRV_APPSAQ_001_OK TP_MEC_SRV_APPSAQ_BV [Tags] PIC_MEC_PLAT PIC_SERVICES
Given the Plaform IUT has a MEC Application instantiated vGET /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services
Log MEC 011, clause 5.2.5 Check HTTP Response Status Code Is 200
# When the Plaform IUT entity receives a vGET for /mec_service_mgmt/v1/applications/${APP_INSTANCE_ID}/services Check HTTP Response Body Json Schema Is ServiceInfoList
When the Plaform IUT entity receives a vGET for /${APP_INSTANCE_ID}/services
Log MEC 011, clause 7.15.3.1
Then the Plaform IUT sends a response 200 ServiceInfoList
MEC Applications sends incorrect parameters in request TP_MEC_SRV_APPSAQ_001_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.0.8, clause 7.15.3.1 ... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.6.3.1
[Tags] TP_MEC_SRV_APPSAQ_001_BR TP_MEC_SRV_APPSAQ_BI [Tags] PIC_MEC_PLAT PIC_SERVICES
Given the Plaform IUT has a MEC Application instantiated # Wrong query parameter name should trigger an error response.
Log MEC 011, clause 5.2.5 vGET /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services?id=some_instance_id
Log Wrong parameter name should trigger an error response. Check HTTP Response Status Code Is 400
# When the Plaform IUT entity receives a vGET for /mec_service_mgmt/v1/applications/${APP_INSTANCE_ID}/services?instance_id=some_instance_id
When the Plaform IUT entity receives a vGET for /${APP_INSTANCE_ID}/services?instance_id=some_instance_id
Log MEC 011, clause 7.15.3.1
Then the Plaform IUT sends a response 400 ProblemDetails
New MEC Applications service registration TP_MEC_SRV_APPSAQ_002_OK
[Documentation] [Documentation]
... Check that the IUT notifies the authorised relevant (subscribed) application ... Check that the IUT notifies the authorised relevant (subscribed) application
... instances when a new service for a given application instance is registered ... instances when a new service for a given application instance is registered
... ...
... Reference ETSI GS MEC 011 V2.0.8, clause 7.15.3.4 ... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.6.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] TP_MEC_SRV_APPSAQ_002_OK TP_MEC_SRV_APPSAQ_BV
[Tags] PIC_MEC_PLAT PIC_SERVICES
Given the Plaform IUT has a MEC Application instantiated
# TODO where does the __some_service__ data comes from? vPOST /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services ${MEC_APP_NEW_SVC_DATA}
Given a MEC Application subscribed to service notifications for __some_service__ Check HTTP Response Status Code Is 201
Log MEC 011, clause 5.2.4 Check HTTP Response Body Json Schema Is ServiceInfo
Log Wrong parameter name should trigger an error response. Check HTTP Response Header Contains Location
# TODO where does the __some_data__ comes from? Check Result Contains ${response['body']['ServiceInfo']} serName ${SERVICE_NAME}
# When the Plaform IUT entity receives a vPOST for /mec_service_mgmt/v1/applications/${APP_INSTANCE_ID}/services Check Plaform IUT notifies the MEC Application instances ServiceAvailabilityNotification
When the Plaform IUT entity receives a vPOST for /${APP_INSTANCE_ID}/services __some_data__ ServiceInfo
Log MEC 011, clause 7.15.3.4
Then the Plaform IUT sends a response 201 ServiceInfo TP_MEC_SRV_APPSAQ_002_BR
And the Plaform IUT response header parameter Location __location__ [Documentation]
Log MEC 011, clause 6.4.2 ... Check that the IUT responds with an error when
And the Plaform IUT sends a notification message to the subscribed MEC Applications with ServiceAvailabilityNotification ... a request with incorrect parameters is sent by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.6.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPOST /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services ${MEC_APP_NEW_SVC_DATA_BR}
Check HTTP Response Status Code Is 400
TP_MEC_SRV_APPSAQ_002_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 8.2.6.3.4
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPOST /${PX_MEC_SVC_MGMT_APPS_URI}/${NON_EXISTENT_APP_INSTANCE_ID}/services ${MEC_APP_NEW_SVC_DATA}
Check HTTP Response Status Code Is 404
TP_MEC_SRV_APPSAQ_003_OK
[Documentation]
... Check that the IUT responds with the information on a specific service
... for a given application instance when queried by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.7.3.1
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services/${SERVICE_ID}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is ServiceInfo
Check Result Contains ${response['body']['ServiceInfo']} serInstanceId ${SERVICE_ID}
TP_MEC_SRV_APPSAQ_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.0.9, clause 8.2.7.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services/${NON_EXISTENT_SERVICE_ID}
Check HTTP Response Status Code Is 404
TP_MEC_SRV_APPSAQ_004_OK
[Documentation]
... Check that the IUT updates a service information for a given
... application instance when commanded by a MEC Application
...
... Reference ETSI GS MEC 011 V2.0.9, clause 8.2.7.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPUT /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services/${SERVICE_ID} ${MEC_APP_SVC_UPDT_DATA}
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is ServiceInfo
Check Result Contains ${response['body']['ServiceInfo']} version ${SVC_NEW_VERSION}
TP_MEC_SRV_APPSAQ_004_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.0.9, clause 8.2.7.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPUT /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services/${SERVICE_ID} ${MEC_APP_SVC_UPDT_DATA_BR}
Check HTTP Response Status Code Is 400
TP_MEC_SRV_APPSAQ_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.0.9, clause 8.2.7.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPUT /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services/${NON_EXISTENT_SERVICE_ID} ${MEC_APP_SVC_UPDT_DATA}
Check HTTP Response Status Code Is 404
TP_MEC_SRV_APPSAQ_004_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.0.9, clause 8.2.7.3.2
... OpenAPI https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/v2.0.9/MecServiceMgmtApi.yaml#/definitions/ServiceInfo
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPUT invalid e-tag /${PX_MEC_SVC_MGMT_APPS_URI}/${APP_INSTANCE_ID}/services/${SERVICE_ID} ${MEC_APP_SVC_UPDT_DATA}
Check HTTP Response Status Code Is 412
*** Keywords ***
Check Plaform IUT notifies the MEC Application instances
[Documentation]
...
[Arguments] ${instance_id} ${content}
# TODO check how to send the message (isn't defined). Does it need to be tested as it's not defined?
# // MEC 011, clause 6.4.2
# the IUT entity sends a notification_message containing
# body containing
# notificationType set to "SerAvailabilityNotification",
# services containing
# serName set to SERVICE_NAME
# _links containing
# subscription set to MP1_SUBSCRIPTION_A
# ;
# ;
# ;
# ;
# to the MEC_APP_Subscriber entity
*** Settings ***
Documentation
... A test suite for validating Application Subscriptions (APPSUB) operations.
Resource ../../GenericKeywords.robot
Default Tags TP_MEC_SRV_APPSUB
*** Variables ***
*** Test Cases ***
TP_MEC_SRV_APPSUB_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.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
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/subscriptions
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is SubscriptionLinkList
TP_MEC_SRV_APPSUB_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.3.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_ME_APP_SUPPORT_URI}/${NON_EXISTENT_APP_INSTANCE_ID}/subscriptions
Check HTTP Response Status Code Is 404
TP_MEC_SRV_APPSUB_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.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
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPOST /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/subscriptions ${APP_TERM_NOTIF_SUB}
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}
TP_MEC_SRV_APPSUB_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.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
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/subscriptions/${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"
TP_MEC_SRV_APPSUB_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.0.9, clause 7.2.4.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/subscriptions/${NON_EXISTENT_SUBSCRIPTION_ID}
Check HTTP Response Status Code Is 404
TP_MEC_SRV_APPSUB_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.0.9, clause 7.2.4.3.5
[Tags] PIC_MEC_PLAT PIC_SERVICES
vDELETE without e-tag /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/subscriptions/${SUBSCRIPTION_ID}
Check HTTP Response Status Code Is 204
TP_MEC_SRV_APPSUB_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.0.9, clause 7.2.4.3.5
[Tags] PIC_MEC_PLAT PIC_SERVICES
vDELETE without e-tag /${PX_ME_APP_SUPPORT_URI}/${NON_EXISTENT_APP_INSTANCE_ID}/subscriptions/${SUBSCRIPTION_ID}
Check HTTP Response Status Code Is 404
*** Settings ***
Documentation
... A test suite for validating DNS rules (DNS) operations.
Resource ../../GenericKeywords.robot
Default Tags TP_MEC_SRV_DNS
*** Variables ***
*** Test Cases ***
TP_MEC_SRV_DNS_001_OK
[Documentation]
... 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
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/dns_rules
Check HTTP Response Status Code Is 200
Check HTTP Response Body Json Schema Is DnsRuleList
TP_MEC_SRV_DNS_002_OK
[Documentation]
... 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
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/dns_rules/${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}
TP_MEC_SRV_DNS_002_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.10.3.1
[Tags] PIC_MEC_PLAT PIC_SERVICES
vGET /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/dns_rules/${NON_EXISTENT_DNS_RULE_ID}
Check HTTP Response Status Code Is 404
TP_MEC_SRV_DNS_003_OK
[Documentation]
... 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
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPUT /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/dns_rules/${DNS_RULE_ID} ${MEC_APP_DNSRULE_UPDT_DATA}
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}
TP_MEC_SRV_DNS_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.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
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPUT /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/dns_rules/${DNS_RULE_ID} ${MEC_APP_DNSRULE_UPDT_DATA_BR}
Check HTTP Response Status Code Is 400
TP_MEC_SRV_DNS_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.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
[Tags] PIC_MEC_PLAT PIC_SERVICES
vPUT /${PX_ME_APP_SUPPORT_URI}/${APP_INSTANCE_ID}/dns_rules/${NON_EXISTENT_DNS_RULE_ID} ${MEC_APP_DNSRULE_UPDT_DATA}
Check HTTP Response Status Code Is 404
TP_MEC_SRV_DNS_003_PF