From 39952d3deab49730739e9958c0c1c1f5022cbb50 Mon Sep 17 00:00:00 2001 From: fcferreira Date: Wed, 9 Jan 2019 14:20:38 +0000 Subject: [PATCH 1/2] Merge from master. --- .../AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 | 208 ++++++ .../Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 | 286 ++++++++ .../AppPkgMgt_notifications.tplan2 | 149 +++-- .../AppPkgMgt_subscriptions.tplan2 | 176 +++++ .../Notifications/RnisNotifications.tplan2} | 24 +- .../Rnis/RnisAllSubscriptions_BO_BI.tplan2 | 477 +++++++++++++ .../Mp1/Rnis/RnisAllSubscriptions_BV.tplan2} | 253 +++---- .../App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 | 207 ++++++ .../Mp1/Rnis/RnisRabQuery_BV.tplan2} | 382 +++++------ .../RnisSpecificSubscription_BO_BI.tplan2 | 173 +++++ .../Rnis/RnisSpecificSubscription_BV.tplan2} | 315 +++++---- Test Purposes/MEC010-2/AppPkgMgt.tplan2 | 627 ------------------ .../MEC010-2/mec-010-2-domain.tplan2 | 35 - Test Purposes/MEC012/mec-012-domain.tplan2 | 61 -- Test Purposes/mec-common.tplan2 | 67 +- 15 files changed, 2151 insertions(+), 1289 deletions(-) create mode 100644 Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 create mode 100644 Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 rename Test Purposes/{MEC010-2 => App/Mm3/AppPackageMgmt}/AppPkgMgt_notifications.tplan2 (94%) create mode 100644 Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 rename Test Purposes/{MEC012/RNIS_notifications.tplan2 => App/Mp1/Notifications/RnisNotifications.tplan2} (93%) create mode 100644 Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 rename Test Purposes/{MEC012/RNIS_All_subscriptions.tplan2 => App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2} (92%) create mode 100644 Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 rename Test Purposes/{MEC012/RNIS_RAB_query.tplan2 => App/Mp1/Rnis/RnisRabQuery_BV.tplan2} (93%) create mode 100644 Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 rename Test Purposes/{MEC012/RNIS_Subscriptions_id.tplan2 => App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2} (93%) delete mode 100644 Test Purposes/MEC010-2/AppPkgMgt.tplan2 delete mode 100644 Test Purposes/MEC010-2/mec-010-2-domain.tplan2 delete mode 100644 Test Purposes/MEC012/mec-012-domain.tplan2 diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 new file mode 100644 index 0000000..043764e --- /dev/null +++ b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 @@ -0,0 +1,208 @@ +/* +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 MEC010_2_MEO_MM1_PKGM_BO_BI { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_A" //Negative case 400 Bad request + + Test objective + "Check that MEO responds with an error when it receives + a malformed request for creating a new App Package" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/apmi/v1/app_packages", + body containing + AppPkg containing + "not" appPkgName //mandatory attribute + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_B" //Negative case 401 Unauthorized - no token + + Test objective + "Check that MEO responds with an error when it receives + a request for creating a new App Package without credentials" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/apmi/v1/app_packages", + "not" authorization, //Token is mandatory + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_C" //Negative case 401 Unauthorized - wrong token + + Test objective + "Check that MEO responds with an error when it receives + a request for creating a new App Package with wrong credentials" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/apmi/v1/app_packages", + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_D" //Negative case 404 Not found + + Test objective + "Check that MEO responds with an error when it receives + a request for creating a new App Package to a wrong URI" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/apmi/v1/appPackages", //wrong URI + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_004_NEG_A" //Negative case: 403 FORBIDDEN (operation not allowed due to the current status of the resource) + + Test objective + "Check that MEO responds with an error when it receives + a request to enable an App Package that is already enabled" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + operationalState set to "ENABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri_parameter appPkgOperation indicating value "ENABLE"; //Wrong since the app package is already enabled + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "403 Forbidden", + body containing + problemDetails containing + status set to 403, + detail set to any_value + ; + ; + ; + to the MEC_OSS entity + } + } + } +} diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 new file mode 100644 index 0000000..2e439f5 --- /dev/null +++ b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 @@ -0,0 +1,286 @@ +/* +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 MEC010_2_MEO_MM1_PKGM_BV { + + import all from MEC_Common; + + //All APP packages + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001" + + Test objective + "Check that MEO creates a new App Package when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1", //OnboardedAppPkgInfo + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/apmi/v1/app_packages", + body containing + AppPkg containing + appPkgName set to APP_PKG_NAME, + appPkgVersion set to APP_PKG_VERSION, + appProvider set to APP_PROVIDER, + checksum set to CHECKSUM, + appPkgPath set to APP_PKG_PATH + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", //TODO: it should return 201 - specification to be updated + body containing + OnboardedAppPkgInfoList containing + OnboardedAppPkgInfo containing + appPkgName set to APP_PKG_NAME, + appPkgVersion set to APP_PKG_VERSION, + appProvider set to APP_PROVIDER, + checksum set to CHECKSUM, + appPkgPath set to APP_PKG_PATH, + operationalState set to "ENABLED", + usageState set to "NOT_IN_USE" + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_002a" + + Test objective + "Check that MEO returns the list of App Packages when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + OnboardedAppPkgInfoList containing + OnboardedAppPkgInfo containing + appPkgId set to ON_BOARDED_APP_PKG_ID, + appDId set to APPD_ID + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + //Individual APP packages + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_002b" + + Test objective + "Check that MEO returns the an App Package when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + OnboardedAppPkgInfo containing + appPkgId set to ON_BOARDED_APP_PKG_ID, + appDId set to APPD_ID + ; + ; + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_003" + + Test objective + "Check that MEO deletes an App Package when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.4" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK" //TODO: it should return 204 - specification to be updated + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_004" + + Test objective + "Check that MEO enables an App Package when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + operationalState set to "DISABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri_parameter appPkgOperation indicating value "ENABLE"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK"; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_005" + + Test objective + "Check that MEO disables an App Package when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + operationalState set to "ENABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri_parameter appPkgOperation indicating value "DISABLE"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK"; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MEC25_MM1_PKGM_001" + + Test objective + "Check that MEO aborts an App Package deletion operation when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + operationalState set to "DELETION_PENDING"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri_parameter appPkgOperation indicating value "ABORT"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK"; + to the MEC_OSS entity + } + } + } +} diff --git a/Test Purposes/MEC010-2/AppPkgMgt_notifications.tplan2 b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 similarity index 94% rename from Test Purposes/MEC010-2/AppPkgMgt_notifications.tplan2 rename to Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 index 326ec61..1fd1c0d 100644 --- a/Test Purposes/MEC010-2/AppPkgMgt_notifications.tplan2 +++ b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 @@ -1,75 +1,74 @@ -/* -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 app_pkg_mgt_notifications { - - import all from MEC_Common; - import all from MEC_010_2_Domain; - - Test Purpose { - TP Id "TP_MEC_MEO_MM3_PKGM_002" - - Test objective - "Check that the MEO sends an App Package management notification - to the subscriber when the App Package is enabled" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.5", - "ETSI GS MEC 010-2 1.2.2, table Table 6.2.3.8.2-1" //AppPkgNotification - - Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId set to APP_PKG_ID, - appProvider set to APP_PROVIDER, - operationalState set to "DISABLED" - ; - and the IUT entity having a App_Package_subscription containing - subscriptionId indicating value SUBSCRIPTION_ID, - subscriptionType indicating value "OpChange", - callbackUri indicating value CALLBACK_URI, - appPkgFilter containing - appPkgFilterCriteria containing - appProvider set to APP_PROVIDER - ; - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - appPkgId set to APP_PKG_ID, - operationalState set to "ENABLED"; - from the MEC_OSS entity - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - AppPkgNotification containing - notificationId indicating value any_value, - notificationType indicating value "OP_CHANGE", - subscriptionId indicating value SUBSCRIPTION_ID, - appPkgId set to APP_PKG_ID - ; - ; - ; to the MEC_SUB entity - } - } - } - -} +/* +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 MEC010_2_MEO_MM3_PKGM_BO { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEO_MM3_PKGM_002" + + Test objective + "Check that the MEO sends an App Package management notification + to the subscriber when the App Package is enabled" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.5", + "ETSI GS MEC 010-2 1.2.2, table Table 6.2.3.8.2-1" //AppPkgNotification + + Config Id Config_MEC_3 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId set to APP_PKG_ID, + appProvider set to APP_PROVIDER, + operationalState set to "DISABLED" + ; + and the IUT entity having a App_Package_subscription containing + subscriptionId indicating value SUBSCRIPTION_ID, + subscriptionType indicating value "OpChange", + callbackUri indicating value CALLBACK_URI, + appPkgFilter containing + appPkgFilterCriteria containing + appProvider set to APP_PROVIDER + ; + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + appPkgId set to APP_PKG_ID, + operationalState set to "ENABLED"; + from the MEC_OSS entity + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + AppPkgNotification containing + notificationId indicating value any_value, + notificationType indicating value "OP_CHANGE", + subscriptionId indicating value SUBSCRIPTION_ID, + appPkgId set to APP_PKG_ID + ; + ; + ; to the MEC_SUB entity + } + } + } + +} diff --git a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 new file mode 100644 index 0000000..19895e0 --- /dev/null +++ b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 @@ -0,0 +1,176 @@ +/* +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 MEC010_2_MEO_MM3_PKGM_BO { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001a" + + Test objective + "Check that MEO creates a new subscription entry when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.3.3.1", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.9.2-1", //AppPkgSubscription + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.6.2-1" //AppPkgSubscriptionInfo + + Config Id Config_MEC_3 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/apmi/v1/subscriptions", + body containing + AppPkgSubscription containing + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + AppPkgSubscriptionInfo containing + subscriptionId set to any_value, + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI + ; + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001b" + + Test objective + "Check that MEO returns the list of App Package Management subscriptions when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.3.3.2", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.7.2-1" //AppPkgSubscriptionLinkList + + Config Id Config_MEC_3 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package_subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING"; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions"; + from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionLinkList containing + subscriptions containing + href set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}", + rel set to "ON_BOARDING" + ; + ; + ; + ; to the MEC_SUB entity + } + } + } + + //Individual Subscriptions + Test Purpose { + TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001c" + + Test objective + "Check that MEO returns the an App Package Management Subscription when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.4.3.2", + "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.6.2-1" //AppPkgSubscriptionInfo + + + Config Id Config_MEC_3 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package_subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING"; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}"; + from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING" + ; + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001d" + + Test objective + "Check that MEO deletes an App Package Management Subscription when requested" + + Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.4.3.4" + + Config Id Config_MEC_3 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package_subscription containing + subscriptionId set to SUBSCRIPTION_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}"; + from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; to the MEC_SUB entity + } + } + } +} diff --git a/Test Purposes/MEC012/RNIS_notifications.tplan2 b/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 similarity index 93% rename from Test Purposes/MEC012/RNIS_notifications.tplan2 rename to Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 index 56a3ef0..991817d 100644 --- a/Test Purposes/MEC012/RNIS_notifications.tplan2 +++ b/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 @@ -13,13 +13,12 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package rnis_notifications { +Package MEC012_APP_MP1_RNI_NOTIF_BV { import all from MEC_Common; - import all from MEC_012_Domain; Test Purpose { - TP Id "TP_MEC025_RNI_NOTIFICATION_01" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_01" Test objective "Check that the RNIS service sends an RNIS notification about cell change @@ -45,8 +44,6 @@ Package rnis_notifications { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a cell_change_event containing associateId set to ASSOCIATE_ID; } @@ -58,14 +55,13 @@ Package rnis_notifications { associateId set to ASSOCIATE_ID ; ; to the MEC_SUB entity - } } } Test Purpose { - TP Id "TP_MEC025_RNI_NOTIFICATION_02" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_02" Test objective "Check that the RNIS service sends an RNIS notification about RAB establishment @@ -112,7 +108,7 @@ Package rnis_notifications { Test Purpose { - TP Id "TP_MEC025_RNI_NOTIFICATION_03" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_03" Test objective "Check that the RNIS service sends an RNIS notification about RAB modification @@ -155,7 +151,7 @@ Package rnis_notifications { Test Purpose { - TP Id "TP_MEC025_RNI_NOTIFICATION_04" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_04" Test objective "Check that the RNIS service sends an RNIS notification about RAB release @@ -199,7 +195,7 @@ Package rnis_notifications { } Test Purpose { - TP Id "TP_MEC025_RNI_NOTIFICATION_05" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_05" Test objective "Check that the RNIS service sends an RNIS notification about measurement report @@ -242,7 +238,7 @@ Package rnis_notifications { } Test Purpose { - TP Id "TP_MEC025_RNI_NOTIFICATION_06" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_06" Test objective "Check that the RNIS service sends an RNIS notification about timing advance @@ -286,7 +282,7 @@ Package rnis_notifications { Test Purpose { - TP Id "TP_MEC025_RNI_NOTIFICATION_07" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_07" Test objective "Check that the RNIS service sends an RNIS notification about carrier aggregation reconfiguration @@ -330,7 +326,7 @@ Package rnis_notifications { Test Purpose { - TP Id "TP_MEC025_RNI_NOTIFICATION_08" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_08" Test objective "Check that the RNIS service sends an RNIS notification about S1 bearer @@ -374,7 +370,7 @@ Package rnis_notifications { } Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_02" + TP Id "TP_MEC_APP_MP1_RNI_SUBSCRIPTION_02" Test objective "Check that the RNIS service sends an RNIS notification on subscription expiration diff --git a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 new file mode 100644 index 0000000..c56b618 --- /dev/null +++ b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 @@ -0,0 +1,477 @@ +/* +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 MEC012_APP_MP1_RNI_SUBS_BO_BI { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_A" // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType) + + Test objective + "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions", + query_parameters containing + subscriptionType indicating value "wrongSubscriptionType" + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_B" // Negative test: Trying to get a 401 Unauthorized (Client did not submit credentials) + + Test objective + "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions", + query_parameters containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ;, + "not" authorization // Token not provided + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_C" // Negative test: Trying to get a 401 Unauthorized (Invalid token) + + Test objective + "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions", + headers set to vHeadersInvalidToken, // Invalid token + query_parameters containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_D" // Negative test: 404 Not found + + Test objective + "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscrition", // Wrong URI + query_parameters containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_E" // Negative test: 406 Not acceptable. Using Accept header as application/octet-stream + + Test objective + "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions", + headers set to vHeadersAcceptKO, + query_parameters containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "406 Not Acceptable" + ; to the MEC_SUB entity + } + } + } + +// Test Purpose { +// TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_F" // Negative test: 403 Forbidden. +// +// Test objective +// "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" +// +// Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", +// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" +// Config Id Config_MEC_1 +// PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS +// +// Initial conditions with { +// the IUT entity having a RNIS_subscription containing +// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, +// subscriptionType indicating value "CellChangeSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a vGET containing +// uri indicating value "/rni/v1/subscriptions", +// headers set to vHeadersAcceptKO, +// query_parameters containing +// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, +// subscriptionType indicating value "CellChangeSubscription" +// ; +// ; from the MEC_SUB entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to HTTP_406_NOT_ACCEPTABLE, +// body containing +// problemDetails containing +// status set to 406, +// detail set to any_value +// ; +// ; +// ; to the MEC_SUB entity +// } +// } +// } + + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_A" // 400 Bad Request + + Test objective + "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/rni/v1/subscriptions", + body containing + CellChangeSubscription containing + subscritionType indicating value "CelCangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + appInsId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_B" // 401 Unauthorized (No Token) + + Test objective + "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/rni/v1/subscriptions", + "not" authorized, + body containing + CellChangeSubscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + appInsId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_C" // 401 Unauthorized (Wrong token) + + Test objective + "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/rni/v1/subscriptions", + headers set to vHeadersInvalidToken, // wrong token + body containing + CellChangeSubscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + appInsId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_C" // 404 not Found (Wrong URI) + + Test objective + "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/rnis/v1/subscription", // wrong URI + body containing + CellChangeSubscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + appInsId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_D" // 406 not acceptable (client accepts only application/octet-stream content format) + + Test objective + "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/rni/v1/subscriptions", + headers set to vHeadersAcceptKO, + body containing + CellChangeSubscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + appInsId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "406 Not Acceptable" + ; to the MEC_SUB entity + } + } + } + +} diff --git a/Test Purposes/MEC012/RNIS_All_subscriptions.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 similarity index 92% rename from Test Purposes/MEC012/RNIS_All_subscriptions.tplan2 rename to Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 index 34ac2d4..0a15316 100644 --- a/Test Purposes/MEC012/RNIS_All_subscriptions.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 @@ -1,126 +1,127 @@ -/* -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 rnis_subscriptions { - - import all from MEC_Common; - import all from MEC_012_Domain; - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_05" - - Test objective - "Check that the RNIS service sends all RNIS subscriptions when requested" - - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/subscriptions" //TODO how to handle query parameters? - query_parameters containing - subscriptionType indicating value "CellChangeSubscription" - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - subscriptionLinkList containing - _links containing - self set to SUBSCRIPTION_HREF_VALUE - ;, - CellChangeSubscription containing - href indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - ; - ; - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_01" - - Test objective - "Check that the RNIS service creates a new RNIS subscription" - - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/rni/v1/subscriptions", - body containing - CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, - associateId set to ASSOCIATE_ID_LIST, - ecgi set to ECGI, - hoStatus set to HO_STATUS - ;, - expiryDeadline set to EXPIRY_DEADLINE - ; - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_201_CREATED, - body containing - CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to SUBSCRIPTION_HREF_VALUE - ;, - filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, - associateId set to ASSOCIATE_ID_LIST, - ecgi set to ECGI, - hoStatus set to HO_STATUS - ;, - expiryDeadline set to EXPIRY_DEADLINE - ; - ; - ; to the MEC_SUB entity - } - } - } -} +/* +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 MEC012_APP_MP1_RNI_SUBS_BV { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_05" + + Test objective + "Check that the RNIS service sends all RNIS subscriptions when requested" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions", + query_parameters containing + subscriptionType indicating value "CellChangeSubscription" + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + subscriptionLinkList containing + _links containing + self set to SUBSCRIPTION_HREF_VALUE + ;, + CellChangeSubscription containing + href indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + ; + ; + ; to the MEC_SUB entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_01" + + Test objective + "Check that the RNIS service creates a new RNIS subscription" + + Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/rni/v1/subscriptions", + body containing + CellChangeSubscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + appInsId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + CellChangeSubscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to SUBSCRIPTION_HREF_VALUE + ;, + filterCriteriaAssocHo containing + appInsId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; to the MEC_SUB entity + } + } + } +} diff --git a/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 new file mode 100644 index 0000000..8915adc --- /dev/null +++ b/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 @@ -0,0 +1,207 @@ +/* +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 MEC012_APP_MP1_RNI_QUERY_BO_BI { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_01_NEG_A" // Negative test: 400 Bad request + + Test objective + "Check that the RNIS service returns an error when the RAB information when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a RabInfo containing + cellId indicating value CELL_USER_INFO + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/queries/rab_info", + query_parameters containing + cId indicating value C_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the RNIS_CLIENT entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_01_NEG_B" // Negative test: 401 Unauthorized (No token provided) + + Test objective + "Check that the RNIS service returns an error when the RAB information when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a RabInfo containing + cellId indicating value CELL_USER_INFO + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/queries/rab_info", + "not" authorization, + query_parameters containing + cellId indicating value CELL_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the RNIS_CLIENT entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_01_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) + + Test objective + "Check that the RNIS service returns an error when the RAB information when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a RabInfo containing + cellId indicating value CELL_USER_INFO + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/queries/rab_info", + headers set to vHeadersInvalidToken, + query_parameters containing + cellId indicating value CELL_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the RNIS_CLIENT entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_01_NEG_D" // Negative test: 404 Not found + + Test objective + "Check that the RNIS service returns an error when the RAB information when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a RabInfo containing + cellId indicating value CELL_USER_INFO + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rnis/v1/query/rab_info", + headers set to vHeadersInvalidToken, + query_parameters containing + cellId indicating value CELL_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the RNIS_CLIENT entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_01_NEG_E" // Negative test: 406 Not Acceptable + + Test objective + "Check that the RNIS service returns an error when the RAB information when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a RabInfo containing + cellId indicating value CELL_USER_INFO + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/queries/rab_info", + headers set to vHeadersAcceptKO, + query_parameters containing + cellId indicating value CELL_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "406 Not Acceptable" + ; to the RNIS_CLIENT entity + } + } + } +} \ No newline at end of file diff --git a/Test Purposes/MEC012/RNIS_RAB_query.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BV.tplan2 similarity index 93% rename from Test Purposes/MEC012/RNIS_RAB_query.tplan2 rename to Test Purposes/App/Mp1/Rnis/RnisRabQuery_BV.tplan2 index d0a90f1..fcf7f95 100644 --- a/Test Purposes/MEC012/RNIS_RAB_query.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BV.tplan2 @@ -1,192 +1,192 @@ -/* -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 rnis_rab_query { - - import all from MEC_Common; - import all from MEC_012_Domain; - - Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_01" - - Test objective - "Check that the RNIS service returns the RAB information when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellId indicating value CELL_USER_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/queries/rab_info", - query_parameters containing - cellId indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - RabInfo containing - cellUserInfo containing - ecgi indicating value CELL_ID - ; - ; - ; - ; to the RNIS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_02" - - Test objective - "Check that the RNIS service returns the PLMN information when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a PlmnInfo containing - appInsId indicating value APP_INSTANCE_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/queries/plmn_info", - query_parameters containing - appInsId indicating value APP_INS_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - PlmnInfo containing - appInsId indicating value APP_INS_ID - ; - ; - ; to the RNIS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_03" - - Test objective - "Check that the RNIS service returns the S1 bearer information" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a S1BearerInfo containing - s1UeInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/queries/s1_bearer_info", - query_parameters containing - cellId indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - S1BearerInfo containing - ecgi indicating value CELL_ID - ; - ; - ; to the RNIS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_04" - - Test objective - "Check that the RNIS service returns the L2 measurements information" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.5a.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" //TODO: not yet available in OpenAPI spec. To be added later - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a L2_Meas_information containing - cellInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/queries/layer2_meas", - query_parameters containing - cellId indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - L2_Meas_information containing - cellInfo containing - ecgi indicating value CELL_ID - ; - ; - ; - ; to the RNIS_CLIENT entity - } - } - } +/* +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 MEC012_APP_MP1_RNI_QUERY_BV { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_01" + + Test objective + "Check that the RNIS service returns the RAB information when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a RabInfo containing + cellId indicating value CELL_USER_INFO + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/queries/rab_info", + query_parameters containing + cellId indicating value CELL_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + RabInfo containing + cellUserInfo containing + ecgi indicating value CELL_ID + ; + ; + ; + ; to the RNIS_CLIENT entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_02" + + Test objective + "Check that the RNIS service returns the PLMN information when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.4.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a PlmnInfo containing + appInsId indicating value APP_INSTANCE_INFO + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/queries/plmn_info", + query_parameters containing + appInsId indicating value APP_INS_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + PlmnInfo containing + appInsId indicating value APP_INS_ID + ; + ; + ; to the RNIS_CLIENT entity + } + } + } + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_03" + + Test objective + "Check that the RNIS service returns the S1 bearer information" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.5.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a S1BearerInfo containing + s1UeInfo containing + ecgi indicating value CELL_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/queries/s1_bearer_info", + query_parameters containing + cellId indicating value CELL_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + S1BearerInfo containing + ecgi indicating value CELL_ID + ; + ; + ; to the RNIS_CLIENT entity + } + } + } + + Test Purpose { + TP Id "TP_MEC025_RNI_QUERY_04" + + Test objective + "Check that the RNIS service returns the L2 measurements information" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.5a.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" //TODO: not yet available in OpenAPI spec. To be added later + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_QUERY + + Initial conditions with { + the IUT entity having a L2_Meas_information containing + cellInfo containing + ecgi indicating value CELL_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/queries/layer2_meas", + query_parameters containing + cellId indicating value CELL_ID + ; + ; from the RNIS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + L2_Meas_information containing + cellInfo containing + ecgi indicating value CELL_ID + ; + ; + ; + ; to the RNIS_CLIENT entity + } + } + } } \ No newline at end of file diff --git a/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 new file mode 100644 index 0000000..bd13d0a --- /dev/null +++ b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 @@ -0,0 +1,173 @@ +/** +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 MEC012_APP_MP1_RNI_SUB_BO_BI { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_A" // Negative test: 401 Unauthorized (No token) + + Test objective + "Check that the RNIS service responds with error when a RNIS subscription is requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", + "not" authorization + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_B" // Negative test: 401 Unauthorized (Invalid token) + + Test objective + "Check that the RNIS service responds with error when a RNIS subscription is requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", + headers set to vHeadersInvalidToken + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_C" // Negative test: 404 Not Found (Invalid token) + + Test objective + "Check that the RNIS service responds with error when a RNIS subscription is requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_D" // Negative test: 406 Not Acceptable (Content type format octet-stream requested by the client) + + Test objective + "Check that the RNIS service responds with error when a RNIS subscription is requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", + headers set to vHeadersAcceptKO + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "406 Not Acceptable" + ; to the MEC_SUB entity + } + } + } +} \ No newline at end of file diff --git a/Test Purposes/MEC012/RNIS_Subscriptions_id.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 similarity index 93% rename from Test Purposes/MEC012/RNIS_Subscriptions_id.tplan2 rename to Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 index 182edbf..522bab0 100644 --- a/Test Purposes/MEC012/RNIS_Subscriptions_id.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 @@ -1,159 +1,158 @@ -/** -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 rnis_subscriptions_id { - - import all from MEC_Common; - import all from MEC_012_Domain; - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_06" - - Test objective - "Check that the RNIS service sends a RNIS subscription when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_03" - - Test objective - "Check that the RNIS service modifies a RNIS subscription when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.2", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - body containing - subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value NEW_CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value NEW_CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; - ; to the MEC_SUB entity - } - } - } - - - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_04" - - Test objective - "Check that the RNIS service deletes a RNIS subscription when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.5", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value SUBSCRIPTION_HREF_VALUE - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_204_NO_CONTENT - ; to the MEC_SUB entity - } - } - } +/** +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 MEC012_APP_MP1_RNI_SUB_BV { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_06" + + Test objective + "Check that the RNIS service sends a RNIS subscription when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_03" + + Test objective + "Check that the RNIS service modifies a RNIS subscription when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.2", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value SUBSCRIPTION_HREF_VALUE, + body containing + subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value NEW_CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value NEW_CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + ; to the MEC_SUB entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC025_RNI_SUBSCRIPTION_04" + + Test objective + "Check that the RNIS service deletes a RNIS subscription when requested" + + Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.5", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + _links containing + self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value SUBSCRIPTION_HREF_VALUE + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; to the MEC_SUB entity + } + } + } } \ No newline at end of file diff --git a/Test Purposes/MEC010-2/AppPkgMgt.tplan2 b/Test Purposes/MEC010-2/AppPkgMgt.tplan2 deleted file mode 100644 index 9167d0d..0000000 --- a/Test Purposes/MEC010-2/AppPkgMgt.tplan2 +++ /dev/null @@ -1,627 +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 app_pkg_mgt { - - import all from MEC_Common; - import all from MEC_010_2_Domain; - - //All APP packages - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001" - - Test objective - "Check that MEO creates a new App Package when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1", //OnboardedAppPkgInfo - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - appPkgName set to APP_PKG_NAME, - appPkgVersion set to APP_PKG_VERSION, - appProvider set to APP_PROVIDER, - checksum set to CHECKSUM, - appPkgPath set to APP_PKG_PATH - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, //TODO: it should return 201 - specification to be updated - body containing - OnboardedAppPkgInfoList containing - OnboardedAppPkgInfo containing - appPkgName set to APP_PKG_NAME, - appPkgVersion set to APP_PKG_VERSION, - appProvider set to APP_PROVIDER, - checksum set to CHECKSUM, - appPkgPath set to APP_PKG_PATH, - operationalState set to "ENABLED", - usageState set to "NOT_IN_USE" - ; - ; - ; - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_A" //Negative case 400 Bad request - - Test objective - "Check that MEO responds with an error when it receives - a malformed request for creating a new App Package" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - "not" appPkgName //mandatory attribute - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_400_BAD_REQUEST - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_B" //Negative case 401 Unauthorized - no token - - Test objective - "Check that MEO responds with an error when it receives - a request for creating a new App Package without credentials" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/app_packages", - "not" authorization, //Token is mandatory - body containing - AppPkg containing - appPkgName set to any_value - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_401_UNAUTHORIZED - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_C" //Negative case 401 Unauthorized - wrong token - - Test objective - "Check that MEO responds with an error when it receives - a request for creating a new App Package with wrong credentials" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a HttpMsg containing - headers set to vHeadersInvalidToken, //wrong token - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - appPkgName set to any_value - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_401_UNAUTHORIZED - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_D" //Negative case 404 Not found - - Test objective - "Check that MEO responds with an error when it receives - a request for creating a new App Package to a wrong URI" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/appPackages", //wrong URI - body containing - AppPkg containing - appPkgName set to any_value - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_404_NOT_FOUND - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002a" - - Test objective - "Check that MEO returns the list of App Packages when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - OnboardedAppPkgInfoList containing - OnboardedAppPkgInfo containing - appPkgId set to ON_BOARDED_APP_PKG_ID, - appDId set to APPD_ID - ; - ; - ; - ; to the MEC_OSS entity - } - } - } - - //Individual APP packages - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002b" - - Test objective - "Check that MEO returns the an App Package when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - OnboardedAppPkgInfo containing - appPkgId set to ON_BOARDED_APP_PKG_ID, - appDId set to APPD_ID - ; - ; - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_003" - - Test objective - "Check that MEO deletes an App Package when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.4" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK //TODO: it should return 204 - specification to be updated - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004" - - Test objective - "Check that MEO enables an App Package when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "DISABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", - uri_parameter appPkgOperation indicating value "ENABLE"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004_NEG_A" //Negative case: 403 FORBIDDEN (operation not allowed due to the current status of the resource) - - Test objective - "Check that MEO responds with an error when it receives - a request to enable an App Package that is already enabled" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "ENABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", - uri_parameter appPkgOperation indicating value "ENABLE"; //Wrong since the app package is already enabled - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_403_FORBIDDEN; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_005" - - Test objective - "Check that MEO disables an App Package when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "ENABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", - uri_parameter appPkgOperation indicating value "DISABLE"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MEC25_MM1_PKGM_001" - - Test objective - "Check that MEO aborts an App Package deletion operation when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "DELETION_PENDING"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", - uri_parameter appPkgOperation indicating value "ABORT"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK; - to the MEC_OSS entity - } - } - } - - //All Subscriptions - - Test Purpose { - TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001a" - - Test objective - "Check that MEO creates a new subscription entry when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.3.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.9.2-1", //AppPkgSubscription - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.6.2-1" //AppPkgSubscriptionInfo - - Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/subscriptions", - body containing - AppPkgSubscription containing - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI - ; - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_201_CREATED, - body containing - AppPkgSubscriptionInfo containing - subscriptionId set to any_value, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI - ; - ; - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001b" - - Test objective - "Check that MEO returns the list of App Package Management subscriptions when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.3.3.2", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.7.2-1" //AppPkgSubscriptionLinkList - - Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package_subscription containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING"; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions"; - from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - AppPkgSubscriptionLinkList containing - subscriptions containing - href set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}", - rel set to "ON_BOARDING" - ; - ; - ; - ; to the MEC_SUB entity - } - } - } - - //Individual Subscriptions - Test Purpose { - TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001c" - - Test objective - "Check that MEO returns the an App Package Management Subscription when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.4.3.2", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.6.2-1" //AppPkgSubscriptionInfo - - - Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package_subscription containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING"; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}"; - from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_200_OK, - body containing - AppPkgSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING" - ; - ; - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MEC25_MM3_PKGM_001d" - - Test objective - "Check that MEO deletes an App Package Management Subscription when requested" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.4.3.4" - - Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package_subscription containing - subscriptionId set to SUBSCRIPTION_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}"; - from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_204_NO_CONTENT - ; to the MEC_SUB entity - } - } - } -} diff --git a/Test Purposes/MEC010-2/mec-010-2-domain.tplan2 b/Test Purposes/MEC010-2/mec-010-2-domain.tplan2 deleted file mode 100644 index f060770..0000000 --- a/Test Purposes/MEC010-2/mec-010-2-domain.tplan2 +++ /dev/null @@ -1,35 +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 MEC_010_2_Domain { - - Domain { - pics: - - PIC_APP_PACKAGE // MEC025, clause 7.3.2 - - PIC_APP_PACKAGE_MANAGEMENT // MEC025, table 7.3.2-1 - - PIC_APP_PACKAGE_NOTIFICATIONS // MEC025, table 7.3.2-2 - ; - entities: - - MEC_SUB - ; - events: - - App_Package_subscription - - App_Package - - generates - - idle_state - - app_package_operational_change_event - ; - } - -} \ No newline at end of file diff --git a/Test Purposes/MEC012/mec-012-domain.tplan2 b/Test Purposes/MEC012/mec-012-domain.tplan2 deleted file mode 100644 index 9918a0b..0000000 --- a/Test Purposes/MEC012/mec-012-domain.tplan2 +++ /dev/null @@ -1,61 +0,0 @@ -Package MEC_012_Domain { - Domain { - pics: - - PIC_RNIS // MEC025, clause 7.5.2 - - PIC_RNIS_QUERY // MEC025, table 7.5.2-1 - - PIC_RNIS_ALL_SUBSCRIPTIONS // MEC025, table 7.5.2-2 - - PIC_RNIS_SPECIFIC_SUBSCRIPTION // MEC025, table 7.5.2-3 - - PIC_RNIS_NOTIFICATIONS // MEC025, table 7.5.2-4 - ; - entities: - - RNIS_CLIENT - - RNIS_SERVER - - IUT - - MEC_SUB - ; - events: - - perform_RNIS_query_to - - having_RNIS_subscription - - having_RNIS_subscription_privileges - - privileges - - having - - sends - - receives - - generates - - RNIS_subscription - - perform_RNIS_subscription_query_to - - cell_change_event - - rab_establish_event - - rab_modification_event - - rab_release_event - - measurement_repost_event - - timing_advance_event - - carrier_aggregation_reconfiguration_event - - S1_bearer_event - - expiry_notification_event - - being_in - - idle_state - ; - } -} - -/* - - Domain { - pics: - - PIC_RNIS - ; - entities: - - RNIS_CLIENT - - IUT - ; - events: - - RNIS_subscription - - perform_RNIS_subscription_query_to - - privileges - - sends - - receives - ; - } - - */ diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 854ae71..123145b 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -7,6 +7,14 @@ Package MEC_Common { - PIC_MEC_SYSTEM // FUT is a MEC System (MEC025, Table 7.9.1-1) - PIC_SERVICES // Implements services - PIC_NOTIFICATIONS // Implements notifications + - PIC_APP_PACKAGE // MEC025, clause 7.3.2 + - PIC_APP_PACKAGE_MANAGEMENT // MEC025, table 7.3.2-1 + - PIC_APP_PACKAGE_NOTIFICATIONS // MEC025, table 7.3.2-2 + - PIC_RNIS // MEC025, clause 7.5.2 + - PIC_RNIS_QUERY // MEC025, table 7.5.2-1 + - PIC_RNIS_ALL_SUBSCRIPTIONS // MEC025, table 7.5.2-2 + - PIC_RNIS_SPECIFIC_SUBSCRIPTION // MEC025, table 7.5.2-3 + - PIC_RNIS_NOTIFICATIONS // MEC025, table 7.5.2-4 ; entities: - MEC_OSS @@ -16,6 +24,12 @@ Package MEC_Common { - MEC_APP_Registrant - MEC_APP_Subscriber - UE_APP + - MEC_SUB + - RNIS_CLIENT + - RNIS_SERVER + - MEC_SUB + - RNIS_CLIENT + - RNIS_SERVER ; events: - services_running // services available in the IUT @@ -28,6 +42,26 @@ Package MEC_Common { - having - idle_state // Idle state: The MEC platform has services running and MEC Application is authorized to consume services - subscribed_to + - App_Package_subscription + - App_Package + - generates + - idle_state + - app_package_operational_change_event + - perform_RNIS_query_to + - having_RNIS_subscription + - having_RNIS_subscription_privileges + - privileges + - RNIS_subscription + - perform_RNIS_subscription_query_to + - cell_change_event + - rab_establish_event + - rab_modification_event + - rab_release_event + - measurement_repost_event + - timing_advance_event + - carrier_aggregation_reconfiguration_event + - S1_bearer_event + - expiry_notification_event ; } @@ -54,11 +88,37 @@ 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; STRING "application/json"; + + STRING "application/octet-stream"; HttpHeaders vHeadersInvalidToken containing authorization set to NOT_VALID_TOKEN @@ -68,6 +128,11 @@ Package MEC_Common { accept set to "application/json", authorization set to VALID_TOKEN ; + + HttpHeaders vHeadersAcceptKO containing + accept set to "application/octet-stream", + authorization set to VALID_TOKEN + ; HttpHeaders vHeaders containing accept set to CONTENT_JSON, @@ -138,6 +203,4 @@ Package MEC_Common { ; } - - } -- GitLab From 6b90b8779e725b4d31716cd31f33b9eed088af0b Mon Sep 17 00:00:00 2001 From: fcferreira Date: Wed, 9 Jan 2019 14:33:03 +0000 Subject: [PATCH 2/2] Camel-case HTTP status codes. --- .../Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 | 2 +- Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 | 4 ++-- .../Plat/Mp1/Notifications/PlatNotifications.tplan2 | 4 ++-- Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 | 2 +- Test Purposes/Plat/Mp1/UeArea/PlatUeArea.tplan2 | 2 +- Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 | 2 +- Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 | 6 +++--- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 b/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 index d6ef468..a78b4f8 100644 --- a/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 +++ b/Test Purposes/Plat/Mp1/Bandwidth/PlatBandwidthManager.tplan2 @@ -319,7 +319,7 @@ Package plat_mp1_bandwidth_manager { then { // MEC 015, clause 8.3.3.5 the IUT entity sends a HttpMsg containing - status_code set to "204 NO CONTENT" + status_code set to "204 No Content" ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 index a372e70..605dee2 100644 --- a/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 +++ b/Test Purposes/Plat/Mp1/DnsRules/PlatDnsRules.tplan2 @@ -213,7 +213,7 @@ Package plat_mp1_dns_rules { then { // MEC 011, clause 7.13.3.2 the IUT entity sends a HttpMsg containing - status_code set to "400 BAD REQUEST" + status_code set to "400 Bad Request" body containing ProblemDetails containing detail set to any_value @@ -262,7 +262,7 @@ Package plat_mp1_dns_rules { then { // MEC 011, clause 7.13.3.1 the IUT entity sends a HttpMsg containing - status_code set to "404 NOT FOUND" + status_code set to "404 Not Found" body containing ProblemDetails containing detail set to any_value diff --git a/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 b/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 index eaf18d2..14fd9be 100644 --- a/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 +++ b/Test Purposes/Plat/Mp1/Notifications/PlatNotifications.tplan2 @@ -102,7 +102,7 @@ Package plat_mp1_notifications { then { // MEC 011, clause 7.6.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 SerAvailabilityNotificationSubscription containing @@ -201,7 +201,7 @@ Package plat_mp1_notifications { then { // MEC 011, clause 7.5.3.5 the IUT entity sends a HttpMsg containing - status_code set to "204 NO CONTENT" + status_code set to "204 No Content" ; to the MEC_APP entity } diff --git a/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 b/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 index f231127..59de2e1 100644 --- a/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 +++ b/Test Purposes/Plat/Mp1/SAQ/PlatServices.tplan2 @@ -99,7 +99,7 @@ Package plat_mp1_services { then { // MEC 011, 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 ServiceInfo containing diff --git a/Test Purposes/Plat/Mp1/UeArea/PlatUeArea.tplan2 b/Test Purposes/Plat/Mp1/UeArea/PlatUeArea.tplan2 index 2064c85..92e0c20 100644 --- a/Test Purposes/Plat/Mp1/UeArea/PlatUeArea.tplan2 +++ b/Test Purposes/Plat/Mp1/UeArea/PlatUeArea.tplan2 @@ -54,7 +54,7 @@ Package plat_mp1_ue_area { then { // MEC 013, clause 7.3.11.2 the IUT entity sends a HttpMsg containing - status_code set to "201 CREATED" + status_code set to "201 Created" body containing circleNotificationSubscription set to any_value ; diff --git a/Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 b/Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 index ca40295..181d3ad 100644 --- a/Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 +++ b/Test Purposes/Plat/Mp1/UeDistance/PlatUeDistance.tplan2 @@ -54,7 +54,7 @@ Package plat_mp1_ue_distance { then { // MEC 013, clause 7.3.10.2 the IUT entity sends a HttpMsg containing - status_code set to "201 CREATED" + status_code set to "201 Created" body containing distanceNotificationSubscription set to any_value ; diff --git a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 index 8b63344..2be73e6 100644 --- a/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 +++ b/Test Purposes/Sys/Mx2/UeAppCtx/SysUeAppsContext.tplan2 @@ -57,7 +57,7 @@ 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" body containing AppContext containing appInfo containing @@ -107,7 +107,7 @@ Package sys_mx2_ue_apps_context { then { // MEC 017, clause 7.5.3.2 the IUT entity sends a HttpMsg containing - status_code set to "204 NO CONTENT" + status_code set to "204 No Content" ; to the UE_APP entity } @@ -147,7 +147,7 @@ Package sys_mx2_ue_apps_context { then { // MEC 016, clause 7.5.3.5 the IUT entity sends a HttpMsg containing - status_code set to "204 NO CONTENT" + status_code set to "204 No Content" ; to the UE_APP entity } -- GitLab