From bb06a38fdc34cf63f9630a14150bb0982e0afd9a Mon Sep 17 00:00:00 2001 From: fcferreira Date: Wed, 8 May 2019 14:25:26 +0100 Subject: [PATCH 01/13] Merge from MEC025-v2.0.1. --- Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 | 2 +- Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 | 4 ++-- Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 | 4 ++-- .../App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 index 043764e..2c607ae 100644 --- a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 +++ b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 @@ -73,7 +73,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vPOST containing + the IUT entity receives a POST containing uri indicating value "/apmi/v1/app_packages", "not" authorization, //Token is mandatory body containing diff --git a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 index c56b618..9b51145 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 @@ -75,7 +75,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/subscriptions", query_parameters containing subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, @@ -114,7 +114,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/subscriptions", headers set to vHeadersInvalidToken, // Invalid token query_parameters containing diff --git a/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 index 8915adc..10def08 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 @@ -75,7 +75,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/queries/rab_info", "not" authorization, query_parameters containing @@ -113,7 +113,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/queries/rab_info", headers set to vHeadersInvalidToken, query_parameters containing diff --git a/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 index bd13d0a..f4f8268 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 @@ -42,7 +42,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", "not" authorization ; from the MEC_SUB entity @@ -81,7 +81,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", headers set to vHeadersInvalidToken ; from the MEC_SUB entity -- GitLab From 22f8398519abab42767a2f3d8026304848145683 Mon Sep 17 00:00:00 2001 From: fcferreira Date: Wed, 8 May 2019 17:27:49 +0100 Subject: [PATCH 02/13] MEC 011 2.0.8 updates. --- .../Plat/Mp1/AppSAQ/PlatAppServices.tplan2 | 237 ++++++++++++++++++ .../Plat/Mp1/SAQ/PlatServices.tplan2 | 117 +-------- 2 files changed, 239 insertions(+), 115 deletions(-) create mode 100644 Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 diff --git a/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 b/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 new file mode 100644 index 0000000..cef45a6 --- /dev/null +++ b/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 @@ -0,0 +1,237 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_mp1_app_services { + + import all from MEC_Common; + + + /* + * Application Service Availability Query (APPSAQ) + */ + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BV_001" + + Test objective + "Check that the IUT responds with a list of available MEC services + for a given application instance when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.15.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + ServiceInfoList containing + ServiceInfo set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BV_002" + + Test objective + "Check that the IUT notifies the authorised relevant (subscribed) application + 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", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the MEC_APP_Registrant entity being_in idle_state and + the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services", + body containing + serName indicating value SERVICE_NAME + ; + ; + from the MEC_APP_Registrant entity + } + then { + // MEC 011, clause 7.15.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "201 Created", + Location set to LOCATION, + body containing + ServiceInfo containing + serName set to SERVICE_NAME + ; + ; + ; + to the MEC_APP_Registrant entity + and + // 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 + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BV_003" + + Test objective + "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.8, clause 7.14.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + ServiceInfo containing + serInstanceId set to SERVICE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BV_004" + + Test objective + "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.8, clause 7.14.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + body containing + version indicating value NEW_VERSION + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + ServiceInfo containing + version set to NEW_VERSION + ; + ; + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 b/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 index 59de2e1..7928c7c 100644 --- a/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 +++ b/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 @@ -28,7 +28,7 @@ Package plat_mp1_services { "Check that the IUT responds with a list of available MEC services when queried by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.4.3.1", + Reference "ETSI GS MEC 011 V2.0.8, clause 7.4.3.1", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" Config Id Config_MEC_1 @@ -64,69 +64,6 @@ Package plat_mp1_services { } - Test Purpose { - TP Id "TP_MEC_PLAT_MP1_SAQ_BV_002" - - Test objective - "Check that the IUT notifies the authorised relevant application instances - when a new service is registered when they are subscribed" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - Uri indicating value "/mp1/v1/services", - body containing - serName indicating value SERVICE_NAME - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.4.3.4 - the IUT entity sends a HttpMsg containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - ServiceInfo containing - serName set to SERVICE_NAME - ; - ; - ; - to the MEC_APP_Registrant entity - and - // 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 - } - } - } - - Test Purpose { TP Id "TP_MEC_PLAT_MP1_SAQ_BV_003" @@ -134,7 +71,7 @@ Package plat_mp1_services { "Check that the IUT responds with the information on a specific service when queried by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.3.3.1", + Reference "ETSI GS MEC 011 V2.0.8, clause 7.3.3.1", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" Config Id Config_MEC_1 @@ -172,54 +109,4 @@ Package plat_mp1_services { } } - - Test Purpose { - TP Id "TP_MEC_PLAT_MP1_SAQ_BV_004" - - Test objective - "Check that the IUT updates a service information - when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - Uri indicating value "/mp1/v1/services/{SERVICE_ID}", - body containing - version indicating value NEW_VERSION - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.3.3.2 - the IUT entity sends a HttpMsg containing - status_code set to "200 OK" - body containing - ServiceInfo containing - version set to NEW_VERSION - ; - ; - ; - to the MEC_APP entity - } - } - } - } -- GitLab From 29c18f64feb820bdcfa015c0760e71c50b31efe1 Mon Sep 17 00:00:00 2001 From: fcferreira Date: Fri, 10 May 2019 16:09:27 +0100 Subject: [PATCH 03/13] MEC 013 v2.0.3 updates. --- .../PlatUeAreaSubscription.tplan2 | 129 +++++++++++++++++ .../Plat/Mp1/UeDistance/PlatUeDistance.tplan2 | 67 --------- .../PlatUeDistanceLookup.tplan2} | 43 +++--- .../PlatUeDistanceSubscription.tplan2 | 132 ++++++++++++++++++ .../PlatUeInformationLookup.tplan2} | 6 +- .../PlatUeInformationSubscription.tplan2 | 130 +++++++++++++++++ .../PlatUeLocationLookup.tplan2} | 2 +- .../PlatUeLocationSubscription.tplan2 | 130 +++++++++++++++++ .../PlatUeTrackingSubscription.tplan2 | 130 +++++++++++++++++ 9 files changed, 677 insertions(+), 92 deletions(-) create mode 100644 Test Purposes/Plat/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 delete mode 100644 Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 rename Test Purposes/Plat/Mp1/{UeArea/PlatUeArea.tplan2 => UeDistanceLookup/PlatUeDistanceLookup.tplan2} (60%) create mode 100644 Test Purposes/Plat/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 rename Test Purposes/Plat/Mp1/{UeInformation/PlatUeInformation.tplan2 => UeInformationLookup/PlatUeInformationLookup.tplan2} (93%) create mode 100644 Test Purposes/Plat/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 rename Test Purposes/Plat/Mp1/{UeLocation/PlatUeLocation.tplan2 => UeLocationLookup/PlatUeLocationLookup.tplan2} (97%) create mode 100644 Test Purposes/Plat/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 create mode 100644 Test Purposes/Plat/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 diff --git a/Test Purposes/Plat/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 new file mode 100644 index 0000000..7733bed --- /dev/null +++ b/Test Purposes/Plat/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 @@ -0,0 +1,129 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_mp1_ue_area_subscription { + + import all from MEC_Common; + + + /* + * UE Area Subscribe (AREASUB) + */ + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_AREASUB_BV_001" + + Test objective + "Check that the IUT acknowledges the UE area change subscription request when + commanded by a MEC Application and notifies it when the UE enters the specified circle" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.11" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.11 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "location/v2/subscriptions/area/circle", + body containing + circleNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.11.2 + the IUT entity sends a HttpMsg containing + status_code set to "201 Created" + body containing + circleNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + + // TODO: do we have the notification as a separate test? If so, do we have initial conditions + // set to circleNotificationSubscription above? how? how do we check the proper call to CALLBACK_URL? + and + // MEC 013, clause 7.3.11.3 + the IUT entity sends a vPOST containing + body containing + subscriptionNotification containing + terminalLocation containing + address set to IP_ADDRESS + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_AREASUB_BV_002" + + Test objective + "Check that the IUT acknowledges the cancellation of UE area change notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "location/v2/subscriptions/area/circle/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.6 + the IUT entity sends a HttpMsg containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 b/Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 deleted file mode 100644 index 181d3ad..0000000 --- a/Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 +++ /dev/null @@ -1,67 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package plat_mp1_ue_distance { - - import all from MEC_Common; - - - /* - * UE Distance Subscribe (DIST) - */ - - Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DIST_BV_001" - - Test objective - "Check that the IUT acknowledges the subscription by a MEC Application - to the notifications on UE distance" - - Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.10" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.10 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - Uri indicating value "location/v2/subscriptions/distance", - body containing - distanceNotificationSubscription indicating value any_value - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.10.2 - the IUT entity sends a HttpMsg containing - status_code set to "201 Created" - body containing - distanceNotificationSubscription set to any_value - ; - ; - to the MEC_APP entity - } - } - } - -} diff --git a/Test Purposes/Plat/Mp1/UeArea/PlatUeArea.tplan2 b/Test Purposes/Plat/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 similarity index 60% rename from Test Purposes/Plat/Mp1/UeArea/PlatUeArea.tplan2 rename to Test Purposes/Plat/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 index 92e0c20..8cddbef 100644 --- a/Test Purposes/Plat/Mp1/UeArea/PlatUeArea.tplan2 +++ b/Test Purposes/Plat/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 @@ -13,50 +13,51 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_area { +Package plat_mp1_ue_distance_lookup { import all from MEC_Common; - /* - * UE Area Subscribe (AREA) + * UE Distance Lookup (DISTLOOK) */ - Test Purpose { - TP Id "TP_MEC_PLAT_MP1_AREA_BV_001" - + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_DISTLOOK_BV_001" + Test objective - "Check that the IUT acknowledges the subscription by a MEC Application - to the notifications on UE movement in relation to a geographic area" - - Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.11" - + "Check that the IUT responds with the distance to a UE + when queried by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.9" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state } - - // MEC 013, clause 5.3.11 + + // MEC 013, clause 5.3.9 Expected behaviour ensure that { when { - the IUT entity receives a vPOST containing - Uri indicating value "location/v2/subscriptions/area/circle", - body containing - circleNotificationSubscription indicating value any_value + the IUT entity receives a vGET containing + Uri indicating value "location/v2/queries", + query_parameters containing + address indicating value any_value, + latitude indicating value any_value, + longitude indicating value any_value ; ; from the MEC_APP entity } then { - // MEC 013, clause 7.3.11.2 + // MEC 013, clause 7.3.9.2 the IUT entity sends a HttpMsg containing - status_code set to "201 Created" + status_code set to "200 OK" body containing - circleNotificationSubscription set to any_value + terminalDistance set to any_value ; ; to the MEC_APP entity diff --git a/Test Purposes/Plat/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 new file mode 100644 index 0000000..cbfb331 --- /dev/null +++ b/Test Purposes/Plat/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 @@ -0,0 +1,132 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_mp1_ue_distance_subscription { + + import all from MEC_Common; + + + /* + * UE Distance Subscribe (DISTSUB) + */ + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_DISTSUB_BV_001" + + Test objective + "Check that the IUT acknowledges the UE distance subscription request when commanded by a + MEC Application and notifies it when (all) the requested UE(s) is (are) within the specified distance" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.10" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.10 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "location/v2/subscriptions/distance", + body containing + distanceNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + monitoredAddress indicating value MONITORED_IP_ADDRESS, + referenceAddress indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.10.2 + the IUT entity sends a HttpMsg containing + status_code set to "201 Created" + body containing + distanceNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + monitoredAddress indicating value MONITORED_IP_ADDRESS, + referenceAddress indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + + // TODO: do we have the notification as a separate test? If so, do we have initial conditions + // set to distanceNotificationSubscription above? how? how do we check the proper call to CALLBACK_URL? + and + // MEC 013, clause 7.3.10.3 + the IUT entity sends a vPOST containing + Uri set to CALLBACK_URL + body containing + subscriptionNotification containing + terminalLocation containing + address set to IP_ADDRESS + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_DISTSUB_BV_002" + + Test objective + "Check that the IUT acknowledges the cancellation of UE distance notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "location/v2/subscriptions/distance/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.5 + the IUT entity sends a HttpMsg containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/Plat/Mp1/UeInformation/PlatUeInformation.tplan2 b/Test Purposes/Plat/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 similarity index 93% rename from Test Purposes/Plat/Mp1/UeInformation/PlatUeInformation.tplan2 rename to Test Purposes/Plat/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 index 3252fda..7e43d2b 100644 --- a/Test Purposes/Plat/Mp1/UeInformation/PlatUeInformation.tplan2 +++ b/Test Purposes/Plat/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 @@ -19,17 +19,17 @@ Package plat_mp1_ue_information_lookup { /* - * UE Information Lookup (INF) + * UE Information Lookup (INFLOOK) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_INF_BV_001" + TP Id "TP_MEC_PLAT_MP1_INFLOOK_BV_001" Test objective "Check that the IUT responds with the information pertaining to one or more UEs in a particular location when queried by a MEC Application" - Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.3", + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.3", "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList" Config Id Config_MEC_1 diff --git a/Test Purposes/Plat/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 new file mode 100644 index 0000000..4ddefdb --- /dev/null +++ b/Test Purposes/Plat/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 @@ -0,0 +1,130 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_mp1_ue_information_subscription { + + import all from MEC_Common; + + /* + * UE Information Subscription (INFSUB) + */ + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_INFSUB_BV_001" + + Test objective + "Check that the IUT acknowledges the UE information change subscription request + when commanded by a MEC Application and notifies it when the location changes" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.5", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/zonalTrafficSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "location/v2/subscriptions/zonalTraffic" + body containing + zonalTrafficSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + zoneId indicating value ZONE_ID + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.5.2 + the IUT entity sends a HttpMsg containing + status_code set to "201 Created" + body containing + zonalTrafficSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + zoneId indicating value ZONE_ID + ; + ; + ; + to the MEC_APP entity + + // TODO: do we have the notification as a separate test? If so, do we have initial conditions + // set to zonalTrafficSubscription above? how? how do we check the proper call to CALLBACK_URL? + and + // MEC 013, clause 7.3.5.3 + the IUT entity sends a vPOST containing + Uri set to CALLBACK_URL + body containing + zonalPresenceNotification containing + clientCorrelator set to CLIENT_ID, + zoneId indicating value ZONE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_INFSUB_BV_002" + + Test objective + "Check that the IUT acknowledges the cancellation of UE information change notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "location/v2/subscriptions/zonalTraffic/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.3 + the IUT entity sends a HttpMsg containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/Plat/Mp1/UeLocation/PlatUeLocation.tplan2 b/Test Purposes/Plat/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 similarity index 97% rename from Test Purposes/Plat/Mp1/UeLocation/PlatUeLocation.tplan2 rename to Test Purposes/Plat/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 index 949661c..90f6371 100644 --- a/Test Purposes/Plat/Mp1/UeLocation/PlatUeLocation.tplan2 +++ b/Test Purposes/Plat/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 @@ -28,7 +28,7 @@ Package plat_mp1_ue_location_lookup { "Check that the IUT responds with a list for the location of User Equipments when queried by a MEC Application" - Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.2", + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.2", "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo" Config Id Config_MEC_1 diff --git a/Test Purposes/Plat/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 new file mode 100644 index 0000000..2c9578d --- /dev/null +++ b/Test Purposes/Plat/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 @@ -0,0 +1,130 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_mp1_ue_location_subscription { + + import all from MEC_Common; + + /* + * UE Location Subscription (LOCSUB) + */ + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_LOCSUB_BV_001" + + Test objective + "Check that the IUT acknowledges the UE location change subscription request + when commanded by a MEC Application and notifies it when the location changes" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserTrackingSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "location/v2/subscriptions/userTracking" + body containing + userTrackingSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.4.2 + the IUT entity sends a HttpMsg containing + status_code set to "201 Created" + body containing + userTrackingSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + + // TODO: do we have the notification as a separate test? If so, do we have initial conditions + // set to userTrackingSubscription above? how? how do we check the proper call to CALLBACK_URL? + and + // MEC 013, clause 7.3.4.3 + the IUT entity sends a vPOST containing + Uri set to CALLBACK_URL + body containing + zonalPresenceNotification containing + clientCorrelator set to CLIENT_ID, + address set to IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_LOCSUB_BV_002" + + Test objective + "Check that the IUT acknowledges the cancellation of UE location change notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "location/v2/subscriptions/userTracking/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.2 + the IUT entity sends a HttpMsg containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/Plat/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 new file mode 100644 index 0000000..92656ff --- /dev/null +++ b/Test Purposes/Plat/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 @@ -0,0 +1,130 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_mp1_ue_tracking_subscription { + + import all from MEC_Common; + + + /* + * UE Tracking Subscribe (TRACKSUB) + */ + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TRACKSUB_BV_001" + + Test objective + "Check that the IUT acknowledges the UE location change subscription request + when commanded by a MEC Application and notifies it when the UE changes location" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "location/v2/subscriptions/periodic" + body containing + periodicNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.8.2 + the IUT entity sends a HttpMsg containing + status_code set to "201 Created" + body containing + periodicNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + + // TODO: do we have the notification as a separate test? If so, do we have initial conditions + // set to periodicNotificationSubscription above? how? how do we check the proper call to CALLBACK_URL? + and + // MEC 013, clause 7.3.8.3 + the IUT entity sends a vPOST containing + body containing + subscriptionNotification containing + terminalLocation containing + address set to IP_ADDRESS + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TRACKSUB_BV_002" + + Test objective + "Check that the IUT acknowledges the cancellation of UE tracking notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "location/v2/subscriptions/periodic/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.4 + the IUT entity sends a HttpMsg containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + +} -- GitLab From 5415f28f2b8539c5bbba249fd984d247e49c6664 Mon Sep 17 00:00:00 2001 From: fcferreira Date: Fri, 10 May 2019 17:00:27 +0100 Subject: [PATCH 04/13] MEC 016 v2.1.1 updates. --- .../Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 | 23 +++++++++++-------- .../Sys/Mx2/UeApps/SysUeApplications.tplan2 | 4 ++-- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 index 2be73e6..c6b9dbe 100644 --- a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 +++ b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 @@ -26,10 +26,10 @@ Package sys_mx2_ue_apps_context { TP Id "TP_MEC_SYS_MX2_APPCTX_BV_001" Test objective - "Check that the IUT responds with the description of the created application context + "Check that the IUT acknowledges the creation of the application context when requested by an UE Application" - Reference "ETSI GS MEC 016 V1.2.0, clause 7.4.3.4", + Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -45,10 +45,12 @@ Package sys_mx2_ue_apps_context { ensure that { when { the IUT entity receives a vPOST containing - Uri indicating value "mx2/v1/app_contexts", + Uri indicating value "mx2/v2/app_contexts", body containing - appInfo containing - appName set to APP_NAME + AppContext containing + appInfo containing + appName set to APP_NAME + ; ; ; ; @@ -57,7 +59,8 @@ Package sys_mx2_ue_apps_context { then { // MEC 016, clause 7.4.3.4 the IUT entity sends a HttpMsg containing - status_code set to "201 Created" + status_code set to "201 Created", + Location set to LOCATION, body containing AppContext containing appInfo containing @@ -79,7 +82,7 @@ Package sys_mx2_ue_apps_context { "Check that the IUT updates the application callback reference when commanded by an UE Application" - Reference "ETSI GS MEC 016 V1.2.0, clause 7.5.3.2" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2" Config Id Config_MEC_4 @@ -97,7 +100,7 @@ Package sys_mx2_ue_apps_context { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mx2/v1/app_contexts/{CONTEXT_ID}" + Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" body containing callbackReference indicating value some_uri ; @@ -122,7 +125,7 @@ Package sys_mx2_ue_apps_context { "Check that the IUT deletes the application context when commanded by an UE Application" - Reference "ETSI GS MEC 016 V1.2.0, clause 7.5.3.5" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" Config Id Config_MEC_4 @@ -140,7 +143,7 @@ Package sys_mx2_ue_apps_context { ensure that { when { the IUT entity receives a vDELETE containing - Uri indicating value "mx2/v1/app_contexts/{CONTEXT_ID}" + Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" ; from the UE_APP entity } diff --git a/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 b/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 index 0998594..9ec8bcd 100644 --- a/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 +++ b/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 @@ -29,7 +29,7 @@ Package sys_mx2_ue_applications { "Check that the IUT responds with the list of user applications available when requested by an UE Application" - Reference "ETSI GS MEC 016 V1.2.0, clause 7.3.3.1", + Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1", "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList" Config Id Config_MEC_4 @@ -48,7 +48,7 @@ Package sys_mx2_ue_applications { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mx2/v1/app_list", + Uri indicating value "mx2/v2/app_list", query_parameters containing appName indicating value APP_NAME ; -- GitLab From d464dccdd4855813968c46ea3f15b2025a71253a Mon Sep 17 00:00:00 2001 From: fcferreira Date: Tue, 14 May 2019 18:57:17 +0100 Subject: [PATCH 05/13] MEC 029 v2.0.7 updates. --- .../Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 | 527 ++++++++++++++++++ 1 file changed, 527 insertions(+) create mode 100644 Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 diff --git a/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 b/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 new file mode 100644 index 0000000..3e2d5b1 --- /dev/null +++ b/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 @@ -0,0 +1,527 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_mp1_fixed_access_info{ + + import all from MEC_Common; + + + /* + * Fixed Access Information Service (FAIS) + */ + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_001" + + Test objective + "Check that the IUT responds with the current status of the fixed access information + when queried by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/fa_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + FaInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_002" + + Test objective + "Check that the IUT responds with the current status of the device information + when queried by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/device_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + DeviceInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_003" + + Test objective + "Check that the IUT responds with the current status of the cable line information + when queried by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/cable_line_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.5.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + CableLineInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_004" + + Test objective + "Check that the IUT responds with the current status of the optical network information + when queried by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/optical_network_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.6.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + PonInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_005" + + Test objective + "Check that the IUT responds with the subscriptions for fixed access information notifications + when queried by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + SubscriptionLinkList set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_006" + + Test objective + "Check that the IUT acknowledges the subscription by a MEC Application + to notifications on Optical Network Unit alarm events" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "fai/v1/subscriptions" + body containing + OnuAlarmSubscription containing + subscriptionType indicating value "OnuAlarmSubscription", + callbackReference indicating value CALLBACK_URL + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "201 Created", + Location set to LOCATION, + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + to the MEC_APP entity + + // TODO: do we have the notification as a separate test? If so, do we have initial conditions + // set to OnuAlarmSubscription above? how? how do we check the proper call to CALLBACK_URL? + and + // MEC 029, clause 7.7.3.4 + the IUT entity sends a vPOST containing + body containing + OnuAlarmNotification containing + notificationType set to "OnuAlarmSubscription" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_007" + + Test objective + "Check that the IUT responds with the information on a given subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_008" + + Test objective + "Check that the IUT updates an existing subscription + when commanded by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.2" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "200 OK" + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_009" + + Test objective + "Check that the IUT cancels an existing subscription + when commanded by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_010" + + Test objective + "Check that the IUT sends notification on expiry of Fixed Access Information event subscription + to a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "fai/v1/subscriptions" + body containing + OnuAlarmSubscription containing + subscriptionType indicating value "DevInfoSubscription", + callbackReference indicating value CALLBACK_URL, + expiryDeadline indicating value NOW_PLUS_X_SECONDS // TODO: how to set this? + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "201 Created", + Location set to LOCATION, + body containing + DevInfoSubscription containing + subscriptionType set to "DevInfoSubscription" + ; + ; + ; + to the MEC_APP entity + + // TODO: how to wait for a timeout of (NOW_PLUS_X_SECONDS - guard time)? which guard time value to use? + and + // MEC 029, clause 5.2.6.2 + the IUT entity sends a vPOST containing + Uri indicating value CALLBACK_URL + body containing + ExpiryNotification containing + expiryDeadline indicating value NOW_PLUS_X_SECONDS // TODO: how to set this? + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BV_011" + + Test objective + "Check that the IUT sends notifications on Fixed Access Information events + to a subscribed MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 5.2.7" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionType indicating value "OnuAlarmSubscription", + callbackReference indicating value CALLBACK_URL + ; + } + + // MEC 029, clause 5.2.7 + Expected behaviour + ensure that { + when { + // TODO: what's the trigger here? + } + then { + // // MEC 029, clause 5.2.7 + the IUT entity sends a vPOST containing + Uri set to CALLBACK_URL + body containing + OnuAlarmSubscription containing + notificationType set to "OnuAlarmSubscription" + ; + ; + ; + to the MEC_APP entity + } + } + } + +} -- GitLab From df5b513bd54ace1b9bff950cf6a4fe5de506b208 Mon Sep 17 00:00:00 2001 From: fcferreira Date: Thu, 6 Jun 2019 15:21:51 +0100 Subject: [PATCH 06/13] MEC 011 negative test cases. --- .../Plat/Mp1/AppSAQ/PlatAppServices.tplan2 | 616 +++++++++++++++++- .../Plat/Mp1/DnsRules/PlatDnsRules.tplan2 | 231 ++++++- .../Notifications/PlatNotifications.tplan2 | 390 +++++++++++ .../Plat/Mp1/SAQ/PlatServices.tplan2 | 136 ++++ .../Plat/Mp1/Timing/PlatTiming.tplan2 | 171 +++++ .../Mp1/TrafficRules/PlatTrafficRules.tplan2 | 307 ++++++++- .../Plat/Mp1/Transport/PlatTransport.tplan2 | 42 ++ 7 files changed, 1881 insertions(+), 12 deletions(-) diff --git a/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 b/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 index cef45a6..5bb571f 100644 --- a/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 +++ b/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 @@ -212,7 +212,8 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + If_Match indicating value VALID_ETAG, body containing version indicating value NEW_VERSION ; @@ -220,7 +221,7 @@ Package plat_mp1_app_services { from the MEC_APP entity } then { - // MEC 011, clause 7.3.3.2 + // MEC 011, clause 7.14.3.2 the IUT entity sends a HttpMsg containing status_code set to "200 OK" body containing @@ -234,4 +235,615 @@ Package plat_mp1_app_services { } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_001" + + Test objective + "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.8, clause 7.15.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services" + query_parameters containing + // Wrong parameter name should trigger an error response. + instance_id indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.15.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_002" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.15.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_003" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/services" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.15.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_004" + + Test objective + "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.8, clause 7.15.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the MEC_APP_Registrant entity being_in idle_state and + the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services", + body containing + // Wrong parameter name should trigger an error response. + Name indicating value SERVICE_NAME + ; + ; + from the MEC_APP_Registrant entity + } + then { + // MEC 011, clause 7.15.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP_Registrant entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_005" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the MEC_APP_Registrant entity being_in idle_state and + the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services", + body containing + serName indicating value SERVICE_NAME + ; + ; + from the MEC_APP_Registrant entity + } + then { + // MEC 011, clause 7.15.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP_Registrant entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_006" + + Test objective + "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.8, clause 7.15.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the MEC_APP_Registrant entity being_in idle_state and + the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "/mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/services", + body containing + serName indicating value SERVICE_NAME + ; + ; + from the MEC_APP_Registrant entity + } + then { + // MEC 011, clause 7.15.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP_Registrant entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_007" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_008" + + Test objective + "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.8, clause 7.14.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{UNKNOWN_SERVICE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_009" + + Test objective + "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.8, clause 7.14.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + If_Match indicating value VALID_ETAG, + body containing + // Wrong parameter name should trigger an error response. + a_version indicating value NEW_VERSION + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_010" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a PUT containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + If_Match indicating value VALID_ETAG, + body containing + version indicating value NEW_VERSION + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_011" + + Test objective + "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.8, clause 7.14.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{UNKNOWN_SERVICE_ID}", + If_Match indicating value VALID_ETAG, + body containing + version indicating value NEW_VERSION + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_012" + + Test objective + "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.8, clause 7.14.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + If_Match indicating value INVALID_ETAG, + body containing + version indicating value NEW_VERSION + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "412 Precondition Failed" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 index 605dee2..583ee3a 100644 --- a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 +++ b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 @@ -147,7 +147,8 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + If_Match indicating value VALID_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, ipAddress indicating value SOME_IP_ADDRESS @@ -175,6 +176,104 @@ Package plat_mp1_dns_rules { Test Purpose { TP Id "TP_MEC_PLAT_MP1_DNS_BI_001" + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a dns_rules containing + rule_id indicating value DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_DNS_BI_002" + + Test objective + "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.4, clause 7.13.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a dns_rules containing + rule_id indicating value DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{UNKNOWN_DNS_RULE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_DNS_BI_003" + Test objective "Check that the IUT responds with an error when non compliant data is sent for an update to a specific DNS rule @@ -202,9 +301,11 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + If_Match indicating value VALID_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, + // Unknown parameter value should trigger an error response. state indicating value UNKNOWN_VALUE ; ; @@ -227,13 +328,13 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BI_002" + TP Id "TP_MEC_PLAT_MP1_DNS_BI_004" Test objective - "Check that the IUT responds with an error when queried by a MEC Application - which provides a non-existing DNS rule identifier" + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.1", + Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" Config Id Config_MEC_1 @@ -254,13 +355,72 @@ Package plat_mp1_dns_rules { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/NON_EXISTING_DNS_RULE_ID" + the IUT entity receives a PUT containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + If_Match indicating value VALID_ETAG + body containing + dnsRuleId indicating value DNS_RULE_NAME, + state indicating value STATE_VALUE + ; ; from the MEC_APP entity } then { - // MEC 011, clause 7.13.3.1 + // MEC 011, clause 7.13.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_DNS_BI_005" + + Test objective + "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.4, clause 7.13.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a dns_rules containing + rule_id indicating value DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{UNKNOWN_DNS_RULE_ID}", + If_Match indicating value VALID_ETAG + body containing + dnsRuleId indicating value DNS_RULE_NAME, + ipAddress indicating value SOME_IP_ADDRESS + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.2 the IUT entity sends a HttpMsg containing status_code set to "404 Not Found" body containing @@ -274,4 +434,57 @@ Package plat_mp1_dns_rules { } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_DNS_BI_006" + + Test objective + "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.4, clause 7.13.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a dns_rules containing + rule_id indicating value DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + If_Match indicating value INVALID_ETAG + body containing + dnsRuleId indicating value DNS_RULE_NAME, + ipAddress indicating value SOME_IP_ADDRESS + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "412 Precondition Failed" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 b/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 index 14fd9be..5fa2444 100644 --- a/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 +++ b/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 @@ -208,4 +208,394 @@ Package plat_mp1_notifications { } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_NTF_BI_001" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_NTF_BI_002" + + Test objective + "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.4, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_NTF_BI_003" + + Test objective + "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.4, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions" + body containing + // Unknown value should trigger an error response. + subscriptionType indicating value INVALID_SUBSCRIPTION, + callbackReference indicating value some_uri + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_NTF_BI_004" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions" + body containing + subscriptionType indicating value "SerAvailabilityNotificationSubscription", + callbackReference indicating value some_uri + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_NTF_BI_005" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_NTF_BI_006" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions/{UNKNOWN_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_NTF_BI_007" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_NTF_BI_008" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 b/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 index 7928c7c..fc199bc 100644 --- a/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 +++ b/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 @@ -109,4 +109,140 @@ Package plat_mp1_services { } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_SAQ_BI_001" + + Test objective + "Check that the IUT responds with an error when + incorrect parameters were sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.4.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/mp1/v1/services" + query_parameters containing + // Wrong parameter name should trigger an error response. + instance_id indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_SAQ_BI_002" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.4.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/mp1/v1/services" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_SAQ_BI_003" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/mp1/v1/services/{UNKNOWN_SERVICE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 b/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 index f2314b2..37bf698 100644 --- a/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 +++ b/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 @@ -102,4 +102,175 @@ Package plat_mp1_timing { } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TIME_BI_001" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.7.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "mp1/v1/timing/timing_caps" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.7.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TIME_BI_002" + + Test objective + "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.4, clause 7.7.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "mp1/v1/timing/timing_caps/{ANY_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.7.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TIME_BI_003" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "mp1/v1/timing/current_time" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.8.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TIME_BI_004" + + Test objective + "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.4, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "mp1/v1/timing/current_time/{ANY_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.8.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 b/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 index 0cc08af..738cb39 100644 --- a/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 +++ b/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 @@ -145,7 +145,8 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}" + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + If_Match indicating value VALID_ETAG body containing action indicating value "DROP" ; @@ -168,4 +169,308 @@ Package plat_mp1_traffic_rules { } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TFR_BI_001" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.10.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.10.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TFR_BI_002" + + Test objective + "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.4, clause 7.10.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/traffic_rules" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.10.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TFR_BI_003" + + Test objective + "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.4, clause 7.11.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a traffic_rules containing + rule_id indicating value TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + If_Match indicating value VALID_ETAG + body containing + // Invalid parameter value should trigger an error response. + action indicating value "UNKNOWN_VALUE" + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TFR_BI_004" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.11.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a traffic_rules containing + rule_id indicating value TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a PUT containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + If_Match indicating value VALID_ETAG + body containing + action indicating value "DROP" + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TFR_BI_005" + + Test objective + "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.4, clause 7.11.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a traffic_rules containing + rule_id indicating value TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{UNKNOWN_TRAFFIC_RULE_ID}", + If_Match indicating value VALID_ETAG + body containing + action indicating value "DROP" + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TFR_BI_006" + + Test objective + "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.4, clause 7.11.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a traffic_rules containing + rule_id indicating value TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + If_Match indicating value INVALID_ETAG + body containing + action indicating value "DROP" + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "412 Precondition Failed" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/Plat/Mp1/Transport/PlatTransport.tplan2 b/Test Purposes/Plat/Mp1/Transport/PlatTransport.tplan2 index bfbdc54..356b991 100644 --- a/Test Purposes/Plat/Mp1/Transport/PlatTransport.tplan2 +++ b/Test Purposes/Plat/Mp1/Transport/PlatTransport.tplan2 @@ -63,4 +63,46 @@ Package plat_mp1_transport{ } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_TRP_BI_001" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.9.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.9 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "mp1/v1/transports" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.9.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } -- GitLab From f844d68f00274dc62a45ed5ee72771694d0e8828 Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Thu, 6 Jun 2019 16:45:02 +0100 Subject: [PATCH 07/13] MEC 014 negative test cases. --- .../Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 | 381 +++++++++++++++++- 1 file changed, 379 insertions(+), 2 deletions(-) diff --git a/Test Purposes/Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 b/Test Purposes/Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 index 18ecfed..aecc34f 100644 --- a/Test Purposes/Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 +++ b/Test Purposes/Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 @@ -102,6 +102,7 @@ Package plat_mp1_ue_identity { when { the IUT entity receives a vPUT containing Uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", + If_Match indicating value PROPER_ETAG, body containing ueIdentityTagsList containing ueIdentityTags containing @@ -143,6 +144,7 @@ Package plat_mp1_ue_identity { when commanded by a MEC Application" Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" Config Id Config_MEC_1 @@ -162,11 +164,12 @@ Package plat_mp1_ue_identity { when { the IUT entity receives a vPUT containing Uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", + If_Match indicating value PROPER_ETAG, body containing ueIdentityTagsList containing ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to UNREGISTERED + ueIdentityTag indicating value UE_IDENTITY_TAG, + state indicating value UNREGISTERED ; ; ; @@ -193,4 +196,378 @@ Package plat_mp1_ue_identity { } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_UETAG_BI_001" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", + query_parameters containing + // Wrong parameter name should trigger an error response. + ueTag indicating value UE_IDENTITY_TAG + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_UETAG_BI_002" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", + query_parameters containing + ueIdentityTag indicating value UE_IDENTITY_TAG + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_UETAG_BI_003" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "ui/v1/{UNKNOWN_APP_INSTANCE_ID}/ue_identity_tag_info", + query_parameters containing + ueIdentityTag indicating value UE_IDENTITY_TAG + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_UETAG_BI_004" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", +x If_Match indicating value PROPER_ETAG, + body containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to INVALID_STATE + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_UETAG_BI_005" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a PUT containing + Uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", + If_Match indicating value PROPER_ETAG, + body containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to REGISTERED + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_UETAG_BI_006" + + Test objective + "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 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "ui/v1/{UNKNOWN_APP_INSTANCE_ID}/ue_identity_tag_info", +x If_Match indicating value PROPER_ETAG, + body containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to REGISTERED + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_UETAG_BI_007" + + Test objective + "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 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", +x If_Match indicating value INVALID_ETAG, + body containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to UNREGISTERED + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "412 Precondition Failed" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + } -- GitLab From a62faa794dec22a2adf2afc540600a034a3f2d84 Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Thu, 6 Jun 2019 18:18:21 +0100 Subject: [PATCH 08/13] MEC 015 negative test cases. --- .../Mp1/Bandwidth/PlatBandwidthManager.tplan2 | 849 +++++++++++++++++- 1 file changed, 846 insertions(+), 3 deletions(-) diff --git a/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 b/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 index a78b4f8..18769a1 100644 --- a/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 +++ b/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 @@ -203,7 +203,8 @@ Package plat_mp1_bandwidth_manager { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -239,7 +240,7 @@ Package plat_mp1_bandwidth_manager { when commanded by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" Config Id Config_MEC_1 @@ -260,7 +261,8 @@ Package plat_mp1_bandwidth_manager { ensure that { when { the IUT entity receives a vPATCH containing - Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -326,4 +328,845 @@ Package plat_mp1_bandwidth_manager { } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_001" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a bwInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015, clause 6.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "bwm/v1/bw_allocations", + query_parameters containing + // Wrong parameter name should trigger an error response. + app_id indicating value APP_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_002" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a bwInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015, clause 6.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "bwm/v1/bw_allocations", + query_parameters containing + app_instance_id indicating value APP_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_003" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015, clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "bwm/v1/bw_allocations", + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + requestType indicating value INVALID_BW_ALLOCATION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_004" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015, clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + Uri indicating value "bwm/v1/bw_allocations", + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + requestType indicating value SOME_TYPE + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_005" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_006" + + Test objective + "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 015 V1.1.1, clause 8.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "bwm/v1/bw_allocations/{UNKNOWN_ALLOCATION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_007" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value INVALID_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_008" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a PUT containing + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value INVALID_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_009" + + Test objective + "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 015 V1.1.1, clause 8.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "bwm/v1/bw_allocations/{UNKNOWN_ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_010" + + Test objective + "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 015 V1.1.1, clause 8.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + If_Match indicating value INVALID_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "412 Precondition Failed" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_011" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value INVALID_TYPE, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.3 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_012" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a PATCH containing + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.3 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_013" + + Test objective + "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 015 V1.1.1, clause 8.3.3.3", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + Uri indicating value "bwm/v1/bw_allocations/{UNKNOWN_ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.3 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BI_014" + + Test objective + "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 015 V1.1.1, clause 8.3.3.3", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + If_Match indicating value INVALID_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.3 + the IUT entity sends a HttpMsg containing + status_code set to "412 Precondition Failed" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BV_015" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_BWA_BV_016" + + Test objective + "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 015 V1.1.1, clause 8.3.3.5", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "bwm/v1/bw_allocations/{UNKNOWN_ALLOCATION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } -- GitLab From 233078503444f7d2a6de1ed76011ef6d617daac2 Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Fri, 7 Jun 2019 16:36:49 +0100 Subject: [PATCH 09/13] MEC 016 negative test cases. --- .../Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 | 510 +++++++++++++++++- .../Sys/Mx2/UeApps/SysUeApplications.tplan2 | 200 +++++++ 2 files changed, 708 insertions(+), 2 deletions(-) diff --git a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 index c6b9dbe..054f6cd 100644 --- a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 +++ b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 @@ -82,7 +82,8 @@ Package sys_mx2_ue_apps_context { "Check that the IUT updates the application callback reference when commanded by an UE Application" - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -102,7 +103,9 @@ Package sys_mx2_ue_apps_context { the IUT entity receives a vPUT containing Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" body containing - callbackReference indicating value some_uri + AppContext containing + callbackReference indicating value some_uri + ; ; ; from the UE_APP entity @@ -157,4 +160,507 @@ Package sys_mx2_ue_apps_context { } } + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_001" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 016, clause 5.1.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "mx2/v2/app_contexts", + body containing + AppContext containing + appInfo containing + // Wrong parameter name should trigger an error response. + app set to APP_NAME + ; + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.4.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_002" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 016, clause 5.1.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + Uri indicating value "mx2/v2/app_contexts", + // Invalid token should trigger an error response. + headers set to vHeadersInvalidToken, + body containing + AppContext containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.4.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_003" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 016, clause 5.1.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + Uri indicating value "mx2/v2/app_contexts", + body containing + AppContext containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.4.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_004" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + body containing + AppContext containing + // A parameter not legible for update should trigger an error response. + associateUeAppId indicating value some_value + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 017, clause 7.5.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_005" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}", + // Invalid token should trigger an error response. + headers set to vHeadersInvalidToken, + body containing + AppContext containing + callbackReference indicating value some_uri + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 017, clause 7.5.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_006" + + Test objective + "Check that the IUT responds with an error when + a non-authorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a PUT containing + Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + body containing + AppContext containing + callbackReference indicating value some_uri + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 017, clause 7.5.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_007" + + Test objective + "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 016 V2.1.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "mx2/v2/app_contexts/{UNKNOWN_CONTEXT_ID}", + body containing + AppContext containing + callbackReference indicating value some_uri + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 017, clause 7.5.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_008" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a iDELETE containing + Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.5.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_009" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.5.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_APPCTX_BI_010" + + Test objective + "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 016 V2.1.1, clause 7.5.3.5", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "mx2/v2/app_contexts/{UNKNOWN_CONTEXT_ID}" + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.5.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } } diff --git a/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 b/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 index 9ec8bcd..7e1be8d 100644 --- a/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 +++ b/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 @@ -72,4 +72,204 @@ Package sys_mx2_ue_applications { } } + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_UEAPPS_BI_001" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appInfo containing + appName indicating value APP_NAME + ; + } + + // MEC 016, clause 5.1.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "mx2/v2/app_list", + query_parameters containing + appName indicating value APP_NAME, + // Wrong name should trigger an error response. + serviceCont indicating value INVALID_VALUE + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_UEAPPS_BI_002" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appInfo containing + appName indicating value APP_NAME + ; + } + + // MEC 016, clause 5.1.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + Uri indicating value "mx2/v2/app_list", + // Invalid token should trigger an error response. + headers set to vHeadersInvalidToken, + query_parameters containing + appName indicating value APP_NAME + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_UEAPPS_BI_003" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appInfo containing + appName indicating value APP_NAME + ; + } + + // MEC 016, clause 5.1.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "mx2/v2/app_list", + query_parameters containing + appName indicating value APP_NAME + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SYS_MX2_UEAPPS_BI_004" + + Test objective + "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 016 V2.1.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appInfo containing + appName indicating value APP_NAME + ; + } + + // MEC 016, clause 5.1.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "mx2/v2/app_list", + query_parameters containing + // Wrong value should trigger an error response. + appName indicating value UNKNOWN_APP_NAME + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the UE_APP entity + } + } + } } -- GitLab From 3c8ce0e2dcd32dc2d02b9ee269b220f81e839939 Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Fri, 7 Jun 2019 18:00:55 +0100 Subject: [PATCH 10/13] Invalid token types and methods. --- .../Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 | 8 +-- .../Sys/Mx2/UeApps/SysUeApplications.tplan2 | 4 +- Test Purposes/mec-common.tplan2 | 50 ++++++++++--------- 3 files changed, 29 insertions(+), 33 deletions(-) diff --git a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 index 054f6cd..c24f61d 100644 --- a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 +++ b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 @@ -236,10 +236,8 @@ Package sys_mx2_ue_apps_context { Expected behaviour ensure that { when { - the IUT entity receives a HttpMsg containing + the IUT entity receives a iPOST containing Uri indicating value "mx2/v2/app_contexts", - // Invalid token should trigger an error response. - headers set to vHeadersInvalidToken, body containing AppContext containing appInfo containing @@ -396,10 +394,8 @@ Package sys_mx2_ue_apps_context { Expected behaviour ensure that { when { - the IUT entity receives a vPUT containing + the IUT entity receives a iPUT containing Uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}", - // Invalid token should trigger an error response. - headers set to vHeadersInvalidToken, body containing AppContext containing callbackReference indicating value some_uri diff --git a/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 b/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 index 7e1be8d..282af4f 100644 --- a/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 +++ b/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 @@ -149,10 +149,8 @@ Package sys_mx2_ue_applications { Expected behaviour ensure that { when { - the IUT entity receives a HttpMsg containing + the IUT entity receives a iGET containing Uri indicating value "mx2/v2/app_list", - // Invalid token should trigger an error response. - headers set to vHeadersInvalidToken, query_parameters containing appName indicating value APP_NAME ; diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 123145b..fe087cf 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -88,30 +88,6 @@ Package MEC_Common { STRING "application/json;charset=utf-8"; string CONTENT_JSON containing s set to "application/json;charset=utf-8"; - string HTTP_200_OK containing s set to "200 OK"; - STRING "200 OK"; - - STRING "201 CREATED"; - string HTTP_201_CREATED containing s set to "201 CREATED"; - - STRING "204 NO CONTENT"; - string HTTP_204_NO_CONTENT containing s set to "204 NO CONTENT"; - - STRING "400 BAD REQUEST"; - string HTTP_400_BAD_REQUEST containing s set to "400 BAD REQUEST"; - - STRING "401 UNAUTHORIZED"; - string HTTP_401_UNAUTHORIZED containing s set to "401 UNAUTHORIZED"; - - STRING "403 FORBIDDEN"; - string HTTP_403_FORBIDDEN containing s set to "403 FORBIDDEN"; - - STRING "404 NOT FOUND"; - string HTTP_404_NOT_FOUND containing s set to "404 NOT FOUND"; - - STRING "406 NOT ACCEPTABLE"; - string HTTP_406_NOT_ACCEPTABLE containing s set to "406 NOT ACCEPTABLE"; - STRING VALID_TOKEN; STRING NOT_VALID_TOKEN; @@ -163,7 +139,33 @@ Package MEC_Common { HttpMsg HTTP_RESPONSE containing headers set to vHeadersResponse ; + + HttpHeaders iHeadersGet containing + accept set to "application/json", + authorization set to NOT_VALID_TOKEN + ; + HttpHeaders iHeaders containing + accept set to CONTENT_JSON, + content_type set to CONTENT_JSON, + authorization set to NOT_VALID_TOKEN + ; + + HttpMsg iGET containing + headers set to iHeadersGet + ; + + HttpMsg iPOST containing + headers set to iHeaders + ; + + HttpMsg iPUT containing + headers set to iHeaders + ; + + HttpMsg iDELETE containing + headers set to iHeadersGet + ; } Configuration { -- GitLab From 9ade1f6f94479a5444a9333a85e5c109360b8c2c Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Fri, 7 Jun 2019 18:08:31 +0100 Subject: [PATCH 11/13] etag naming on PUT methods. --- Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 | 10 +++++----- Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 | 8 ++++---- .../Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 b/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 index 5bb571f..5740fec 100644 --- a/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 +++ b/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 @@ -213,7 +213,7 @@ Package plat_mp1_app_services { when { the IUT entity receives a vPUT containing Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - If_Match indicating value VALID_ETAG, + If_Match indicating value PROPER_ETAG, body containing version indicating value NEW_VERSION ; @@ -639,7 +639,7 @@ Package plat_mp1_app_services { a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" Config Id Config_MEC_1 @@ -662,7 +662,7 @@ Package plat_mp1_app_services { when { the IUT entity receives a vPUT containing Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - If_Match indicating value VALID_ETAG, + If_Match indicating value PROPER_ETAG, body containing // Wrong parameter name should trigger an error response. a_version indicating value NEW_VERSION @@ -717,7 +717,7 @@ Package plat_mp1_app_services { when { the IUT entity receives a PUT containing Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - If_Match indicating value VALID_ETAG, + If_Match indicating value PROPER_ETAG, body containing version indicating value NEW_VERSION ; @@ -771,7 +771,7 @@ Package plat_mp1_app_services { when { the IUT entity receives a vPUT containing Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{UNKNOWN_SERVICE_ID}", - If_Match indicating value VALID_ETAG, + If_Match indicating value PROPER_ETAG, body containing version indicating value NEW_VERSION ; diff --git a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 index 583ee3a..b6d73f7 100644 --- a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 +++ b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 @@ -148,7 +148,7 @@ Package plat_mp1_dns_rules { when { the IUT entity receives a vPUT containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", - If_Match indicating value VALID_ETAG + If_Match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, ipAddress indicating value SOME_IP_ADDRESS @@ -302,7 +302,7 @@ Package plat_mp1_dns_rules { when { the IUT entity receives a vPUT containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", - If_Match indicating value VALID_ETAG + If_Match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, // Unknown parameter value should trigger an error response. @@ -357,7 +357,7 @@ Package plat_mp1_dns_rules { when { the IUT entity receives a PUT containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", - If_Match indicating value VALID_ETAG + If_Match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, state indicating value STATE_VALUE @@ -411,7 +411,7 @@ Package plat_mp1_dns_rules { when { the IUT entity receives a vPUT containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{UNKNOWN_DNS_RULE_ID}", - If_Match indicating value VALID_ETAG + If_Match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, ipAddress indicating value SOME_IP_ADDRESS diff --git a/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 b/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 index 738cb39..20ccf63 100644 --- a/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 +++ b/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 @@ -146,7 +146,7 @@ Package plat_mp1_traffic_rules { when { the IUT entity receives a vPUT containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - If_Match indicating value VALID_ETAG + If_Match indicating value PROPER_ETAG body containing action indicating value "DROP" ; @@ -292,7 +292,7 @@ Package plat_mp1_traffic_rules { when { the IUT entity receives a vPUT containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - If_Match indicating value VALID_ETAG + If_Match indicating value PROPER_ETAG body containing // Invalid parameter value should trigger an error response. action indicating value "UNKNOWN_VALUE" @@ -346,7 +346,7 @@ Package plat_mp1_traffic_rules { when { the IUT entity receives a PUT containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - If_Match indicating value VALID_ETAG + If_Match indicating value PROPER_ETAG body containing action indicating value "DROP" ; @@ -399,7 +399,7 @@ Package plat_mp1_traffic_rules { when { the IUT entity receives a vPUT containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{UNKNOWN_TRAFFIC_RULE_ID}", - If_Match indicating value VALID_ETAG + If_Match indicating value PROPER_ETAG body containing action indicating value "DROP" ; -- GitLab From 664c9c167054c45bebf081802feb3e29283454e0 Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Fri, 7 Jun 2019 20:40:58 +0100 Subject: [PATCH 12/13] MEC 029 negative test cases. --- .../Plat/Mp1/DnsRules/PlatDnsRules.tplan2 | 3 +- .../Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 | 1546 +++++++++++++++++ .../Plat/Mp1/Timing/PlatTiming.tplan2 | 86 - 3 files changed, 1547 insertions(+), 88 deletions(-) diff --git a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 index b6d73f7..2190dad 100644 --- a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 +++ b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 @@ -276,8 +276,7 @@ Package plat_mp1_dns_rules { Test objective "Check that the IUT responds with an error when - non compliant data is sent for an update to a specific DNS rule - by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" diff --git a/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 b/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 index 3e2d5b1..fe60544 100644 --- a/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 +++ b/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 @@ -524,4 +524,1550 @@ Package plat_mp1_fixed_access_info{ } } + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_001" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/fa_info" + query_parameters containing + // Wrong parameter name should trigger an error response. + interface indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_002" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a iGET containing + Uri indicating value "/fai/v1/queries/fa_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_003" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/fai/v1/queries/fa_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_004" + + Test objective + "Check that the IUT responds with an error when + a request for non-existing data is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/fa_info" + query_parameters containing + interfaceType indicating value 1 + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.3.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_005" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/device_info" + query_parameters containing + // Wrong parameter name should trigger an error response. + device indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_006" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a iGET containing + Uri indicating value "/fai/v1/queries/device_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_007" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/fai/v1/queries/device_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_008" + + Test objective + "Check that the IUT responds with an error when + a request for non-existing data is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/device_info" + query_parameters containing + gwId indicating value UNKNOWN_VALUE + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.4.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_009" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/cable_line_info" + query_parameters containing + // Wrong parameter name should trigger an error response. + cm indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.5.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_010" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a iGET containing + Uri indicating value "/fai/v1/queries/cable_line_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.5.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_011" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/fai/v1/queries/cable_line_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.5.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_012" + + Test objective + "Check that the IUT responds with an error when + a request for non-existing data is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/cable_line_info" + query_parameters containing + cmId indicating value UNKNOWN_VALUE + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.5.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_013" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/optical_network_info" + query_parameters containing + // Wrong parameter name should trigger an error response. + onu indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.6.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_014" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a iGET containing + Uri indicating value "/fai/v1/queries/optical_network_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.6.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_015" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/fai/v1/queries/optical_network_info" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.6.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_016" + + Test objective + "Check that the IUT responds with an error when + a request for non-existing data is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/queries/optical_network_info" + query_parameters containing + onuId indicating value UNKNOWN_VALUE + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_017" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/subscriptions" + query_parameters containing + // Wrong parameter name should trigger an error response. + subscription indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_018" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a iGET containing + Uri indicating value "/fai/v1/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_019" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/fai/v1/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_020" + + Test objective + "Check that the IUT responds with an error when + a request for non-existing data is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/subscriptions" + query_parameters containing + subscription_type indicating value UNKNOWN_VALUE + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_021" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + Uri indicating value "fai/v1/subscriptions" + body containing + OnuAlarmSubscription containing + // Unknown value should trigger an error response. + subscriptionType indicating value UNKNOWN_SUSCRIPTION, + callbackReference indicating value CALLBACK_URL + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_022" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a iPOST containing + Uri indicating value "fai/v1/subscriptions" + body containing + OnuAlarmSubscription containing + subscriptionType indicating value "OnuAlarmSubscription", + callbackReference indicating value CALLBACK_URL + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_023" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + Uri indicating value "fai/v1/subscriptions" + body containing + OnuAlarmSubscription containing + subscriptionType indicating value "OnuAlarmSubscription", + callbackReference indicating value CALLBACK_URL + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.7.3.4 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_024" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a iGET containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_025" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_026" + + Test objective + "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 029 V2.0.7, clause 7.8.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + Uri indicating value "/fai/v1/subscriptions/{UNKNOWN_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.1 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_027" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.2" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", + body containing + OnuAlarmSubscription containing + // Wrong parameter name should trigger an error response. + subscription set to "OnuAlarmSubscription" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_028" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.2" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a iPUT containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_029" + + Test objective + "Check that the IUT responds with an error when + a non-authorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.2" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a PUT containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_030" + + Test objective + "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 029 V2.0.7, clause 7.8.3.2" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "/fai/v1/subscriptions/{UNKNOWN_SUBSCRIPTION_ID}", + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_031" + + Test objective + "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 029 V2.0.7, clause 7.8.3.2" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", + If_Match indicating value INVALID_ETAG, + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.2 + the IUT entity sends a HttpMsg containing + status_code set to "412 Precondition Failed" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_032" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a iDELETE containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "401 Unauthorized" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_033" + + Test objective + "Check that the IUT responds with an error when + a non-authenticated request is sent by a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + Uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "403 Forbidden" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_MP1_FAIS_BI_034" + + Test objective + "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 029 V2.0.7, clause 7.8.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 029, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + Uri indicating value "/fai/v1/subscriptions/{UNKNOWN_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 029, clause 7.8.3.5 + the IUT entity sends a HttpMsg containing + status_code set to "404 Not Found" + body containing + ProblemDetails containing + detail set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 b/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 index 37bf698..f6ac7f5 100644 --- a/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 +++ b/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 @@ -149,49 +149,6 @@ Package plat_mp1_timing { Test Purpose { TP Id "TP_MEC_PLAT_MP1_TIME_BI_002" - Test objective - "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.4, clause 7.7.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/timing/timing_caps/{ANY_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing - status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TIME_BI_003" - Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" @@ -230,47 +187,4 @@ Package plat_mp1_timing { } } } - - - Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TIME_BI_004" - - Test objective - "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.4, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/timing/current_time/{ANY_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.8.3.1 - the IUT entity sends a HttpMsg containing - status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; - ; - to the MEC_APP entity - } - } - } } -- GitLab From 95b7f643ba077c9d96c5c9ed5cda7a1f80a07cab Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Wed, 12 Jun 2019 14:59:49 +0100 Subject: [PATCH 13/13] Test renumbering according to TSS for MEC 032. --- .../Plat/Mp1/AppSAQ/PlatAppServices.tplan2 | 394 +++++++----------- .../Mp1/Bandwidth/PlatBandwidthManager.tplan2 | 262 ++++-------- .../Plat/Mp1/DnsRules/PlatDnsRules.tplan2 | 118 ++---- .../Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 | 370 +++++----------- .../Notifications/PlatNotifications.tplan2 | 296 ++++++------- .../RadioNode/PlatRadioNodeLocation.tplan2 | 6 +- .../Plat/Mp1/SAQ/PlatServices.tplan2 | 60 +-- .../Plat/Mp1/Timing/PlatTiming.tplan2 | 42 +- .../Mp1/TrafficRules/PlatTrafficRules.tplan2 | 130 +++--- .../Plat/Mp1/Transport/PlatTransport.tplan2 | 20 +- .../PlatUeAreaSubscription.tplan2 | 14 +- .../PlatUeDistanceLookup.tplan2 | 6 +- .../PlatUeDistanceSubscription.tplan2 | 13 +- .../Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 | 112 ++--- .../PlatUeInformationLookup.tplan2 | 6 +- .../PlatUeInformationSubscription.tplan2 | 13 +- .../PlatUeLocationLookup.tplan2 | 6 +- .../PlatUeLocationSubscription.tplan2 | 13 +- .../PlatUeTrackingSubscription.tplan2 | 14 +- .../Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 | 143 ++----- .../Sys/Mx2/UeApps/SysUeApplications.tplan2 | 52 +-- 21 files changed, 729 insertions(+), 1361 deletions(-) diff --git a/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 b/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 index 5740fec..5b72f13 100644 --- a/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 +++ b/Test Purposes/Plat/Mp1/AppSAQ/PlatAppServices.tplan2 @@ -12,27 +12,27 @@ associated with this file for which ETSI keeps all rights reserved. The present copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ - -Package plat_mp1_app_services { - + +Package plat_app_services { + import all from MEC_Common; - + /* * Application Service Availability Query (APPSAQ) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BV_001" - - Test objective - "Check that the IUT responds with a list of available MEC services + TP Id "TP_MEC_PLAT_APPSAQ_001_OK" + + Test objective + "Check that the IUT responds with a list of available MEC services for a given application instance when queried by a MEC Application" - + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -47,13 +47,13 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services" + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" ; from the MEC_APP entity } then { // MEC 011, clause 7.15.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing ServiceInfoList containing @@ -68,17 +68,17 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BV_002" - - Test objective - "Check that the IUT notifies the authorised relevant (subscribed) application + TP Id "TP_MEC_PLAT_APPSAQ_002_OK" + + Test objective + "Check that the IUT notifies the authorised relevant (subscribed) application 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", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS Initial conditions with { @@ -95,7 +95,7 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vPOST containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services", + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", body containing serName indicating value SERVICE_NAME ; @@ -104,7 +104,7 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.15.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location set to LOCATION, body containing @@ -134,17 +134,17 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BV_003" - - Test objective - "Check that the IUT responds with the information on a specific service + TP Id "TP_MEC_PLAT_APPSAQ_003_OK" + + Test objective + "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.8, clause 7.14.3.1", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -152,7 +152,7 @@ Package plat_mp1_app_services { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a services_running containing + the IUT entity having a services_running containing service_id indicating value SERVICE_ID ; } @@ -162,13 +162,13 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.14.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing ServiceInfo containing @@ -183,18 +183,18 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BV_004" - - Test objective - "Check that the IUT updates a service information for a given + TP Id "TP_MEC_PLAT_APPSAQ_004_OK" + + Test objective + "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.8, clause 7.14.3.2", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -202,7 +202,7 @@ Package plat_mp1_app_services { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a services_running containing + the IUT entity having a services_running containing service_id indicating value SERVICE_ID ; } @@ -212,8 +212,8 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - If_Match indicating value PROPER_ETAG, + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + If_Match indicating value PROPER_ETAG, body containing version indicating value NEW_VERSION ; @@ -222,7 +222,7 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.14.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing ServiceInfo containing @@ -234,20 +234,19 @@ Package plat_mp1_app_services { } } } - + Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_001" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_001_BR" + + Test objective "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.8, clause 7.15.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -262,23 +261,18 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services" + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" query_parameters containing // Wrong parameter name should trigger an error response. instance_id indicating value any_value - ; + ; ; from the MEC_APP entity } then { // MEC 011, clause 7.15.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -287,17 +281,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_002" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_002_BI" + + Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -312,19 +305,14 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services" + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" ; from the MEC_APP entity } then { // MEC 011, clause 7.15.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -333,24 +321,23 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_003" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_003_NF" + + Test objective "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI + a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } @@ -359,19 +346,14 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/services" + Uri indicating value "/mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/services" ; from the MEC_APP entity } then { // MEC 011, clause 7.15.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -380,17 +362,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_004" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_004_BR" + + Test objective "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.8, clause 7.15.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS Initial conditions with { @@ -407,7 +388,7 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vPOST containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services", + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", body containing // Wrong parameter name should trigger an error response. Name indicating value SERVICE_NAME @@ -417,13 +398,8 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.15.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP_Registrant entity } @@ -432,17 +408,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_005" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_005_BI" + + Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS Initial conditions with { @@ -459,7 +434,7 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a POST containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services", + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", body containing serName indicating value SERVICE_NAME ; @@ -468,13 +443,8 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.15.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP_Registrant entity } @@ -483,23 +453,22 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_006" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_006_NF" + + Test objective "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.8, clause 7.15.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; and the MEC_APP_Registrant entity being_in idle_state and the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A @@ -510,7 +479,7 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vPOST containing - Uri indicating value "/mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/services", + Uri indicating value "/mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/services", body containing serName indicating value SERVICE_NAME ; @@ -519,13 +488,8 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.15.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP_Registrant entity } @@ -534,17 +498,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_007" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_007_BI" + + Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1" Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -552,7 +515,7 @@ Package plat_mp1_app_services { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a services_running containing + the IUT entity having a services_running containing service_id indicating value SERVICE_ID ; } @@ -562,19 +525,14 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.14.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -583,17 +541,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_008" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_008_NF" + + Test objective "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.8, clause 7.14.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1" Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -601,8 +558,8 @@ Package plat_mp1_app_services { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID + the IUT entity "not" having a services_running containing + service_id indicating value NON_EXISTENT_SERVICE_ID ; } @@ -611,19 +568,14 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{UNKNOWN_SERVICE_ID}" + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.14.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -632,18 +584,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_009" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_009_BR" + + Test objective "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.8, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -651,7 +601,7 @@ Package plat_mp1_app_services { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a services_running containing + the IUT entity having a services_running containing service_id indicating value SERVICE_ID ; } @@ -661,8 +611,8 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - If_Match indicating value PROPER_ETAG, + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + If_Match indicating value PROPER_ETAG, body containing // Wrong parameter name should trigger an error response. a_version indicating value NEW_VERSION @@ -672,13 +622,8 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.14.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -687,18 +632,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_010" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_010_BI" + + Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -706,7 +649,7 @@ Package plat_mp1_app_services { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a services_running containing + the IUT entity having a services_running containing service_id indicating value SERVICE_ID ; } @@ -716,8 +659,8 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a PUT containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - If_Match indicating value PROPER_ETAG, + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + If_Match indicating value PROPER_ETAG, body containing version indicating value NEW_VERSION ; @@ -726,13 +669,8 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.14.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -741,18 +679,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_011" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_011_NF" + + Test objective "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.8, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -760,8 +696,8 @@ Package plat_mp1_app_services { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID + the IUT entity "not" having a services_running containing + service_id indicating value NON_EXISTENT_SERVICE_ID ; } @@ -770,8 +706,8 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{UNKNOWN_SERVICE_ID}", - If_Match indicating value PROPER_ETAG, + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}", + If_Match indicating value PROPER_ETAG, body containing version indicating value NEW_VERSION ; @@ -780,13 +716,8 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.14.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -795,18 +726,16 @@ Package plat_mp1_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_APPSAQ_BI_012" - - Test objective + TP Id "TP_MEC_PLAT_APPSAQ_012_PF" + + Test objective "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.8, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -814,7 +743,7 @@ Package plat_mp1_app_services { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a services_running containing + the IUT entity having a services_running containing service_id indicating value SERVICE_ID ; } @@ -824,8 +753,8 @@ Package plat_mp1_app_services { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "/mp1/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - If_Match indicating value INVALID_ETAG, + Uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + If_Match indicating value INVALID_ETAG, body containing version indicating value NEW_VERSION ; @@ -834,13 +763,8 @@ Package plat_mp1_app_services { } then { // MEC 011, clause 7.14.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 b/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 index 18769a1..dfe235a 100644 --- a/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 +++ b/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_bandwidth_manager { +Package plat_bandwidth_manager { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_mp1_bandwidth_manager { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BV_001" + TP Id "TP_MEC_PLAT_BWA_001_OK" Test objective "Check that the IUT responds with the list of configured bandwidth allocations @@ -57,7 +57,7 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing bwInfo containing @@ -72,7 +72,7 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BV_002" + TP Id "TP_MEC_PLAT_BWA_002_OK" Test objective "Check that the IUT responds with a registration and initialisation approval @@ -108,7 +108,7 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.4.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK", Location set to LOCATION, body containing @@ -126,7 +126,7 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BV_003" + TP Id "TP_MEC_PLAT_BWA_003_OK" Test objective "Check that the IUT responds with the configured bandwidth allocation @@ -160,7 +160,7 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing bwInfo containing @@ -175,7 +175,7 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BV_004" + TP Id "TP_MEC_PLAT_BWA_004_OK" Test objective "Check that the IUT updates the requested bandwidth requirements @@ -204,7 +204,7 @@ Package plat_mp1_bandwidth_manager { when { the IUT entity receives a vPUT containing Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - If_Match indicating value PROPER_ETAG, + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -215,7 +215,7 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing bwInfo containing @@ -232,7 +232,7 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BV_005" + TP Id "TP_MEC_PLAT_BWA_005_OK" Test objective "Check that the IUT when provided with just the changes (deltas) @@ -262,7 +262,7 @@ Package plat_mp1_bandwidth_manager { when { the IUT entity receives a vPATCH containing Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - If_Match indicating value PROPER_ETAG, + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -273,7 +273,7 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.3 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing bwInfo containing @@ -290,7 +290,7 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BV_006" + TP Id "TP_MEC_PLAT_BWA_006_OK" Test objective "Check that the IUT unregisters from the Bandwidth Management Service @@ -320,7 +320,7 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the MEC_APP entity @@ -330,14 +330,13 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_001" + TP Id "TP_MEC_PLAT_BWA_001_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1" Config Id Config_MEC_1 @@ -365,13 +364,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -380,14 +374,13 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_002" + TP Id "TP_MEC_PLAT_BWA_002_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1" Config Id Config_MEC_1 @@ -414,13 +407,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -429,15 +417,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_003" + TP Id "TP_MEC_PLAT_BWA_003_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" Config Id Config_MEC_1 @@ -466,13 +453,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.4.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -481,15 +463,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_004" + TP Id "TP_MEC_PLAT_BWA_004_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" Config Id Config_MEC_1 @@ -518,13 +499,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.4.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -533,14 +509,13 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_005" + TP Id "TP_MEC_PLAT_BWA_005_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1" Config Id Config_MEC_1 @@ -567,13 +542,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -582,14 +552,13 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_006" + TP Id "TP_MEC_PLAT_BWA_006_NF" Test objective "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 015 V1.1.1, clause 8.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1" Config Id Config_MEC_1 @@ -600,8 +569,8 @@ Package plat_mp1_bandwidth_manager { the MEC_APP entity having a app_instance containing appInsId indicating value APP_INSTANCE_ID ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID + the MEC_APP entity "not" having a allocation_instance containing + allocationId indicating value NON_EXISTENT_ALLOCATION_ID ; } @@ -610,19 +579,14 @@ Package plat_mp1_bandwidth_manager { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "bwm/v1/bw_allocations/{UNKNOWN_ALLOCATION_ID}" + Uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}" ; from the MEC_APP entity } then { // MEC 015, clause 8.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -631,15 +595,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_007" + TP Id "TP_MEC_PLAT_BWA_007_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" Config Id Config_MEC_1 @@ -661,7 +624,7 @@ Package plat_mp1_bandwidth_manager { when { the IUT entity receives a vPUT containing Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - If_Match indicating value PROPER_ETAG, + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -672,13 +635,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -687,15 +645,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_008" + TP Id "TP_MEC_PLAT_BWA_008_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" Config Id Config_MEC_1 @@ -717,7 +674,7 @@ Package plat_mp1_bandwidth_manager { when { the IUT entity receives a PUT containing Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - If_Match indicating value PROPER_ETAG, + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -728,13 +685,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -743,15 +695,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_009" + TP Id "TP_MEC_PLAT_BWA_009_NF" Test objective "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 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" Config Id Config_MEC_1 @@ -762,8 +713,8 @@ Package plat_mp1_bandwidth_manager { the MEC_APP entity having a app_instance containing appInsId indicating value APP_INSTANCE_ID ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID + the MEC_APP entity "not" having a allocation_instance containing + allocationId indicating value NON_EXISTENT_ALLOCATION_ID ; } @@ -772,8 +723,8 @@ Package plat_mp1_bandwidth_manager { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "bwm/v1/bw_allocations/{UNKNOWN_ALLOCATION_ID}", - If_Match indicating value PROPER_ETAG, + Uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -784,13 +735,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -799,15 +745,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_010" + TP Id "TP_MEC_PLAT_BWA_010_PF" Test objective "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 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" Config Id Config_MEC_1 @@ -829,7 +774,7 @@ Package plat_mp1_bandwidth_manager { when { the IUT entity receives a vPUT containing Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - If_Match indicating value INVALID_ETAG, + If_Match indicating value INVALID_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -840,13 +785,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -855,15 +795,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_011" + TP Id "TP_MEC_PLAT_BWA_011_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" Config Id Config_MEC_1 @@ -885,7 +824,7 @@ Package plat_mp1_bandwidth_manager { when { the IUT entity receives a vPATCH containing Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - If_Match indicating value PROPER_ETAG, + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, requestType indicating value INVALID_TYPE, @@ -897,13 +836,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.3 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -912,15 +846,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_012" + TP Id "TP_MEC_PLAT_BWA_012_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" Config Id Config_MEC_1 @@ -942,7 +875,7 @@ Package plat_mp1_bandwidth_manager { when { the IUT entity receives a PATCH containing Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - If_Match indicating value PROPER_ETAG, + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -953,13 +886,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.3 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -968,15 +896,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_013" + TP Id "TP_MEC_PLAT_BWA_013_NF" Test objective "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 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" Config Id Config_MEC_1 @@ -987,8 +914,8 @@ Package plat_mp1_bandwidth_manager { the MEC_APP entity having a app_instance containing appInsId indicating value APP_INSTANCE_ID ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID + the MEC_APP entity "not" having a allocation_instance containing + allocationId indicating value NON_EXISTENT_ALLOCATION_ID ; } @@ -997,8 +924,8 @@ Package plat_mp1_bandwidth_manager { ensure that { when { the IUT entity receives a vPATCH containing - Uri indicating value "bwm/v1/bw_allocations/{UNKNOWN_ALLOCATION_ID}", - If_Match indicating value PROPER_ETAG, + Uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}", + If_Match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -1009,13 +936,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.3 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1024,15 +946,14 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BI_014" + TP Id "TP_MEC_PLAT_BWA_014_PF" Test objective "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 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" Config Id Config_MEC_1 @@ -1054,7 +975,7 @@ Package plat_mp1_bandwidth_manager { when { the IUT entity receives a vPATCH containing Uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - If_Match indicating value INVALID_ETAG, + If_Match indicating value INVALID_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, @@ -1065,13 +986,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.3 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1080,14 +996,13 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BV_015" + TP Id "TP_MEC_PLAT_BWA_015_OK" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5" Config Id Config_MEC_1 @@ -1111,13 +1026,8 @@ Package plat_mp1_bandwidth_manager { } then { // MEC 015, clause 8.3.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1126,14 +1036,13 @@ Package plat_mp1_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_BWA_BV_016" + TP Id "TP_MEC_PLAT_BWA_016_NF" Test objective "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 015 V1.1.1, clause 8.3.3.5", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5" Config Id Config_MEC_1 @@ -1141,8 +1050,8 @@ Package plat_mp1_bandwidth_manager { Initial conditions with { the IUT entity being_in idle_state and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID + the MEC_APP entity "not" having a allocation_instance containing + allocationId indicating value NON_EXISTENT_ALLOCATION_ID ; } @@ -1151,19 +1060,14 @@ Package plat_mp1_bandwidth_manager { ensure that { when { the IUT entity receives a vDELETE containing - Uri indicating value "bwm/v1/bw_allocations/{UNKNOWN_ALLOCATION_ID}" + Uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}" ; from the MEC_APP entity } then { // MEC 015, clause 8.3.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 index 2190dad..274b43c 100644 --- a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 +++ b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_dns_rules { +Package plat_dns_rules { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_mp1_dns_rules { * DNS rules (DNS) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BV_001" + TP Id "TP_MEC_PLAT_DNS_001_OK" Test objective "Check that the IUT responds with a list of active DNS rules @@ -47,13 +47,13 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules" ; from the MEC_APP entity } then { // MEC 011, clause 7.12.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing DnsRuleList containing @@ -68,7 +68,7 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BV_002" + TP Id "TP_MEC_PLAT_DNS_002_OK" Test objective "Check that the IUT responds with the information on a specific DNS rule @@ -96,19 +96,17 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.13.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - DnsRuleList containing - DnsRule containing - dnsRuleId set to DNS_RULE_ID - ; + DnsRule containing + dnsRuleId set to DNS_RULE_ID ; ; ; @@ -119,7 +117,7 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BV_003" + TP Id "TP_MEC_PLAT_DNS_003_OK" Test objective "Check that the IUT updates a specific DNS rule @@ -147,7 +145,7 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", If_Match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, @@ -158,7 +156,7 @@ Package plat_mp1_dns_rules { } then { // MEC 011, clause 7.13.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing DnsRule containing @@ -174,14 +172,13 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BI_001" + TP Id "TP_MEC_PLAT_DNS_001_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.1" Config Id Config_MEC_1 @@ -202,19 +199,14 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.13.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -223,14 +215,13 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BI_002" + TP Id "TP_MEC_PLAT_DNS_002_NF" Test objective "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.4, clause 7.13.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.1" Config Id Config_MEC_1 @@ -241,8 +232,8 @@ Package plat_mp1_dns_rules { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a dns_rules containing - rule_id indicating value DNS_RULE_ID + the IUT entity "not" having a dns_rules containing + rule_id indicating value NON_EXISTENT_DNS_RULE_ID ; } @@ -251,19 +242,14 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{UNKNOWN_DNS_RULE_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{NON_EXISTENT_DNS_RULE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.13.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -272,14 +258,13 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BI_003" + TP Id "TP_MEC_PLAT_DNS_003_BR" Test objective "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.4, clause 7.13.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2" Config Id Config_MEC_1 @@ -300,7 +285,7 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", If_Match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, @@ -312,13 +297,8 @@ Package plat_mp1_dns_rules { } then { // MEC 011, clause 7.13.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -327,14 +307,13 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BI_004" + TP Id "TP_MEC_PLAT_DNS_004_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2" Config Id Config_MEC_1 @@ -355,7 +334,7 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a PUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", If_Match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, @@ -366,13 +345,8 @@ Package plat_mp1_dns_rules { } then { // MEC 011, clause 7.13.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -381,14 +355,13 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BI_005" + TP Id "TP_MEC_PLAT_DNS_005_NF" Test objective "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.4, clause 7.13.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2" Config Id Config_MEC_1 @@ -399,8 +372,8 @@ Package plat_mp1_dns_rules { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a dns_rules containing - rule_id indicating value DNS_RULE_ID + the IUT entity "not" having a dns_rules containing + rule_id indicating value NON_EXISTENT_DNS_RULE_ID ; } @@ -409,7 +382,7 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{UNKNOWN_DNS_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{NON_EXISTENT_DNS_RULE_ID}", If_Match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, @@ -420,13 +393,8 @@ Package plat_mp1_dns_rules { } then { // MEC 011, clause 7.13.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -435,14 +403,13 @@ Package plat_mp1_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DNS_BI_006" + TP Id "TP_MEC_PLAT_DNS_006_PF" Test objective "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.4, clause 7.13.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2" Config Id Config_MEC_1 @@ -463,7 +430,7 @@ Package plat_mp1_dns_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", If_Match indicating value INVALID_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, @@ -474,13 +441,8 @@ Package plat_mp1_dns_rules { } then { // MEC 011, clause 7.13.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 b/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 index fe60544..9e9d576 100644 --- a/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 +++ b/Test Purposes/Plat/Mp1/FAIS/PlatFixedAcessInfo.tplan2 @@ -22,7 +22,7 @@ Package plat_mp1_fixed_access_info{ * Fixed Access Information Service (FAIS) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_001" + TP Id "TP_MEC_PLAT_FAIS_001_OK" Test objective "Check that the IUT responds with the current status of the fixed access information @@ -49,7 +49,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing FaInfo set to any_value @@ -62,7 +62,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_002" + TP Id "TP_MEC_PLAT_FAIS_002_OK" Test objective "Check that the IUT responds with the current status of the device information @@ -89,7 +89,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing DeviceInfo set to any_value @@ -102,7 +102,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_003" + TP Id "TP_MEC_PLAT_FAIS_003_OK" Test objective "Check that the IUT responds with the current status of the cable line information @@ -129,7 +129,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.5.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing CableLineInfo set to any_value @@ -142,7 +142,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_004" + TP Id "TP_MEC_PLAT_FAIS_004_OK" Test objective "Check that the IUT responds with the current status of the optical network information @@ -169,7 +169,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.6.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing PonInfo set to any_value @@ -182,7 +182,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_005" + TP Id "TP_MEC_PLAT_FAIS_005_OK" Test objective "Check that the IUT responds with the subscriptions for fixed access information notifications @@ -209,7 +209,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing SubscriptionLinkList set to any_value @@ -222,7 +222,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_006" + TP Id "TP_MEC_PLAT_FAIS_006_OK" Test objective "Check that the IUT acknowledges the subscription by a MEC Application @@ -255,7 +255,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location set to LOCATION, body containing @@ -265,12 +265,10 @@ Package plat_mp1_fixed_access_info{ ; ; to the MEC_APP entity - - // TODO: do we have the notification as a separate test? If so, do we have initial conditions - // set to OnuAlarmSubscription above? how? how do we check the proper call to CALLBACK_URL? and // MEC 029, clause 7.7.3.4 the IUT entity sends a vPOST containing + Uri indicating value CALLBACK_URL body containing OnuAlarmNotification containing notificationType set to "OnuAlarmSubscription" @@ -284,7 +282,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_007" + TP Id "TP_MEC_PLAT_FAIS_007_OK" Test objective "Check that the IUT responds with the information on a given subscription @@ -314,7 +312,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing OnuAlarmSubscription containing @@ -329,7 +327,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_008" + TP Id "TP_MEC_PLAT_FAIS_008_OK" Test objective "Check that the IUT updates an existing subscription @@ -365,7 +363,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing OnuAlarmSubscription containing @@ -380,7 +378,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_009" + TP Id "TP_MEC_PLAT_FAIS_009_OK" Test objective "Check that the IUT cancels an existing subscription @@ -410,7 +408,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the MEC_APP entity @@ -420,7 +418,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_010" + TP Id "TP_MEC_PLAT_FAIS_010_OK" Test objective "Check that the IUT sends notification on expiry of Fixed Access Information event subscription @@ -454,7 +452,7 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location set to LOCATION, body containing @@ -483,7 +481,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BV_011" + TP Id "TP_MEC_PLAT_FAIS_011_OK" Test objective "Check that the IUT sends notifications on Fixed Access Information events @@ -507,7 +505,7 @@ Package plat_mp1_fixed_access_info{ Expected behaviour ensure that { when { - // TODO: what's the trigger here? + the IUT entity generates a onu_alarm_event } then { // // MEC 029, clause 5.2.7 @@ -526,7 +524,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_001" + TP Id "TP_MEC_PLAT_FAIS_001_BR" Test objective "Check that the IUT responds with an error when @@ -557,13 +555,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -572,7 +565,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_002" + TP Id "TP_MEC_PLAT_FAIS_002_BI" Test objective "Check that the IUT responds with an error when @@ -599,13 +592,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -614,7 +602,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_003" + TP Id "TP_MEC_PLAT_FAIS_003_BI" Test objective "Check that the IUT responds with an error when @@ -641,13 +629,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -656,7 +639,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_004" + TP Id "TP_MEC_PLAT_FAIS_004_NF" Test objective "Check that the IUT responds with an error when @@ -686,13 +669,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -701,7 +679,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_005" + TP Id "TP_MEC_PLAT_FAIS_005_BR" Test objective "Check that the IUT responds with an error when @@ -732,13 +710,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -747,7 +720,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_006" + TP Id "TP_MEC_PLAT_FAIS_006_BI" Test objective "Check that the IUT responds with an error when @@ -774,13 +747,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -789,7 +757,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_007" + TP Id "TP_MEC_PLAT_FAIS_007_BI" Test objective "Check that the IUT responds with an error when @@ -816,13 +784,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -831,7 +794,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_008" + TP Id "TP_MEC_PLAT_FAIS_008_NF" Test objective "Check that the IUT responds with an error when @@ -861,13 +824,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -876,7 +834,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_009" + TP Id "TP_MEC_PLAT_FAIS_009_BR" Test objective "Check that the IUT responds with an error when @@ -907,13 +865,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.5.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -922,7 +875,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_010" + TP Id "TP_MEC_PLAT_FAIS_010_BI" Test objective "Check that the IUT responds with an error when @@ -949,13 +902,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.5.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -964,7 +912,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_011" + TP Id "TP_MEC_PLAT_FAIS_011_BI" Test objective "Check that the IUT responds with an error when @@ -991,13 +939,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.5.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1006,7 +949,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_012" + TP Id "TP_MEC_PLAT_FAIS_012_NF" Test objective "Check that the IUT responds with an error when @@ -1036,13 +979,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.5.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1051,7 +989,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_013" + TP Id "TP_MEC_PLAT_FAIS_013_BR" Test objective "Check that the IUT responds with an error when @@ -1082,13 +1020,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.6.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1097,7 +1030,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_014" + TP Id "TP_MEC_PLAT_FAIS_014_BI" Test objective "Check that the IUT responds with an error when @@ -1124,13 +1057,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.6.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1139,7 +1067,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_015" + TP Id "TP_MEC_PLAT_FAIS_015_BI" Test objective "Check that the IUT responds with an error when @@ -1166,13 +1094,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.6.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1181,7 +1104,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_016" + TP Id "TP_MEC_PLAT_FAIS_016_NF" Test objective "Check that the IUT responds with an error when @@ -1211,13 +1134,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1226,7 +1144,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_017" + TP Id "TP_MEC_PLAT_FAIS_017_BR" Test objective "Check that the IUT responds with an error when @@ -1257,13 +1175,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1272,7 +1185,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_018" + TP Id "TP_MEC_PLAT_FAIS_018_BI" Test objective "Check that the IUT responds with an error when @@ -1299,13 +1212,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1314,7 +1222,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_019" + TP Id "TP_MEC_PLAT_FAIS_019_BI" Test objective "Check that the IUT responds with an error when @@ -1341,13 +1249,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1356,7 +1259,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_020" + TP Id "TP_MEC_PLAT_FAIS_020_NF" Test objective "Check that the IUT responds with an error when @@ -1386,13 +1289,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1401,7 +1299,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_021" + TP Id "TP_MEC_PLAT_FAIS_021_BR" Test objective "Check that the IUT responds with an error when @@ -1435,13 +1333,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1450,7 +1343,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_022" + TP Id "TP_MEC_PLAT_FAIS_022_BI" Test objective "Check that the IUT responds with an error when @@ -1483,13 +1376,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1498,7 +1386,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_023" + TP Id "TP_MEC_PLAT_FAIS_023_BI" Test objective "Check that the IUT responds with an error when @@ -1531,13 +1419,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.7.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1546,7 +1429,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_024" + TP Id "TP_MEC_PLAT_FAIS_024_BI" Test objective "Check that the IUT responds with an error when @@ -1576,13 +1459,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1591,7 +1469,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_025" + TP Id "TP_MEC_PLAT_FAIS_025_BI" Test objective "Check that the IUT responds with an error when @@ -1621,13 +1499,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1636,7 +1509,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_026" + TP Id "TP_MEC_PLAT_FAIS_026_NF" Test objective "Check that the IUT responds with an error when @@ -1651,7 +1524,7 @@ Package plat_mp1_fixed_access_info{ Initial conditions with { the IUT entity being_in idle_state and the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID + subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -1660,19 +1533,14 @@ Package plat_mp1_fixed_access_info{ ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/fai/v1/subscriptions/{UNKNOWN_SUBSCRIPTION_ID}" + Uri indicating value "/fai/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 029, clause 7.8.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1681,7 +1549,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_027" + TP Id "TP_MEC_PLAT_FAIS_027_BR" Test objective "Check that the IUT responds with an error when @@ -1718,13 +1586,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1733,7 +1596,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_028" + TP Id "TP_MEC_PLAT_FAIS_028_BI" Test objective "Check that the IUT responds with an error when @@ -1769,13 +1632,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1784,7 +1642,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_029" + TP Id "TP_MEC_PLAT_FAIS_029_BI" Test objective "Check that the IUT responds with an error when @@ -1820,13 +1678,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1835,7 +1688,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_030" + TP Id "TP_MEC_PLAT_FAIS_030_NF" Test objective "Check that the IUT responds with an error when @@ -1850,8 +1703,8 @@ Package plat_mp1_fixed_access_info{ Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID + the IUT entity "not" having a subscriptions containing + subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -1860,7 +1713,7 @@ Package plat_mp1_fixed_access_info{ ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "/fai/v1/subscriptions/{UNKNOWN_SUBSCRIPTION_ID}", + Uri indicating value "/fai/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}", body containing OnuAlarmSubscription containing subscriptionType set to "OnuAlarmSubscription" @@ -1871,13 +1724,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1886,7 +1734,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_031" + TP Id "TP_MEC_PLAT_FAIS_031_PF" Test objective "Check that the IUT responds with an error when @@ -1923,13 +1771,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1938,7 +1781,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_032" + TP Id "TP_MEC_PLAT_FAIS_032_BI" Test objective "Check that the IUT responds with an error when @@ -1968,13 +1811,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -1983,7 +1821,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_033" + TP Id "TP_MEC_PLAT_FAIS_033_BI" Test objective "Check that the IUT responds with an error when @@ -2013,13 +1851,8 @@ Package plat_mp1_fixed_access_info{ } then { // MEC 029, clause 7.8.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -2028,7 +1861,7 @@ Package plat_mp1_fixed_access_info{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_FAIS_BI_034" + TP Id "TP_MEC_PLAT_FAIS_034_NF" Test objective "Check that the IUT responds with an error when @@ -2042,8 +1875,8 @@ Package plat_mp1_fixed_access_info{ Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID + the IUT entity "not" having a subscriptions containing + subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -2052,19 +1885,14 @@ Package plat_mp1_fixed_access_info{ ensure that { when { the IUT entity receives a vDELETE containing - Uri indicating value "/fai/v1/subscriptions/{UNKNOWN_SUBSCRIPTION_ID}" + Uri indicating value "/fai/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 029, clause 7.8.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 b/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 index 5fa2444..1ef75c0 100644 --- a/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 +++ b/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 @@ -12,27 +12,27 @@ associated with this file for which ETSI keeps all rights reserved. The present copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ - -Package plat_mp1_notifications { - + +Package plat_notifications { + import all from MEC_Common; - + /* * Notifications (NTF) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BV_001" - - Test objective - "Check that the IUT responds with a list of subscriptions for notifications + TP Id "TP_MEC_PLAT_NTF_001_OK" + + Test objective + "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.4, clause 7.6.3.1", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/Mp1SubscriptionLinkList" - + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { @@ -47,16 +47,16 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" ; from the MEC_APP entity } then { // MEC 011, clause 7.6.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - Mp1SubscriptionLinkList set to any_value + SubscriptionLinkList set to any_value ; ; to the MEC_APP entity @@ -66,17 +66,17 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BV_002" - - Test objective + TP Id "TP_MEC_PLAT_NTF_002_OK" + + Test objective "Check that the IUT acknowledges the subscription by a MEC Application to notifications on service availability events" - + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -91,21 +91,23 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a vPOST containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" body containing - subscriptionType indicating value "SerAvailabilityNotificationSubscription", - callbackReference indicating value some_uri + AppTerminationNotificationSubscription containing + subscriptionType indicating value "SerAvailabilityNotificationSubscription", + callbackReference indicating value some_uri + ; ; ; from the MEC_APP entity } then { // MEC 011, clause 7.6.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location set to LOCATION, body containing - SerAvailabilityNotificationSubscription containing + SerAvailabilityNotificationSubscription containing subscriptionType set to "SerAvailabilityNotificationSubscription", callbackReference set to some_uri ; @@ -118,17 +120,17 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BV_003" - - Test objective - "Check that the IUT responds with the information on a specific subscription + TP Id "TP_MEC_PLAT_NTF_003_OK" + + Test objective + "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.4, clause 7.5.3.1", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { @@ -146,16 +148,16 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.5.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - SerAvailabilityNotificationSubscription containing + SerAvailabilityNotificationSubscription containing subscriptionType set to "SerAvailabilityNotificationSubscription" ; ; @@ -167,16 +169,16 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BV_004" - - Test objective + TP Id "TP_MEC_PLAT_NTF_004_OK" + + Test objective "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.4, clause 7.5.3.5" - + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { @@ -194,13 +196,13 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a vDELETE containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.5.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the MEC_APP entity @@ -210,17 +212,16 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BI_001" - - Test objective + TP Id "TP_MEC_PLAT_NTF_001_BI" + + Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.1" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { @@ -235,19 +236,14 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" ; from the MEC_APP entity } then { // MEC 011, clause 7.6.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -255,23 +251,22 @@ Package plat_mp1_notifications { } Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BI_002" - - Test objective + TP Id "TP_MEC_PLAT_NTF_002_NF" + + Test objective "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.4, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.1" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } @@ -280,19 +275,14 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/subscriptions" + Uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions" ; from the MEC_APP entity } then { // MEC 011, clause 7.6.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -301,17 +291,16 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BI_003" - - Test objective + TP Id "TP_MEC_PLAT_NTF_003_BR" + + Test objective "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.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -326,7 +315,7 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a vPOST containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" body containing // Unknown value should trigger an error response. subscriptionType indicating value INVALID_SUBSCRIPTION, @@ -337,13 +326,8 @@ Package plat_mp1_notifications { } then { // MEC 011, clause 7.6.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -352,18 +336,17 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BI_004" - - Test objective + TP Id "TP_MEC_PLAT_NTF_004_BI" + + Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { @@ -378,7 +361,7 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a POST containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" body containing subscriptionType indicating value "SerAvailabilityNotificationSubscription", callbackReference indicating value some_uri @@ -388,13 +371,8 @@ Package plat_mp1_notifications { } then { // MEC 011, clause 7.6.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -403,17 +381,16 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BI_005" - - Test objective + TP Id "TP_MEC_PLAT_NTF_005_BI" + + Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { @@ -431,19 +408,14 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.5.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -452,18 +424,17 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BI_006" - - Test objective + TP Id "TP_MEC_PLAT_NTF_006_NF" + + Test objective "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI + a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { @@ -471,8 +442,8 @@ Package plat_mp1_notifications { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID + the IUT entity "not" having a subscriptions containing + subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -481,19 +452,14 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions/{UNKNOWN_SUBSCRIPTION_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.5.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -502,17 +468,16 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BI_007" - - Test objective + TP Id "TP_MEC_PLAT_NTF_007_BI" + + Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { @@ -530,19 +495,14 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a DELETE containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.5.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -551,24 +511,23 @@ Package plat_mp1_notifications { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_NTF_BI_008" - - Test objective + TP Id "TP_MEC_PLAT_NTF_008_NF" + + Test objective "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI + a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" - + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; and the IUT entity having a subscriptions containing subscription_id indicating value SUBSCRIPTION_ID @@ -580,19 +539,14 @@ Package plat_mp1_notifications { ensure that { when { the IUT entity receives a vDELETE containing - Uri indicating value "mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + Uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.5.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/RadioNode/PlatRadioNodeLocation.tplan2 b/Test Purposes/Plat/Mp1/RadioNode/PlatRadioNodeLocation.tplan2 index 4739d67..91db9e2 100644 --- a/Test Purposes/Plat/Mp1/RadioNode/PlatRadioNodeLocation.tplan2 +++ b/Test Purposes/Plat/Mp1/RadioNode/PlatRadioNodeLocation.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_radio_node_location_lookup { +Package plat_radio_node_location_lookup { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_mp1_radio_node_location_lookup { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_RLOC_BV_001" + TP Id "TP_MEC_PLAT_RLOC_001_OK" Test objective "Check that the IUT responds with the list of radio nodes currently associated with the MEC host and the location of each radio node @@ -56,7 +56,7 @@ Package plat_mp1_radio_node_location_lookup { } then { // MEC 013, clause 7.3.7 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing accessPointList containing diff --git a/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 b/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 index fc199bc..49669cc 100644 --- a/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 +++ b/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_services { +Package plat_services { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_mp1_services { * Service Availability Query (SAQ) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_SAQ_BV_001" + TP Id "TP_MEC_PLAT_SAQ_001_OK" Test objective "Check that the IUT responds with a list of available MEC services @@ -44,13 +44,13 @@ Package plat_mp1_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/services" + Uri indicating value"/mec_service_mgmt/v1/services" ; from the MEC_APP entity } then { // MEC 011, clause 7.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing ServiceInfoList containing @@ -65,7 +65,7 @@ Package plat_mp1_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_SAQ_BV_003" + TP Id "TP_MEC_PLAT_SAQ_003_OK" Test objective "Check that the IUT responds with the information on a specific service @@ -90,13 +90,13 @@ Package plat_mp1_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/services/{SERVICE_ID}" + Uri indicating value"/mec_service_mgmt/v1/services/{SERVICE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing ServiceInfo containing @@ -111,14 +111,13 @@ Package plat_mp1_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_SAQ_BI_001" + TP Id "TP_MEC_PLAT_SAQ_001_BR" Test objective "Check that the IUT responds with an error when incorrect parameters were sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.8, clause 7.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.8, clause 7.4.3.1" Config Id Config_MEC_1 @@ -133,7 +132,7 @@ Package plat_mp1_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/services" + Uri indicating value"/mec_service_mgmt/v1/services" query_parameters containing // Wrong parameter name should trigger an error response. instance_id indicating value any_value @@ -143,13 +142,8 @@ Package plat_mp1_services { } then { // MEC 011, clause 7.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -158,14 +152,13 @@ Package plat_mp1_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_SAQ_BI_002" + TP Id "TP_MEC_PLAT_SAQ_002_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.8, clause 7.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.8, clause 7.4.3.1" Config Id Config_MEC_1 @@ -180,19 +173,14 @@ Package plat_mp1_services { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "/mp1/v1/services" + Uri indicating value"/mec_service_mgmt/v1/services" ; from the MEC_APP entity } then { // MEC 011, clause 7.4.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -201,15 +189,14 @@ Package plat_mp1_services { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_SAQ_BI_003" + TP Id "TP_MEC_PLAT_SAQ_003_NF" Test objective "Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.8, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.8, clause 7.3.3.1" Config Id Config_MEC_1 @@ -217,8 +204,8 @@ Package plat_mp1_services { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID + the IUT entity "not" having a services_running containing + service_id indicating value NON_EXISTENT_SERVICE_ID ; } @@ -227,19 +214,14 @@ Package plat_mp1_services { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "/mp1/v1/services/{UNKNOWN_SERVICE_ID}" + Uri indicating value"/mec_service_mgmt/v1/services/{NON_EXISTENT_SERVICE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 b/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 index f6ac7f5..089db23 100644 --- a/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 +++ b/Test Purposes/Plat/Mp1/Timing/PlatTiming.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_timing { +Package plat_timing { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_mp1_timing { * Timing capabilities (TIME) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TIME_BV_001" + TP Id "TP_MEC_PLAT_TIME_001_OK" Test objective "Check that the IUT responds with timing capabilities @@ -44,13 +44,13 @@ Package plat_mp1_timing { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/timing/timing_caps" + Uri indicating value "mec_app_support/v1/timing/timing_caps" ; from the MEC_APP entity } then { // MEC 011, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing TimingCaps set to any_value @@ -63,7 +63,7 @@ Package plat_mp1_timing { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TIME_BV_002" + TP Id "TP_MEC_PLAT_TIME_002_OK" Test objective "Check that the IUT responds with current time @@ -85,13 +85,13 @@ Package plat_mp1_timing { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/timing/current_time" + Uri indicating value "mec_app_support/v1/timing/current_time" ; from the MEC_APP entity } then { // MEC 011, clause 7.8.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing CurrentTime set to any_value @@ -104,14 +104,13 @@ Package plat_mp1_timing { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TIME_BI_001" + TP Id "TP_MEC_PLAT_TIME_001_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.7.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.7.3.1" Config Id Config_MEC_1 @@ -126,19 +125,14 @@ Package plat_mp1_timing { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "mp1/v1/timing/timing_caps" + Uri indicating value "mec_app_support/v1/timing/timing_caps" ; from the MEC_APP entity } then { // MEC 011, clause 7.7.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -147,14 +141,13 @@ Package plat_mp1_timing { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TIME_BI_002" + TP Id "TP_MEC_PLAT_TIME_002_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.8.3.1" Config Id Config_MEC_1 @@ -169,19 +162,14 @@ Package plat_mp1_timing { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "mp1/v1/timing/current_time" + Uri indicating value "mec_app_support/v1/timing/current_time" ; from the MEC_APP entity } then { // MEC 011, clause 7.8.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 b/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 index 20ccf63..5155b11 100644 --- a/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 +++ b/Test Purposes/Plat/Mp1/TrafficRules/PlatTrafficRules.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_traffic_rules { +Package plat_traffic_rules { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_mp1_traffic_rules { * Traffic rules (TFR) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BV_001" + TP Id "TP_MEC_PLAT_TFR_001_OK" Test objective "Check that the IUT responds with a list of available traffic rules @@ -47,13 +47,13 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules" ; from the MEC_APP entity } then { // MEC 011, clause 7.10.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing TrafficRuleList containing @@ -68,7 +68,7 @@ Package plat_mp1_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BV_002" + TP Id "TP_MEC_PLAT_TFR_002_OK" Test objective "Check that the IUT responds with the information on a specific traffic rule @@ -96,13 +96,13 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}" ; from the MEC_APP entity } then { // MEC 011, clause 7.11.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing TrafficRule containing @@ -117,7 +117,7 @@ Package plat_mp1_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BV_003" + TP Id "TP_MEC_PLAT_TFR_003_OK" Test objective "Check that the IUT updates a specific traffic rule @@ -145,17 +145,19 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", If_Match indicating value PROPER_ETAG body containing - action indicating value "DROP" + TrafficRule containing + action indicating value "DROP" + ; ; ; from the MEC_APP entity } then { // MEC 011, clause 7.11.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing TrafficRule containing @@ -171,14 +173,13 @@ Package plat_mp1_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BI_001" + TP Id "TP_MEC_PLAT_TFR_001_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.10.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.10.3.1" Config Id Config_MEC_1 @@ -196,19 +197,14 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a GET containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules" + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules" ; from the MEC_APP entity } then { // MEC 011, clause 7.10.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -217,14 +213,13 @@ Package plat_mp1_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BI_002" + TP Id "TP_MEC_PLAT_TFR_002_NF" Test objective "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.4, clause 7.10.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.10.3.1" Config Id Config_MEC_1 @@ -232,8 +227,8 @@ Package plat_mp1_traffic_rules { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } @@ -242,19 +237,14 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/applications/{UNKNOWN_APP_INSTANCE_ID}/traffic_rules" + Uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/traffic_rules" ; from the MEC_APP entity } then { // MEC 011, clause 7.10.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -263,14 +253,13 @@ Package plat_mp1_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BI_003" + TP Id "TP_MEC_PLAT_TFR_003_BR" Test objective "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.4, clause 7.11.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.11.3.2" Config Id Config_MEC_1 @@ -291,24 +280,21 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", If_Match indicating value PROPER_ETAG body containing - // Invalid parameter value should trigger an error response. - action indicating value "UNKNOWN_VALUE" + TrafficRule containing + // Invalid parameter value should trigger an error response. + action indicating value UNKNOWN_VALUE + ; ; ; from the MEC_APP entity } then { // MEC 011, clause 7.11.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -317,14 +303,13 @@ Package plat_mp1_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BI_004" + TP Id "TP_MEC_PLAT_TFR_004_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.11.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.11.3.2" Config Id Config_MEC_1 @@ -345,7 +330,7 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a PUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", If_Match indicating value PROPER_ETAG body containing action indicating value "DROP" @@ -355,13 +340,8 @@ Package plat_mp1_traffic_rules { } then { // MEC 011, clause 7.11.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -370,14 +350,13 @@ Package plat_mp1_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BI_005" + TP Id "TP_MEC_PLAT_TFR_005_NF" Test objective "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.4, clause 7.11.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.11.3.2" Config Id Config_MEC_1 @@ -388,8 +367,8 @@ Package plat_mp1_traffic_rules { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a traffic_rules containing - rule_id indicating value TRAFFIC_RULE_ID + the IUT entity "not" having a traffic_rules containing + rule_id indicating value NON_EXISTENT_TRAFFIC_RULE_ID ; } @@ -398,23 +377,20 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{UNKNOWN_TRAFFIC_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{NON_EXISTENT_TRAFFIC_RULE_ID}", If_Match indicating value PROPER_ETAG body containing - action indicating value "DROP" + TrafficRule containing + action indicating value "DROP" + ; ; ; from the MEC_APP entity } then { // MEC 011, clause 7.11.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -423,14 +399,13 @@ Package plat_mp1_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TFR_BI_006" + TP Id "TP_MEC_PLAT_TFR_006_PF" Test objective "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.4, clause 7.11.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.11.3.2" Config Id Config_MEC_1 @@ -451,23 +426,20 @@ Package plat_mp1_traffic_rules { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + Uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", If_Match indicating value INVALID_ETAG body containing - action indicating value "DROP" + TrafficRule containing + action indicating value "DROP" + ; ; ; from the MEC_APP entity } then { // MEC 011, clause 7.11.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/Transport/PlatTransport.tplan2 b/Test Purposes/Plat/Mp1/Transport/PlatTransport.tplan2 index 356b991..3528cb4 100644 --- a/Test Purposes/Plat/Mp1/Transport/PlatTransport.tplan2 +++ b/Test Purposes/Plat/Mp1/Transport/PlatTransport.tplan2 @@ -22,7 +22,7 @@ Package plat_mp1_transport{ * Transport (TRP) */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TRP_BV_001" + TP Id "TP_MEC_PLAT_TRP_001_OK" Test objective "Check that the IUT responds with a list of available transports @@ -44,13 +44,13 @@ Package plat_mp1_transport{ ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "mp1/v1/transports" + Uri indicating value "mec_service_mgmt/v1/transports" ; from the MEC_APP entity } then { // MEC 011, clause 7.9.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing TransportInfoList containing @@ -65,14 +65,13 @@ Package plat_mp1_transport{ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TRP_BI_001" + TP Id "TP_MEC_PLAT_TRP_001_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.9.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.9.3.1" Config Id Config_MEC_1 @@ -87,19 +86,14 @@ Package plat_mp1_transport{ ensure that { when { the IUT entity receives a GET containing - Uri indicating value "mp1/v1/transports" + Uri indicating value "mec_service_mgmt/v1/transports" ; from the MEC_APP entity } then { // MEC 011, clause 7.9.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 index 7733bed..7102e2f 100644 --- a/Test Purposes/Plat/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 +++ b/Test Purposes/Plat/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_area_subscription { +Package plat_ue_area_subscription { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_mp1_ue_area_subscription { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_AREASUB_BV_001" + TP Id "TP_MEC_PLAT_AREASUB_001_OK" Test objective "Check that the IUT acknowledges the UE area change subscription request when @@ -57,7 +57,7 @@ Package plat_mp1_ue_area_subscription { } then { // MEC 013, clause 7.3.11.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created" body containing circleNotificationSubscription containing @@ -68,12 +68,10 @@ Package plat_mp1_ue_area_subscription { ; ; to the MEC_APP entity - - // TODO: do we have the notification as a separate test? If so, do we have initial conditions - // set to circleNotificationSubscription above? how? how do we check the proper call to CALLBACK_URL? and // MEC 013, clause 7.3.11.3 the IUT entity sends a vPOST containing + Uri indicating value CALLBACK_URL, body containing subscriptionNotification containing terminalLocation containing @@ -88,7 +86,7 @@ Package plat_mp1_ue_area_subscription { } Test Purpose { - TP Id "TP_MEC_PLAT_MP1_AREASUB_BV_002" + TP Id "TP_MEC_PLAT_AREASUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE area change notifications @@ -118,7 +116,7 @@ Package plat_mp1_ue_area_subscription { } then { // MEC 013, clause 7.3.6.6 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the MEC_APP entity diff --git a/Test Purposes/Plat/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 b/Test Purposes/Plat/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 index 8cddbef..38e40c8 100644 --- a/Test Purposes/Plat/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 +++ b/Test Purposes/Plat/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_distance_lookup { +Package plat_ue_distance_lookup { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_mp1_ue_distance_lookup { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DISTLOOK_BV_001" + TP Id "TP_MEC_PLAT_DISTLOOK_001_OK" Test objective "Check that the IUT responds with the distance to a UE @@ -54,7 +54,7 @@ Package plat_mp1_ue_distance_lookup { } then { // MEC 013, clause 7.3.9.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing terminalDistance set to any_value diff --git a/Test Purposes/Plat/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 index cbfb331..385f55d 100644 --- a/Test Purposes/Plat/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 +++ b/Test Purposes/Plat/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_distance_subscription { +Package plat_ue_distance_subscription { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_mp1_ue_distance_subscription { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DISTSUB_BV_001" + TP Id "TP_MEC_PLAT_DISTSUB_001_OK" Test objective "Check that the IUT acknowledges the UE distance subscription request when commanded by a @@ -58,7 +58,7 @@ Package plat_mp1_ue_distance_subscription { } then { // MEC 013, clause 7.3.10.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created" body containing distanceNotificationSubscription containing @@ -70,9 +70,6 @@ Package plat_mp1_ue_distance_subscription { ; ; to the MEC_APP entity - - // TODO: do we have the notification as a separate test? If so, do we have initial conditions - // set to distanceNotificationSubscription above? how? how do we check the proper call to CALLBACK_URL? and // MEC 013, clause 7.3.10.3 the IUT entity sends a vPOST containing @@ -91,7 +88,7 @@ Package plat_mp1_ue_distance_subscription { } Test Purpose { - TP Id "TP_MEC_PLAT_MP1_DISTSUB_BV_002" + TP Id "TP_MEC_PLAT_DISTSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE distance notifications @@ -121,7 +118,7 @@ Package plat_mp1_ue_distance_subscription { } then { // MEC 013, clause 7.3.6.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the MEC_APP entity diff --git a/Test Purposes/Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 b/Test Purposes/Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 index aecc34f..e8595ea 100644 --- a/Test Purposes/Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 +++ b/Test Purposes/Plat/Mp1/UeIdentity/PlatUeIdentity.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_identity { +Package plat_ue_identity { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_mp1_ue_identity { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BV_001" + TP Id "TP_MEC_PLAT_UETAG_001_OK" Test objective "Check that the IUT responds with the information on a UE Identity tag @@ -57,7 +57,7 @@ Package plat_mp1_ue_identity { } then { // MEC 014, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing UeIdentityTagInfo containing @@ -76,7 +76,7 @@ Package plat_mp1_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BV_002" + TP Id "TP_MEC_PLAT_UETAG_002_OK" Test objective "Check that the IUT registers a tag (representing a UE) or a list of tags @@ -116,7 +116,7 @@ Package plat_mp1_ue_identity { } then { // MEC 014, clause 7.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing UeIdentityTagInfo containing @@ -137,7 +137,7 @@ Package plat_mp1_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BV_003" + TP Id "TP_MEC_PLAT_UETAG_003_OK" Test objective "Check that the IUT deregisters a tag (representing a UE) or a list of tags @@ -178,7 +178,7 @@ Package plat_mp1_ue_identity { } then { // MEC 014, clause 7.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing UeIdentityTagInfo containing @@ -198,14 +198,13 @@ Package plat_mp1_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BI_001" + TP Id "TP_MEC_PLAT_UETAG_001_BI" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" Config Id Config_MEC_1 @@ -233,13 +232,8 @@ Package plat_mp1_ue_identity { } then { // MEC 014, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -248,14 +242,13 @@ Package plat_mp1_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BI_002" + TP Id "TP_MEC_PLAT_UETAG_002_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" Config Id Config_MEC_1 @@ -282,13 +275,8 @@ Package plat_mp1_ue_identity { } then { // MEC 014, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -297,15 +285,14 @@ Package plat_mp1_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BI_003" + TP Id "TP_MEC_PLAT_UETAG_003_BI" Test objective "Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" Config Id Config_MEC_1 @@ -313,8 +300,8 @@ Package plat_mp1_ue_identity { Initial conditions with { the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID + the MEC_APP entity "not" having a app_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } @@ -323,7 +310,7 @@ Package plat_mp1_ue_identity { ensure that { when { the IUT entity receives a vGET containing - Uri indicating value "ui/v1/{UNKNOWN_APP_INSTANCE_ID}/ue_identity_tag_info", + Uri indicating value "ui/v1/{NON_EXISTENT_APP_INSTANCE_ID}/ue_identity_tag_info", query_parameters containing ueIdentityTag indicating value UE_IDENTITY_TAG ; @@ -332,13 +319,8 @@ Package plat_mp1_ue_identity { } then { // MEC 014, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -347,15 +329,14 @@ Package plat_mp1_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BI_004" + TP Id "TP_MEC_PLAT_UETAG_004_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" Config Id Config_MEC_1 @@ -388,13 +369,8 @@ x If_Match indicating value PROPER_ETAG, } then { // MEC 014, clause 7.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -403,15 +379,14 @@ x If_Match indicating value PROPER_ETAG, Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BI_005" + TP Id "TP_MEC_PLAT_UETAG_005_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" Config Id Config_MEC_1 @@ -444,13 +419,8 @@ x If_Match indicating value PROPER_ETAG, } then { // MEC 014, clause 7.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -459,15 +429,14 @@ x If_Match indicating value PROPER_ETAG, Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BI_006" + TP Id "TP_MEC_PLAT_UETAG_006_BI" Test objective "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 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" Config Id Config_MEC_1 @@ -475,8 +444,8 @@ x If_Match indicating value PROPER_ETAG, Initial conditions with { the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID + the MEC_APP entity "not" having a app_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } @@ -485,7 +454,7 @@ x If_Match indicating value PROPER_ETAG, ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "ui/v1/{UNKNOWN_APP_INSTANCE_ID}/ue_identity_tag_info", + Uri indicating value "ui/v1/{NON_EXISTENT_APP_INSTANCE_ID}/ue_identity_tag_info", x If_Match indicating value PROPER_ETAG, body containing ueIdentityTagsList containing @@ -500,13 +469,8 @@ x If_Match indicating value PROPER_ETAG, } then { // MEC 014, clause 7.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } @@ -515,15 +479,14 @@ x If_Match indicating value PROPER_ETAG, Test Purpose { - TP Id "TP_MEC_PLAT_MP1_UETAG_BI_007" + TP Id "TP_MEC_PLAT_UETAG_007_BI" Test objective "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 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" Config Id Config_MEC_1 @@ -556,18 +519,11 @@ x If_Match indicating value INVALID_ETAG, } then { // MEC 014, clause 7.3.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the MEC_APP entity } } } - - } diff --git a/Test Purposes/Plat/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 b/Test Purposes/Plat/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 index 7e43d2b..92172e2 100644 --- a/Test Purposes/Plat/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 +++ b/Test Purposes/Plat/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_information_lookup { +Package plat_ue_information_lookup { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_mp1_ue_information_lookup { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_INFLOOK_BV_001" + TP Id "TP_MEC_PLAT_INFLOOK_001_OK" Test objective "Check that the IUT responds with the information pertaining to one or more UEs in a particular location @@ -58,7 +58,7 @@ Package plat_mp1_ue_information_lookup { } then { // MEC 013, clause 7.3.3 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing userList set to any_value diff --git a/Test Purposes/Plat/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 index 4ddefdb..98ea422 100644 --- a/Test Purposes/Plat/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 +++ b/Test Purposes/Plat/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_information_subscription { +Package plat_ue_information_subscription { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_mp1_ue_information_subscription { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_INFSUB_BV_001" + TP Id "TP_MEC_PLAT_INFSUB_001_OK" Test objective "Check that the IUT acknowledges the UE information change subscription request @@ -57,7 +57,7 @@ Package plat_mp1_ue_information_subscription { } then { // MEC 013, clause 7.3.5.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created" body containing zonalTrafficSubscription containing @@ -68,9 +68,6 @@ Package plat_mp1_ue_information_subscription { ; ; to the MEC_APP entity - - // TODO: do we have the notification as a separate test? If so, do we have initial conditions - // set to zonalTrafficSubscription above? how? how do we check the proper call to CALLBACK_URL? and // MEC 013, clause 7.3.5.3 the IUT entity sends a vPOST containing @@ -89,7 +86,7 @@ Package plat_mp1_ue_information_subscription { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_INFSUB_BV_002" + TP Id "TP_MEC_PLAT_INFSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE information change notifications @@ -119,7 +116,7 @@ Package plat_mp1_ue_information_subscription { } then { // MEC 013, clause 7.3.6.3 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the MEC_APP entity diff --git a/Test Purposes/Plat/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 b/Test Purposes/Plat/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 index 90f6371..64f51ca 100644 --- a/Test Purposes/Plat/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 +++ b/Test Purposes/Plat/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_location_lookup { +Package plat_ue_location_lookup { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_mp1_ue_location_lookup { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_LOC_BV_001" + TP Id "TP_MEC_PLAT_LOC_001_OK" Test objective "Check that the IUT responds with a list for the location of User Equipments @@ -56,7 +56,7 @@ Package plat_mp1_ue_location_lookup { } then { // MEC 013, clause 7.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing userInfo containing diff --git a/Test Purposes/Plat/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 index 2c9578d..cbca4de 100644 --- a/Test Purposes/Plat/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 +++ b/Test Purposes/Plat/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_location_subscription { +Package plat_ue_location_subscription { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_mp1_ue_location_subscription { */ Test Purpose { - TP Id "TP_MEC_PLAT_MP1_LOCSUB_BV_001" + TP Id "TP_MEC_PLAT_LOCSUB_001_OK" Test objective "Check that the IUT acknowledges the UE location change subscription request @@ -57,7 +57,7 @@ Package plat_mp1_ue_location_subscription { } then { // MEC 013, clause 7.3.4.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created" body containing userTrackingSubscription containing @@ -68,9 +68,6 @@ Package plat_mp1_ue_location_subscription { ; ; to the MEC_APP entity - - // TODO: do we have the notification as a separate test? If so, do we have initial conditions - // set to userTrackingSubscription above? how? how do we check the proper call to CALLBACK_URL? and // MEC 013, clause 7.3.4.3 the IUT entity sends a vPOST containing @@ -89,7 +86,7 @@ Package plat_mp1_ue_location_subscription { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_LOCSUB_BV_002" + TP Id "TP_MEC_PLAT_LOCSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE location change notifications @@ -119,7 +116,7 @@ Package plat_mp1_ue_location_subscription { } then { // MEC 013, clause 7.3.6.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the MEC_APP entity diff --git a/Test Purposes/Plat/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 b/Test Purposes/Plat/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 index 92656ff..7ab3b86 100644 --- a/Test Purposes/Plat/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 +++ b/Test Purposes/Plat/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_mp1_ue_tracking_subscription { +Package plat_ue_tracking_subscription { import all from MEC_Common; @@ -24,7 +24,7 @@ Package plat_mp1_ue_tracking_subscription { Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TRACKSUB_BV_001" + TP Id "TP_MEC_PLAT_TRACKSUB_001_OK" Test objective "Check that the IUT acknowledges the UE location change subscription request @@ -58,7 +58,7 @@ Package plat_mp1_ue_tracking_subscription { } then { // MEC 013, clause 7.3.8.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created" body containing periodicNotificationSubscription containing @@ -69,12 +69,10 @@ Package plat_mp1_ue_tracking_subscription { ; ; to the MEC_APP entity - - // TODO: do we have the notification as a separate test? If so, do we have initial conditions - // set to periodicNotificationSubscription above? how? how do we check the proper call to CALLBACK_URL? and // MEC 013, clause 7.3.8.3 the IUT entity sends a vPOST containing + Uri indicating value CALLBACK_URL body containing subscriptionNotification containing terminalLocation containing @@ -89,7 +87,7 @@ Package plat_mp1_ue_tracking_subscription { } Test Purpose { - TP Id "TP_MEC_PLAT_MP1_TRACKSUB_BV_002" + TP Id "TP_MEC_PLAT_TRACKSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE tracking notifications @@ -119,7 +117,7 @@ Package plat_mp1_ue_tracking_subscription { } then { // MEC 013, clause 7.3.6.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the MEC_APP entity diff --git a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 index c24f61d..19db695 100644 --- a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 +++ b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 @@ -23,7 +23,7 @@ Package sys_mx2_ue_apps_context { */ Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BV_001" + TP Id "TP_MEC_SYS_APPCTX_001_OK" Test objective "Check that the IUT acknowledges the creation of the application context @@ -58,7 +58,7 @@ Package sys_mx2_ue_apps_context { } then { // MEC 016, clause 7.4.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location set to LOCATION, body containing @@ -76,7 +76,7 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BV_002" + TP Id "TP_MEC_SYS_APPCTX_002_OK" Test objective "Check that the IUT updates the application callback reference @@ -112,7 +112,7 @@ Package sys_mx2_ue_apps_context { } then { // MEC 017, clause 7.5.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the UE_APP entity @@ -122,10 +122,10 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BV_003" + TP Id "TP_MEC_SYS_APPCTX_003_OK" Test objective - "Check that the IUT deletes the application context + "Check that the IUT deletes the application context when commanded by an UE Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" @@ -152,7 +152,7 @@ Package sys_mx2_ue_apps_context { } then { // MEC 016, clause 7.5.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; to the UE_APP entity @@ -162,15 +162,14 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_001" + TP Id "TP_MEC_SYS_APPCTX_001_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -199,13 +198,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 016, clause 7.4.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -214,15 +208,14 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_002" + TP Id "TP_MEC_SYS_APPCTX_002_BI" Test objective "Check that the IUT responds with an error when a non-authenticated request is sent by a MEC Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -250,13 +243,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 016, clause 7.4.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -265,15 +253,14 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_003" + TP Id "TP_MEC_SYS_APPCTX_003_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -301,13 +288,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 016, clause 7.4.3.4 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -316,15 +298,14 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_004" + TP Id "TP_MEC_SYS_APPCTX_004_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -354,13 +335,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 017, clause 7.5.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -369,15 +345,14 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_005" + TP Id "TP_MEC_SYS_APPCTX_005_BI" Test objective "Check that the IUT responds with an error when a non-authenticated request is sent by a MEC Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -406,13 +381,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 017, clause 7.5.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -421,15 +391,14 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_006" + TP Id "TP_MEC_SYS_APPCTX_006_BI" Test objective "Check that the IUT responds with an error when a non-authorised request is sent by a MEC Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -458,13 +427,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 017, clause 7.5.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -473,15 +437,14 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_007" + TP Id "TP_MEC_SYS_APPCTX_007_NF" Test objective "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 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" Config Id Config_MEC_4 @@ -489,8 +452,8 @@ Package sys_mx2_ue_apps_context { Initial conditions with { the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID + the UE_APP entity "not" having a appContext containing + contextId indicating value NON_EXISTENT_CONTEXT_ID ; } @@ -499,7 +462,7 @@ Package sys_mx2_ue_apps_context { ensure that { when { the IUT entity receives a vPUT containing - Uri indicating value "mx2/v2/app_contexts/{UNKNOWN_CONTEXT_ID}", + Uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}", body containing AppContext containing callbackReference indicating value some_uri @@ -510,13 +473,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 017, clause 7.5.3.2 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -525,7 +483,7 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_008" + TP Id "TP_MEC_SYS_APPCTX_008_BI" Test objective "Check that the IUT responds with an error when @@ -555,13 +513,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 016, clause 7.5.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -570,14 +523,13 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_009" + TP Id "TP_MEC_SYS_APPCTX_009_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" Config Id Config_MEC_4 @@ -601,13 +553,8 @@ Package sys_mx2_ue_apps_context { } then { // MEC 016, clause 7.5.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -616,14 +563,13 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_MX2_APPCTX_BI_010" + TP Id "TP_MEC_SYS_APPCTX_010_NF" Test objective "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 016 V2.1.1, clause 7.5.3.5", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" Config Id Config_MEC_4 @@ -631,8 +577,8 @@ Package sys_mx2_ue_apps_context { Initial conditions with { the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID + the UE_APP entity "not" having a appContext containing + contextId indicating value NON_EXISTENT_CONTEXT_ID ; } @@ -641,19 +587,14 @@ Package sys_mx2_ue_apps_context { ensure that { when { the IUT entity receives a vDELETE containing - Uri indicating value "mx2/v2/app_contexts/{UNKNOWN_CONTEXT_ID}" + Uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}" ; from the UE_APP entity } then { // MEC 016, clause 7.5.3.5 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } diff --git a/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 b/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 index 282af4f..f97b4f1 100644 --- a/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 +++ b/Test Purposes/Sys/Mx2/UeApps/SysUeApplications.tplan2 @@ -23,7 +23,7 @@ Package sys_mx2_ue_applications { */ Test Purpose { - TP Id "TP_MEC_SYS_MX2_UEAPPS_BV_001" + TP Id "TP_MEC_SYS_UEAPPS_001_OK" Test objective "Check that the IUT responds with the list of user applications available @@ -57,7 +57,7 @@ Package sys_mx2_ue_applications { } then { // MEC 016, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing ApplicationList containing @@ -74,14 +74,13 @@ Package sys_mx2_ue_applications { Test Purpose { - TP Id "TP_MEC_SYS_MX2_UEAPPS_BI_001" + TP Id "TP_MEC_SYS_UEAPPS_001_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1" Config Id Config_MEC_4 @@ -110,13 +109,8 @@ Package sys_mx2_ue_applications { } then { // MEC 016, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -125,14 +119,13 @@ Package sys_mx2_ue_applications { Test Purpose { - TP Id "TP_MEC_SYS_MX2_UEAPPS_BI_002" + TP Id "TP_MEC_SYS_UEAPPS_002_BI" Test objective "Check that the IUT responds with an error when a non-authenticated request is sent by a MEC Application" - Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1" Config Id Config_MEC_4 @@ -159,13 +152,8 @@ Package sys_mx2_ue_applications { } then { // MEC 016, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "401 Unauthorized" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -174,14 +162,13 @@ Package sys_mx2_ue_applications { Test Purpose { - TP Id "TP_MEC_SYS_MX2_UEAPPS_BI_003" + TP Id "TP_MEC_SYS_UEAPPS_003_BI" Test objective "Check that the IUT responds with an error when an unauthorised request is sent by a MEC Application" - Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1" Config Id Config_MEC_4 @@ -208,13 +195,8 @@ Package sys_mx2_ue_applications { } then { // MEC 016, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "403 Forbidden" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } @@ -223,14 +205,13 @@ Package sys_mx2_ue_applications { Test Purpose { - TP Id "TP_MEC_SYS_MX2_UEAPPS_BI_004" + TP Id "TP_MEC_SYS_UEAPPS_004_NF" Test objective "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 016 V2.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ProblemDetails" + Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1" Config Id Config_MEC_4 @@ -258,13 +239,8 @@ Package sys_mx2_ue_applications { } then { // MEC 016, clause 7.3.3.1 - the IUT entity sends a HttpMsg containing + the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" - body containing - ProblemDetails containing - detail set to any_value - ; - ; ; to the UE_APP entity } -- GitLab