From 6b1afe383d1b88643a588fde5eadb51c9c4aa694 Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Wed, 19 Jun 2019 15:31:12 +0100 Subject: [PATCH 1/5] Update from master. --- .../SysUeAppsContext.tplan2 | 0 .../AppPkgMgt_BO-BI.tplan2 | 98 ++- .../AppPkgMgt_BV.tplan2 | 30 +- .../SysUeApplications.tplan2 | 0 .../AppPkgMgt_notifications.tplan2 | 74 -- .../AppPkgMgt_subscriptions.tplan2 | 176 ---- .../AppPkgMgt_BO-BI.tplan2 | 224 +++-- .../AppPkgMgt_BV.tplan2 | 183 ++-- .../ANY}/CommonUnauthFailure_BI.tplan2 | 0 .../LCM}/AppInstanceMgmt_BO-BI.tplan2 | 537 ++++++------ .../LCM}/AppInstanceMgmt_BV.tplan2 | 204 ++--- .../LCM}/AppInstanceMgmt_notifications.tplan2 | 14 +- Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 | 800 ++++++++++++++++++ .../SRV/{Mp1/Ams => AMS}/Ams_BV.tplan2 | 214 ++++- .../Bandwidth/PlatBandwidthManager.tplan2 | 0 .../{Mp1 => }/DnsRules/PlatDnsRules.tplan2 | 0 .../{Mp1 => }/FAIS/PlatFixedAcessInfo.tplan2 | 0 Test Purposes/SRV/Mp1/Ams/Ams_BO_BI.tplan2 | 796 ----------------- .../SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 | 681 --------------- .../RnisSpecificSubscription_BO_BI.tplan2 | 441 ---------- .../Notifications/PlatAppSubscriptions.tplan2 | 0 .../Notifications/PlatSrvSubscriptions.tplan2 | 0 .../RnisAllSubscriptions_BO_BI.tplan2 | 348 ++++---- .../RnisAllSubscriptions_BV.tplan2 | 66 +- .../Rnis => RNIS}/RnisNotifications.tplan2 | 0 Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 | 681 +++++++++++++++ .../{Mp1/Rnis => RNIS}/RnisQuery_BV.tplan2 | 33 +- .../RnisSpecificSubscription_BO_BI.tplan2 | 439 ++++++++++ .../RnisSpecificSubscription_BV.tplan2 | 42 +- .../RadioNode/PlatRadioNodeLocation.tplan2 | 0 .../SRV/{Mp1 => }/SAQ/PlatAppServices.tplan2 | 0 .../SRV/{Mp1 => }/SAQ/PlatServices.tplan2 | 0 .../SRV/{Mp1 => }/Timing/PlatTiming.tplan2 | 0 .../TrafficRules/PlatTrafficRules.tplan2 | 0 .../{Mp1 => }/Transport/PlatTransport.tplan2 | 0 .../PlatUeAreaSubscription.tplan2 | 0 .../PlatUeDistanceLookup.tplan2 | 0 .../PlatUeDistanceSubscription.tplan2 | 0 .../UeIdentity/PlatUeIdentity.tplan2 | 0 .../PlatUeInformationLookup.tplan2 | 0 .../PlatUeInformationSubscription.tplan2 | 0 .../PlatUeLocationLookup.tplan2 | 0 .../PlatUeLocationSubscription.tplan2 | 0 .../PlatUeTrackingSubscription.tplan2 | 0 Test Purposes/mec-common.tplan2 | 4 +- 45 files changed, 3027 insertions(+), 3058 deletions(-) rename Test Purposes/MEO/{Mx2/UeAppCtx => APPCTX}/SysUeAppsContext.tplan2 (100%) rename Test Purposes/MEO/{Mm1/AppPackageMgmt => PKGM}/AppPkgMgt_BO-BI.tplan2 (90%) rename Test Purposes/MEO/{Mm1/AppPackageMgmt => PKGM}/AppPkgMgt_BV.tplan2 (93%) rename Test Purposes/MEO/{Mx2/UeApps => UEAPPS}/SysUeApplications.tplan2 (100%) delete mode 100644 Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 delete mode 100644 Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 rename Test Purposes/MEPM/{Mm3/AppPackageMgmt => PKGM}/AppPkgMgt_BO-BI.tplan2 (78%) rename Test Purposes/MEPM/{Mm3/AppPackageMgmt => PKGM}/AppPkgMgt_BV.tplan2 (59%) rename Test Purposes/{Common => MEX/ANY}/CommonUnauthFailure_BI.tplan2 (100%) rename Test Purposes/{MEO/Mm1/AppLcmMgmt => MEX/LCM}/AppInstanceMgmt_BO-BI.tplan2 (65%) rename Test Purposes/{MEO/Mm1/AppLcmMgmt => MEX/LCM}/AppInstanceMgmt_BV.tplan2 (74%) rename Test Purposes/{MEO/Mm1/AppLcmMgmt => MEX/LCM}/AppInstanceMgmt_notifications.tplan2 (81%) create mode 100644 Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 rename Test Purposes/SRV/{Mp1/Ams => AMS}/Ams_BV.tplan2 (56%) rename Test Purposes/SRV/{Mp1 => }/Bandwidth/PlatBandwidthManager.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/DnsRules/PlatDnsRules.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/FAIS/PlatFixedAcessInfo.tplan2 (100%) delete mode 100644 Test Purposes/SRV/Mp1/Ams/Ams_BO_BI.tplan2 delete mode 100644 Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 delete mode 100644 Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 rename Test Purposes/SRV/{Mp1 => }/Notifications/PlatAppSubscriptions.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/Notifications/PlatSrvSubscriptions.tplan2 (100%) rename Test Purposes/SRV/{Mp1/Rnis => RNIS}/RnisAllSubscriptions_BO_BI.tplan2 (61%) rename Test Purposes/SRV/{Mp1/Rnis => RNIS}/RnisAllSubscriptions_BV.tplan2 (63%) rename Test Purposes/SRV/{Mp1/Rnis => RNIS}/RnisNotifications.tplan2 (100%) create mode 100644 Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 rename Test Purposes/SRV/{Mp1/Rnis => RNIS}/RnisQuery_BV.tplan2 (86%) create mode 100644 Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 rename Test Purposes/SRV/{Mp1/Rnis => RNIS}/RnisSpecificSubscription_BV.tplan2 (78%) rename Test Purposes/SRV/{Mp1 => }/RadioNode/PlatRadioNodeLocation.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/SAQ/PlatAppServices.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/SAQ/PlatServices.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/Timing/PlatTiming.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/TrafficRules/PlatTrafficRules.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/Transport/PlatTransport.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeAreaSubscription/PlatUeAreaSubscription.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeDistanceLookup/PlatUeDistanceLookup.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeIdentity/PlatUeIdentity.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeInformationLookup/PlatUeInformationLookup.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeInformationSubscription/PlatUeInformationSubscription.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeLocationLookup/PlatUeLocationLookup.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeLocationSubscription/PlatUeLocationSubscription.tplan2 (100%) rename Test Purposes/SRV/{Mp1 => }/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 (100%) diff --git a/Test Purposes/MEO/Mx2/UeAppCtx/SysUeAppsContext.tplan2 b/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 similarity index 100% rename from Test Purposes/MEO/Mx2/UeAppCtx/SysUeAppsContext.tplan2 rename to Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 diff --git a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 similarity index 90% rename from Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 rename to Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 index 5a0b561..d4b3601 100644 --- a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 @@ -24,8 +24,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "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 2.0.9, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1" //AppPkg + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.2.2-1" //AppPkg Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -60,8 +60,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a malformed request for retrieving the list of existing App Packages" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -95,8 +95,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "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 2.0.9, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1" //AppPkg + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.2.2-1" //AppPkg Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -127,8 +127,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "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 2.0.9, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1" //AppPkg + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.2.2-1" //AppPkg Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -159,8 +159,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request for retrieving a App Package referred with a wrong ID" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -196,8 +196,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request for an existing App Package without credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -228,8 +228,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request for an existing App Package with wrong credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -262,8 +262,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request for an existing App Package without credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -296,8 +296,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "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 2.0.9, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -330,8 +330,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request to delete an existing App Package without credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.4", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.4", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -371,8 +371,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "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 2.0.9, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -413,8 +413,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request for deleting an App Package referred with a wrong ID" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.4", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.4", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -446,7 +446,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO sends an error when it receives a malformed request to modify the operational state of an application package" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.3" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -481,8 +481,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request to modify an existing App Package without credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.3", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -518,8 +518,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "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 2.0.9, clause 7.3.2.3.3", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.3", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -555,8 +555,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request for updating an App Package referred with a wrong ID" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.4", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.4", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -589,8 +589,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request to retrieve an application descriptor referred with a wrong app package ID" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.6.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.6.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -622,7 +622,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO fails to retrieve the AppD from an App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.6.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.6.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -656,8 +656,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO responds with an error when it receives a request to retrieve the AppDescriptor from an existing App Package with wrong credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.6.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.6.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -690,7 +690,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO service fails retrieving Subscriptions on AppPackages when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -723,7 +723,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO service fails retrieving Subscriptions on AppPackages when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -759,15 +759,13 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO service sends an error when it receives a malformed request for creating a new subscription on AppPackages" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.1" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; + the IUT entity being_in idle_state } Expected behaviour @@ -801,7 +799,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO service fails creating new Subscription on AppPackages when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.1" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -843,7 +841,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO service fails creating new Subscription on AppPackages when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.1" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -886,7 +884,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO service retrieving a specific subscription on AppPackages when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -923,7 +921,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -963,7 +961,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO service sends an error when it receives a query for a subscription on AppPackages with a wrong identifier" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -1001,7 +999,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO service fails deleting a specific subscription on AppPackages when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.4" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -1038,7 +1036,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test objective "Check that MEO service fails deleting a specific subscription on AppPackages when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.4" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -1078,7 +1076,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "Check that MEO service sends an error when it receives a deletion request for a subscription on AppPackages with a wrong identifier" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.4" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT diff --git a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 similarity index 93% rename from Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 rename to Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 index e2daae6..ec9d864 100644 --- a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 +++ b/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 @@ -24,9 +24,9 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO creates a new App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1", //OnboardedAppPkgInfo - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1" //AppPkg + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1", //OnboardedAppPkgInfo + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.2.2-1" //AppPkg Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -80,8 +80,8 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO returns the list of App Packages when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -131,8 +131,8 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO returns the an App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -178,7 +178,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO deletes an App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.4" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -214,7 +214,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { - DELETION_PENDING, ABORT " - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.3" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -247,7 +247,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO returns the Application Descriptor contained on a on-boarded Application Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.6.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.6.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -284,7 +284,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO service sends a Application Package Subscription when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.1" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -330,7 +330,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO service returns the list of Application Package Subscriptions when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -377,7 +377,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO service returns an Application Package Subscription when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.2" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -421,7 +421,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test objective "Check that MEO service deletes an Application Package Subscription when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.4" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -456,7 +456,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { "Check that the MEO service sends a application package notification if the MEO service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.5.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.5.1" Config Id Config_MEC_1 PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS diff --git a/Test Purposes/MEO/Mx2/UeApps/SysUeApplications.tplan2 b/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 similarity index 100% rename from Test Purposes/MEO/Mx2/UeApps/SysUeApplications.tplan2 rename to Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 diff --git a/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 deleted file mode 100644 index 29b92d0..0000000 --- a/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 +++ /dev/null @@ -1,74 +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 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_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/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 deleted file mode 100644 index e02bbf9..0000000 --- a/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 +++ /dev/null @@ -1,176 +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 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_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_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_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_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/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 similarity index 78% rename from Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 rename to Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 index 48628e3..385b22c 100644 --- a/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 @@ -12,90 +12,92 @@ 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_BI { +Package MEC010_2_MEPM_MM3_PKGM_BI { import all from MEC_Common; - + Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_002b_BO_BI_004" //Negative case 404 Not found + TP Id "TP_MEC_MEPM_PKGM_001_BR" //Negative case 400 Bad request Test objective "Check that MEPM responds with an error when it receives - a request for returning a App Package referred with a wrong ID" + a malformed request for requesting the list of existing App Packages" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection 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 - ; + the IUT entity being_in idle_state } Expected behaviour ensure that { when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}" //wrong AppPackageID + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages", + query_parameters containing + operationalStatus indicating value ENABLED // the query parameter should be operationalState not operationalStatus + ; ; from the MEO entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" + status set to "400 Bad Request" ; to the MEO entity } } - } - - + } + Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_002a_BO_BI_001" //Negative case 400 Bad request + TP Id "TP_MEC_MEPM_PKGM_002_NF" //Negative case 404 Not found Test objective "Check that MEPM responds with an error when it receives - a malformed request for requesting the list of existing App Packages" + a request for returning a App Package referred with a wrong ID" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity being_in idle_state + the IUT entity "not" having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; } Expected behaviour ensure that { when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages", - query_parameters containing - operationalStatus indicating value ENABLED // the query parameter should be operationalState not operationalStatus - ; + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" ; from the MEO entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" + status set to "404 Not Found" ; to the MEO entity } } } + + - Test Purpose { +/* + Test Purpose { TP Id "TP_MEC_MEPM_MM3_PKGM_002a_BO_BI_002" //Negative case 401 Unauthorized - no token Test objective "Check that MEPM responds with an error when it receives a request for an existing App Package without credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -127,8 +129,8 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "Check that MEPM responds with an error when it receives a request for an existing App Package with wrong credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -161,8 +163,8 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "Check that MEPM responds with an error when it receives a request an existing App Package without credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -202,8 +204,8 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "Check that MEPM responds with an error when it receives a request for creating a new App Package with wrong credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -234,7 +236,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } } } - + Test Purpose { @@ -243,7 +245,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test objective "Check that MEPM fails to retrieve the AppD from an App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.4.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -277,8 +279,8 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "Check that MEPM responds with an error when it receives a request to retrieve the AppDescriptor from an existing App Package with wrong credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.4.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -311,7 +313,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test objective "Check that MEPM fails to retrieve the Package Content from an App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.3.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -345,8 +347,8 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "Check that MEPM responds with an error when it receives a request to retrieve the Package Content from an existing App Package with wrong credentials" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.3.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.3.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -379,7 +381,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test objective "Check that MEPM service fails retrieving Subscriptions on AppPackages when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -412,7 +414,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test objective "Check that MEPM service fails retrieving Subscriptions on AppPackages when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -439,22 +441,91 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } } +*/ + + + Test Purpose { + TP Id "TP_MEC_MEPM_PKGM_003_NF" //Negative case 404 Not found + + Test objective + "Check that MEPM responds with an error when it receives + a request for returning a App Descriptor referred with a wrong App Package ID" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity "not" having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/app_descriptor" + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEO entity + } + } + } + Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001_BO_BI_001" + TP Id "TP_MEC_MEPM_PKGM_004_NF" //Negative case 404 Not found Test objective - "Check that MEPM service fails creating new Subscription on AppPackages when requested using incorrect parameters" + "Check that MEPM responds with an error when it receives + a request for returning a application package content referred with a wrong App Package ID" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity "not" having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appPkgContent" + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_PKGM_005_BR" + + Test objective + "Check that MEPM service sends an error when it receives a + malformed request for creating a new subscription on AppPackages" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.1" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; + the IUT entity being_in idle_state } @@ -465,7 +536,6 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { uri indicating value "/apmi/v1/subscriptions", body containing AppPkgSubscription containing - callbackUri set to URI, subscriptionType set to "ONBOARDING" // Enum should be "ON-BOARDING" ; ; @@ -481,14 +551,14 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } } - + /* Test Purpose { TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001_BO_BI_002" Test objective "Check that MEPM service fails creating new Subscription on AppPackages when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.1" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -530,7 +600,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test objective "Check that MEPM service fails creating new Subscription on AppPackages when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.1" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -571,7 +641,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test objective "Check that MEPM service fails retrieving a specific subscription on AppPackages when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -608,7 +678,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test objective "Check that MEPM service fails retrieving a specific subscription on AppPackages when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -637,21 +707,24 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } } } - + */ Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_004_BO_BI_003" + TP Id "TP_MEC_MEPM_PKGM_007_NF" Test objective - "Check that MEPM service fails retrieving a specific subscription on AppPackages when requested using wrong identifier" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.2" + "Check that MEPM service sends an error when it receives a query for a subscription on AppPackages + with a wrong identifier" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity being_in idle_state + the IUT entity "not" having a Subscription containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; } @@ -659,7 +732,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{WRONG_SUBSCRIPTION_ID}" + uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEO entity } @@ -673,14 +746,14 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } - +/* Test Purpose { TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_003_BO_BI_001" Test objective "Check that MEPM service fails deleting a specific subscription on AppPackages when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.4" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -717,7 +790,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test objective "Check that MEPM service fails deleting a specific subscription on AppPackages when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.4" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -746,21 +819,24 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } } } - + */ Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_003_BO_BI_001" + TP Id "TP_MEC_MEPM_PKGM_008_NF" Test objective - "Check that MEPM service fails deleting a specific subscription on AppPackages when requested using wrong identifier" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.4" + "Check that MEPM service sends an error when it receives a deletion request for a subscription on AppPackages + with a wrong identifier" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.4" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity being_in idle_state + the IUT entity "not" having a Subscription containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; } @@ -768,7 +844,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/subscriptions/{WRONG_SUBSCRIPTION_ID}" + uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEO entity } diff --git a/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 b/Test Purposes/MEPM/PKGM/AppPkgMgt_BV.tplan2 similarity index 59% rename from Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 rename to Test Purposes/MEPM/PKGM/AppPkgMgt_BV.tplan2 index 146966d..644184b 100644 --- a/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 +++ b/Test Purposes/MEPM/PKGM/AppPkgMgt_BV.tplan2 @@ -18,13 +18,13 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_002a" + TP Id "TP_MEC_MEPM_PKGM_001_OK" Test objective "Check that MEPM returns the list of App Packages when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -48,25 +48,16 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { body containing OnboardedAppPkgInfoList containing OnboardedAppPkgInfo containing - appPkgId set to APP_PKG_ID, + appPkgId set to ON_BOARDED_APP_PKG_ID, appDId set to APPD_ID, - appName set to APP_NAME, //name changed from appPkgName to appName - appSoftwareVersion set to APP_SOFTWARE_VERSION, - appDVersion set to APPD_VERSION, - checksum set to CHECKSUM, - softwareImagesList containing - AppPkgSWImageInfo containing - appPkgSWImageData set to any_value - ; - ;, - appPkgPath set to APP_PKG_PATH, - operationalState set to "ENABLED", - usageState set to "NOT_IN_USE", - _links containing - self set to any_value, //LINKTYPE VALUE, HOW TO DEFINE IT? - appD set to any_value, //LINKTYPE VALUE, HOW TO DEFINE IT? - appPkgContent set to any_value //LINKTYPE VALUE, HOW TO DEFINE IT? - ; + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + attribute softwareImages, + operationalState set to any_value, + usageState set to any_value, + attribute _links ; ; ; @@ -78,28 +69,27 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { //Individual APP packages Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_002b" + TP Id "TP_MEC_MEPM_PKGM_002_OK" Test objective "Check that MEPM returns the an App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 PICS Selection 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; + appPkgId indicating value ON_BOARDED_APP_PKG_ID; } Expected behaviour ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}"; + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; from the MEO entity } then { @@ -107,25 +97,16 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { status set to "200 OK", body containing OnboardedAppPkgInfo containing - appPkgId set to APP_PKG_ID, - appDId set to APPD_ID, - appName set to APP_NAME, //name changed from appPkgName to appName - appSoftwareVersion set to APP_SOFTWARE_VERSION, - appDVersion set to APPD_VERSION, - checksum set to CHECKSUM, - softwareImagesList containing - AppPkgSWImageInfo containing - appPkgSWImageData set to any_value - ; - ;, - appPkgPath set to APP_PKG_PATH, - operationalState set to "ENABLED", - usageState set to "NOT_IN_USE", - _links containing - self set to any_value, //LINKTYPE VALUE, HOW TO DEFINE IT? - appD set to any_value, //LINKTYPE VALUE, HOW TO DEFINE IT? - appPkgContent set to any_value //LINKTYPE VALUE, HOW TO DEFINE IT? - ; + appPkgId set to ON_BOARDED_APP_PKG_ID, + appDId set to any_value, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + attribute softwareImages, + operationalState set to any_value, + usageState set to any_value, + attribute _links ; ; ; to the MEO entity @@ -135,12 +116,12 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_005" + TP Id "TP_MEC_MEPM_PKGM_003_OK" Test objective "Check that MEPM returns the Application Descriptor contained on a on-boarded Application Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.4.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -155,30 +136,29 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}/app_descriptor" + uri indicating value "/apmi/v1/app_packages/{appPkgId}/app_descriptor", + accept set to ACCEPTED_CONTENT_TYPE ; from the MEO entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "200 OK", - body containing - AppD set to FILE //SHOULD BE A FILE OR A ZIPPED FILE. HOW CAN WE CHECK THAT? - ; + body set to FILE ; to the MEO entity } } } - + Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_006" + TP Id "TP_MEC_MEPM_PKGM_004_OK" Test objective "Check that MEPM returns the content on a on-boarded Application Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.3.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -193,7 +173,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}/appPkgContent" + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}/appPkgContent" ; from the MEO entity } @@ -201,7 +181,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { the IUT entity sends a HTTP_RESPONSE containing status set to "200 OK", body containing - AppD set to FILE //SHOULD BE A FILE OR A ZIPPED FILE. HOW CAN WE CHECK THAT? + AppD set to FILE ; ; to the MEO entity @@ -210,20 +190,18 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001" + TP Id "TP_MEC_MEPM_PKGM_005_OK" Test objective - "Check that MEPM service sends a Application Package Subscription when requested" + "Check that MEPM service returns an application package subscription when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.1" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; + the IUT entity being_in idle_state } Expected behaviour @@ -234,7 +212,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { body containing AppPkgSubscription containing callbackUri set to URI, - subscriptionType set to "ON_BOARDING" + subscriptionType set to SUBSCRIPTION_TYPE ; ; ; @@ -245,12 +223,10 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { status set to "201 Created", body containing AppPkgSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", + subscriptionId set to any_value, + subscriptionType set to SUBSCRIPTION_TYPE, callbackUri set to URI, - _links containing - self set to "/apmi/v1/subscriptions/{subscriptionId}" - ; + attribute _links ; ; ; @@ -260,19 +236,19 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_002" + TP Id "TP_MEC_MEPM_PKGM_006_OK" Test objective "Check that MEPM service returns the list of Application Package Subscriptions when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID ; } @@ -291,10 +267,10 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { AppPkgSubscriptionInfoList containing AppPkgSubscriptionInfo containing subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI, + subscriptionType set to any_value, + callbackUri set to any_value, _links containing - self set to "/apmi/v1/subscriptions/{subscriptionId}" + self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; ; @@ -307,19 +283,19 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_004" + TP Id "TP_MEC_MEPM_PKGM_007_OK" Test objective "Check that MEPM service returns an Application Package Subscription when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.2" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity having a App_Package containing - subscriptionId indicating value SUBCRIPTION_ID + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID ; } @@ -327,7 +303,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEO entity } @@ -337,10 +313,10 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { body containing AppPkgSubscriptionInfo containing subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI, + subscriptionType set to any_value, + callbackUri set to any_value, _links containing - self set to uri + self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; ; @@ -351,19 +327,19 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_003" + TP Id "TP_MEC_MEPM_PKGM_008_OK" Test objective "Check that MEPM service deletes an Application Package Subscription when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.4" Config Id Config_MEC_5 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity having a App_Package containing - subscriptionId indicating value SUBCRIPTION_ID + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID ; } @@ -371,7 +347,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEO entity } @@ -385,22 +361,23 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_NOTIF_01" + TP Id "TP_MEC_MEPM_PKGM_009_OK" Test objective - "Check that the MEO service sends a application package notification - if the MEO service has an associated subscription and the event is generated" + "Check that the MEPM service sends a application package notification + if the MEPM service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.7.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.7.3.1" - Config Id Config_MEC_1 + Config Id Config_MEC_3 PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS Initial conditions with { - the IUT entity having a MEPM_subscription containing + the IUT entity having a Subscription containing subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI + subscriptionType set to SUBSCRIPTION_TYPE, + callbackUri set to CALLBACK_URI, + attribute _links ; } @@ -408,20 +385,20 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { ensure that { when { the IUT entity generates a on_boarding_event containing - subscriptionId set to SUBSCRIPTION_ID; + notificationId set to NOTIFICATION_ID; } then { the IUT entity sends a vPOST containing uri indicating value CALLBACK_URI, body containing notificationId set to NOTIFICATION_ID, - notificationType indicating value "ON_BOARDING", + notificationType indicating value any_value, subscriptionId set to SUBSCRIPTION_ID, - timeStamp set to DATE_TIME, - appPkgId set to APP_PKG_ID, - appDId set to APPD_ID, + timeStamp set to any_value, + appPkgId set to any_value, + appDId set to any_value, _links containing - self set to "/apmi/v1/subscriptions/{subscriptionId}" + self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; ; ; to the MEC_SUB entity diff --git a/Test Purposes/Common/CommonUnauthFailure_BI.tplan2 b/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 similarity index 100% rename from Test Purposes/Common/CommonUnauthFailure_BI.tplan2 rename to Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 diff --git a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 b/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 similarity index 65% rename from Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 rename to Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 index 86b9d9c..3529a55 100644 --- a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 +++ b/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 @@ -12,21 +12,22 @@ 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_APP_INSTANCE_LCM_BO_BI { +Package MEC010_2_APP_INSTANCE_LCM_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEO_LCM_001_BR" + TP Id "TP_MEC_MEX_LCM_001_BR" Test objective - "Check that MEO sends an error when it receives a malformed request for the creation of a new App Instance" + "Check that MEC API providersends an error when it receives a malformed request + for the creation of a new App Instance" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.1", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.3.2-1", //CreateAppInstanceRequest - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.3.2-1", //CreateAppInstanceRequest + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -44,28 +45,28 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { appDDDId set to APP_D_ID ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "400 Bad Request" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } /* Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_001_BO_BI_002" // No token + TP Id "TP_MEC_MEX_MM1_LCM_001_BO_BI_002" // No token Test objective - "Check that MEO fails on creation of a new App Instance when requested using no token" + "Check that MEC API providerfails on creation of a new App Instance when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.1", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.3.2-1", //CreateAppInstanceRequest - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.3.2-1", //CreateAppInstanceRequest + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -84,27 +85,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { appDId set to APP_D_ID ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_001_BO_BI_003" // Wrong token + TP Id "TP_MEC_MEX_MM1_LCM_001_BO_BI_003" // Wrong token Test objective - "Check that MEO fails on creation of a new App Instance when requested using wrong token" + "Check that MEC API providerfails on creation of a new App Instance when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.1", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.3.2-1", //CreateAppInstanceRequest - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.3.2-1", //CreateAppInstanceRequest + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -123,12 +124,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { appDId set to APP_D_ID ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -137,15 +138,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_002_BO_BI_001" // No token + TP Id "TP_MEC_MEX_MM1_LCM_002_BO_BI_001" // No token Test objective - "Check that MEO fails on retrieving the list of App Instances when requested using no token" + "Check that MEC API providerfails on retrieving the list of App Instances when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -159,26 +160,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a GET containing uri indicating value "/alcmi/v1/app_instances", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_002_BO_BI_002" // Wrong token + TP Id "TP_MEC_MEX_MM1_LCM_002_BO_BI_002" // Wrong token Test objective - "Check that MEO fails on retrieving the list of App Instances when requested using wrong token" + "Check that MEC API providerfails on retrieving the list of App Instances when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -192,26 +193,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing headers set to vHeadersInvalidToken, //wrong token uri indicating value "/alcmi/v1/app_instances" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_003_BO_BI_001" // No token + TP Id "TP_MEC_MEX_MM1_LCM_003_BO_BI_001" // No token Test objective - "Check that MEO fails on retrieving an App Instance when requested using no token" + "Check that MEC API providerfails on retrieving an App Instance when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -226,26 +227,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a GET containing uri indicating value "/alcmi/v1/app_instances/{appInstanceId}", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_003_BO_BI_002" // Wrong token + TP Id "TP_MEC_MEX_MM1_LCM_003_BO_BI_002" // Wrong token Test objective - "Check that MEO fails on retrieving an App Instance when requested using wrong token" + "Check that MEC API providerfails on retrieving an App Instance when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -260,12 +261,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing headers set to vHeadersInvalidToken, //wrong token uri indicating value "/alcmi/v1/app_instances/{appInstanceId}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -273,15 +274,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { * */ Test Purpose { - TP Id "TP_MEC_MEO_LCM_003_NF" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEX_LCM_003_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEO fails on retrieving an App Instance when requested using wrong appInstanceId" + "Check that MEC API providerfails on retrieving an App Instance when requested using wrong appInstanceId" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -295,27 +296,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { when { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } /* Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_004_BO_BI_001" // No token + TP Id "TP_MEC_MEX_MM1_LCM_004_BO_BI_001" // No token Test objective - "Check that MEO fails on deletion of an App Instance when requested using no token" + "Check that MEC API providerfails on deletion of an App Instance when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -330,26 +331,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a DELETE containing uri indicating value "/alcmi/v1/app_instances/{appInstanceId}", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_004_BO_BI_002" // Wrong token + TP Id "TP_MEC_MEX_MM1_LCM_004_BO_BI_002" // Wrong token Test objective - "Check that MEO fails on deletion of an App Instance when requested using wrong token" + "Check that MEC API providerfails on deletion of an App Instance when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -364,12 +365,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing headers set to vHeadersInvalidToken, //wrong token uri indicating value "/alcmi/v1/app_instances/{appInstanceId}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -378,15 +379,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { */ Test Purpose { - TP Id "TP_MEC_MEO_LCM_004_NF" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEX_LCM_004_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEO fails on deletion of an App Instance when requested using wrong appInstanceId" + "Check that MEC API providerfails on deletion of an App Instance when requested using wrong appInstanceId" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -400,27 +401,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { when { the IUT entity receives a vDELETE containing uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_005_BR" + TP Id "TP_MEC_MEX_LCM_005_BR" Test objective - "Check that MEO service fails to instantiate an App Instance when it receives a malformed request" + "Check that MEC API providerservice fails to instantiate an App Instance when it receives a malformed request" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.7.2-1" // InstantiateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -441,27 +442,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { appERRORId set to APP_INSTANCE_ID //wrong name of the parameter ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "400 Bad request" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_005_NF" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEX_LCM_005_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEO service fails to instantiate an App Instance when it receives a request + "Check that MEC API providerservice fails to instantiate an App Instance when it receives a request related to a not existing App Instance" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.7.2-1" // InstantiateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -475,27 +476,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { when { the IUT entity receives a vPOST containing uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/instantiate" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } /* Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_005_BO_BI_002" // No token + TP Id "TP_MEC_MEX_MM1_LCM_005_BO_BI_002" // No token Test objective - "Check that MEO fails on instantiating an App Instance when requested using no token" + "Check that MEC API providerfails on instantiating an App Instance when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.7.2-1" // InstantiateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -522,26 +523,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ; ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_005_BO_BI_003" // Wrong token + TP Id "TP_MEC_MEX_MM1_LCM_005_BO_BI_003" // Wrong token Test objective - "Check that MEO fails on instantiation of an App Instance when requested using wrong token" + "Check that MEC API providerfails on instantiation of an App Instance when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.7.2-1" // InstantiateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -568,27 +569,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ; ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } */ Test Purpose { - TP Id "TP_MEC_MEO_LCM_006_BR" + TP Id "TP_MEC_MEX_LCM_006_BR" Test objective - "Check that MEO service fails to terminate an App Instance when it receives a malformed request" + "Check that MEC API providerservice fails to terminate an App Instance when it receives a malformed request" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.9.2-1" // TerminateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -609,27 +610,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { terminationERRORType set to GRACEFULL //wrong parameter ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "400 Bad request" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_006_NF" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEX_LCM_006_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEO service fails to terminate an App Instance when it receives a request + "Check that MEC API providerservice fails to terminate an App Instance when it receives a request related to a not existing App Instance" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.9.2-1" // TerminateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -643,27 +644,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { when { the IUT entity receives a vPOST containing uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/terminate" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } /* Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_006_BO_BI_002" // No token + TP Id "TP_MEC_MEX_MM1_LCM_006_BO_BI_002" // No token Test objective - "Check that MEO fails to terminate an App Instance when requested using no token" + "Check that MEC API providerfails to terminate an App Instance when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.9.2-1" // TerminateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -685,26 +686,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { terminationType set to GRACEFULL ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_006_BO_BI_003" // Wrong token + TP Id "TP_MEC_MEX_MM1_LCM_006_BO_BI_003" // Wrong token Test objective - "Check that MEO fails to terminate an App Instance when requested using wrong token" + "Check that MEC API providerfails to terminate an App Instance when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.9.2-1" // TerminateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -726,12 +727,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { terminationType set to GRACEFULL ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -741,15 +742,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_LCM_007_BR" + TP Id "TP_MEC_MEX_LCM_007_BR" Test objective - "Check that MEO service fails to operate on an App Instance when it receives a malformed request" + "Check that MEC API providerservice fails to operate on an App Instance when it receives a malformed request" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.8.2-1" // OperateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -769,27 +770,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { changeERRORStateTo set to any_value //wrong parameter ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "400 Bad request" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_007_NF" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEX_LCM_007_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEO service fails to change the status of an App Instance when it receives a request + "Check that MEC API providerservice fails to change the status of an App Instance when it receives a request related to a not existing App Instance" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.8.2-1" // OperateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -803,27 +804,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { when { the IUT entity receives a vPOST containing uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/operate" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } /* Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_007_BO_BI_002" // No token + TP Id "TP_MEC_MEX_MM1_LCM_007_BO_BI_002" // No token Test objective - "Check that MEO fails to terminate an App Instance when requested using no token" + "Check that MEC API providerfails to terminate an App Instance when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.8.2-1" // OperateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -846,26 +847,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { changeStateTo set to STOPPED ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_007_BO_BI_003" // Wrong token + TP Id "TP_MEC_MEX_MM1_LCM_007_BO_BI_003" // Wrong token Test objective - "Check that MEO fails to terminate an App Instance when requested using wrong token" + "Check that MEC API providerfails to terminate an App Instance when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.8.2-1" // OperateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -888,12 +889,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { changeStateTo set to STOPPED ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -901,15 +902,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_008_BO_BI_001" + TP Id "TP_MEC_MEX_MM1_LCM_008_BO_BI_001" Test objective - "Check that MEO service failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using no token" + "Check that MEC API providerservice failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.9.1.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.9.1.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -923,12 +924,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a GET containing uri indicating value "/alcmi/v1/app_lcm_op_occs", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -936,15 +937,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_008_BO_BI_002" + TP Id "TP_MEC_MEX_MM1_LCM_008_BO_BI_002" Test objective - "Check that MEO service failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using wrong token" + "Check that MEC API providerservice failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.9.1.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.9.1.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -958,12 +959,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing uri indicating value "/alcmi/v1/app_lcm_op_occs", headers set to vHeadersInvalidToken //wrong token - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -975,15 +976,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_009_BO_BI_001a" + TP Id "TP_MEC_MEX_MM1_LCM_009_BO_BI_001a" Test objective - "Check that MEO service failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using no token" + "Check that MEC API providerservice failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -999,12 +1000,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a GET containing uri indicating value "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -1012,15 +1013,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_009_BO_BI_001b" + TP Id "TP_MEC_MEX_MM1_LCM_009_BO_BI_001b" Test objective - "Check that MEO service failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using wrong token" + "Check that MEC API providerservice failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1036,12 +1037,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing uri indicating value "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}", headers set to vHeadersInvalidToken //wrong token - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -1051,15 +1052,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { */ Test Purpose { - TP Id "TP_MEC_MEO_LCM_009_NF" + TP Id "TP_MEC_MEX_LCM_009_NF" Test objective - "Check that MEO service sends an error when it receives a query for a not existing LCM Operation Occurrency" + "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Operation Occurrency" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -1074,29 +1075,29 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { when { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/app_lcm_op_occs/{NON_EXISTENT_APP_LCM_OP_OCC_ID}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_010_BR" + TP Id "TP_MEC_MEX_LCM_010_BR" Test objective - "Check that MEO service sends an error when it receives a malformed request to create a LCM Subscription" + "Check that MEC API providerservice sends an error when it receives a malformed request to create a LCM Subscription" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.13.2-1", // AppInstSubscriptionRequest - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.13.2-1", // AppInstSubscriptionRequest + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { @@ -1114,13 +1115,13 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ; ; ; - from the MEC_OSS entity + from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "400 Bad Request" ; - to the MEC_OSS entity + to the MEC_CONSUMER entity } } } @@ -1129,14 +1130,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { /* Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_001a_BO_BI_002" + TP Id "TP_MEC_MEX_MM1_LCM_001a_BO_BI_002" Test objective - "Check that MEO service fails to send a LCM Subscription when requested using no token" + "Check that MEC API providerservice fails to send a LCM Subscription when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.1" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1150,12 +1151,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a GET containing uri indicating value "/alcmi/v1/subscriptions", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -1163,14 +1164,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_001b_BO_BI_002" + TP Id "TP_MEC_MEX_MM1_LCM_001b_BO_BI_002" Test objective - "Check that MEO service fails to send a LCM Subscription when requested using wrong token" + "Check that MEC API providerservice fails to send a LCM Subscription when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.10.1.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1184,25 +1185,25 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing uri indicating value "/alcmi/v1/subscriptions", headers set to vHeadersInvalidToken //wrong token - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_002_BO_BI_001" + TP Id "TP_MEC_MEX_MM1_LCM_SUB_002_BO_BI_001" Test objective - "Check that MEO service fails to retrieve the list of LCM Subscriptions when requested using no token" + "Check that MEC API providerservice fails to retrieve the list of LCM Subscriptions when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1216,12 +1217,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a GET containing uri indicating value "/alcmi/v1/subscriptions", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -1229,14 +1230,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_002_BO_BI_002" + TP Id "TP_MEC_MEX_MM1_LCM_SUB_002_BO_BI_002" Test objective - "Check that MEO service fails to retrieve the list of LCM Subscriptions when requested using wrong token" + "Check that MEC API providerservice fails to retrieve the list of LCM Subscriptions when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1250,26 +1251,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing uri indicating value "/alcmi/v1/subscriptions", headers set to vHeadersInvalidToken //wrong token - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_003a_BO_BI_001" + TP Id "TP_MEC_MEX_MM1_LCM_SUB_003a_BO_BI_001" Test objective - "Check that MEO service fails to retrieve a LCM Subscription when requested using no token" + "Check that MEC API providerservice fails to retrieve a LCM Subscription when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1285,12 +1286,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a GET containing uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -1298,14 +1299,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_003b_BO_BI_001" + TP Id "TP_MEC_MEX_MM1_LCM_SUB_003b_BO_BI_001" Test objective - "Check that MEO service fails to retrieve a LCM Subscription when requested using wrong token" + "Check that MEC API providerservice fails to retrieve a LCM Subscription when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1321,12 +1322,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}", headers set to vHeadersInvalidToken //wrong token - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -1334,14 +1335,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { */ Test Purpose { - TP Id "TP_MEC_MEO_LCM_012_NF" + TP Id "TP_MEC_MEX_LCM_012_NF" Test objective - "Check that MEO service sends an error when it receives a query for a not existing LCM Subscription" + "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Subscription" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -1356,26 +1357,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { when { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } /* Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_004_BO_BI_001" + TP Id "TP_MEC_MEX_MM1_LCM_SUB_004_BO_BI_001" Test objective - "Check that MEO service fails to delete a LCM Subscription when requested using no token" + "Check that MEC API providerservice fails to delete a LCM Subscription when requested using no token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1391,12 +1392,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a DELETE containing uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}", "not" authorization //Token is mandatory - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -1404,14 +1405,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_004_BO_BI_002" + TP Id "TP_MEC_MEX_MM1_LCM_SUB_004_BO_BI_002" Test objective - "Check that MEO service fails to delete a LCM Subscription when requested using wrong token" + "Check that MEC API providerservice fails to delete a LCM Subscription when requested using wrong token" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT @@ -1427,12 +1428,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { the IUT entity receives a HttpMsg containing uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}", headers set to vHeadersInvalidToken //wrong token - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "401 Unauthorized" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -1440,14 +1441,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { */ Test Purpose { - TP Id "TP_MEC_MEO_LCM_013_NF" + TP Id "TP_MEC_MEX_LCM_013_NF" Test objective - "Check that MEO service sends an error when it receives a deletion request for a not existing LCM Subscription" + "Check that MEC API providerservice sends an error when it receives a deletion request for a not existing LCM Subscription" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -1462,12 +1463,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { when { the IUT entity receives a vDELETE containing uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } diff --git a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 b/Test Purposes/MEX/LCM/AppInstanceMgmt_BV.tplan2 similarity index 74% rename from Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 rename to Test Purposes/MEX/LCM/AppInstanceMgmt_BV.tplan2 index 2aad776..a96c300 100644 --- a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 +++ b/Test Purposes/MEX/LCM/AppInstanceMgmt_BV.tplan2 @@ -12,7 +12,7 @@ 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_APP_INSTANCE_LCM { +Package MEC010_2_APP_INSTANCE_LCM { import all from MEC_Common; @@ -20,16 +20,16 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_LCM_001_OK" + TP Id "TP_MEC_MEX_LCM_001_OK" // It applies for MM1 and MM3 on MEC10-2 Test objective - "Check that MEO creates a new App Package when requested" + "Check that MEC API provider creates a new App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.1", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.3.2-1", //CreateAppInstanceRequest - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.3.2-1", //CreateAppInstanceRequest + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -47,7 +47,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { appDId set to APP_D_ID ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -65,22 +65,22 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { attribute _links ; ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_002_OK" + TP Id "TP_MEC_MEX_LCM_002_OK" Test objective - "Check that MEO retrieves the list of App instances when requested" + "Check that MEC API provider retrieves the list of App instances when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -94,7 +94,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { when { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/app_instances" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -114,21 +114,21 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ; ; ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_003_OK" + TP Id "TP_MEC_MEX_LCM_003_OK" Test objective - "Check that MEO retrieves an App Package when requested" + "Check that MEC API provider retrieves an App Package when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.9, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -142,7 +142,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { when { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -160,7 +160,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { attribute _links ; ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -168,14 +168,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_LCM_004_OK" + TP Id "TP_MEC_MEX_LCM_004_OK" Test objective - "Check that MEO service deletes an App Instance when requested" + "Check that MEC API provider service deletes an App Instance when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.2.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.4" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -189,27 +189,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { when { the IUT entity receives a vDELETE containing uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "204 No Content" - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_005_OK" + TP Id "TP_MEC_MEX_LCM_005_OK" Test objective - "Check that MEO service instantiates an App Instance when requested" + "Check that MEC API provider service instantiates an App Instance when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.7.2-1" // InstantiateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -231,7 +231,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { selectedMECHostInfo set to SELECTED_MEC_HOST_INFO ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -239,22 +239,22 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { headers containing Location set to any_value ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_006_OK" + TP Id "TP_MEC_MEX_LCM_006_OK" Test objective - "Check that MEO service terminates an App Instance when requested" + "Check that MEC API provider service terminates an App Instance when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.9.2-1" // TerminateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -275,7 +275,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { terminationType set to TERMINATION_TYPE ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -283,7 +283,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { headers containing Location set to any_value ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -291,18 +291,18 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_LCM_007_OK" + TP Id "TP_MEC_MEX_LCM_007_OK" Test objective - "Check that MEO service changes the status of an App Instance from its INITIAL_STATE to a given FINAL_STATE, when requested. + "Check that MEC API provider service changes the status of an App Instance from its INITIAL_STATE to a given FINAL_STATE, when requested. The following combinations INITIAL_STATE - FINAL_STATE are supported: - STARTED/STOP - STOPPED/START" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.8.2-1" // OperateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -324,7 +324,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { changeStateTo set to FINAL_STATE ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -332,7 +332,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { headers containing Location set to any_value ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } @@ -340,15 +340,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_LCM_008_OK" + TP Id "TP_MEC_MEX_LCM_008_OK" Test objective - "Check that MEO service retrieves info about LCM Operation Occurrency on App Instances when requested" + "Check that MEC API provider service retrieves info about LCM Operation Occurrency on App Instances when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.9.1.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.9.1.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -363,7 +363,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { when { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/app_lcm_op_occs" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -383,22 +383,22 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ; ; ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_009_OK" + TP Id "TP_MEC_MEX_LCM_009_OK" Test objective - "Check that MEO service retrieves info about LCM Operation Occurrency on an App Instance when requested" + "Check that MEC API provider service retrieves info about LCM Operation Occurrency on an App Instance when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -413,7 +413,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { when { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}" - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -433,24 +433,24 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ; ; ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_010_OK" + TP Id "TP_MEC_MEX_LCM_010_OK" Test objective - "Check that MEO service creates a LCM Subscription when requested, where the subscription request can + "Check that MEC API provider service creates a LCM Subscription when requested, where the subscription request can have SUBSCRIPTION_TYPE AppInstanceStateChangeSubscription or AppLcmOpOccStateChangeSubscription" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.13.2-1", // AppInstSubscriptionRequest - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.10.2-1" // AppInstSubscriptionInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.13.2-1", // AppInstSubscriptionRequest + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.10.2-1" // AppInstSubscriptionInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { @@ -469,7 +469,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ; ; ; - from the MEC_OSS entity + from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -483,7 +483,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ; ; ; - to the MEC_OSS entity + to the MEC_CONSUMER entity } } } @@ -492,18 +492,18 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_LCM_011_OK" + TP Id "TP_MEC_MEX_LCM_011_OK" Test objective - "Check that MEO service sends the list of LCM Subscriptions when requested" + "Check that MEC API provider service sends the list of LCM Subscriptions when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.13.2-1", // AppInstSubscriptionRequest - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.15.2-1", // AppLcmOpOccSubscriptionRequest - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.10.2-1", // AppInstSubscriptionInfo - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.13.2-1", // AppInstSubscriptionRequest + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.15.2-1", // AppLcmOpOccSubscriptionRequest + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.10.2-1", // AppInstSubscriptionInfo + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { @@ -520,7 +520,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/subscriptions" ; - from the MEC_OSS entity + from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -534,23 +534,23 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ; ; ; - to the MEC_OSS entity + to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEO_LCM_012_OK" + TP Id "TP_MEC_MEX_LCM_012_OK" Test objective - "Check that MEO service sends the information about an existing LCM subscription when requested" + "Check that MEC API provider service sends the information about an existing LCM subscription when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.4.3.2", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.10.2-1", // AppInstSubscriptionInfo - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.4.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.10.2-1", // AppInstSubscriptionInfo + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { @@ -567,7 +567,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity receives a vGET containing uri indicating value "/alcmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; - from the MEC_OSS entity + from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing @@ -581,7 +581,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ; ; ; - to the MEC_OSS entity + to the MEC_CONSUMER entity } } } @@ -591,14 +591,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_LCM_013_OK" + TP Id "TP_MEC_MEX_LCM_013_OK" Test objective - "Check that MEO service delete an existing LCM Subscription when requested" + "Check that MEC API provider service delete an existing LCM Subscription when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.4" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { @@ -613,13 +613,13 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity receives a vDELETE containing uri indicating value "/alcmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; - from the MEC_OSS entity + from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "204 No Content" ; - to the MEC_OSS entity + to the MEC_CONSUMER entity } } } @@ -628,14 +628,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_INSM_WORKFLOW" + TP Id "TP_MEC_MEX_INSM_WORKFLOW" Test objective - "Check that MEO instantiates a new application when requested" + "Check that MEC API provider instantiates a new application when requested" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.1" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.1" - Config Id Config_MEC_2 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { @@ -652,7 +652,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { appDId set to APPD_ID ; ; - ; from the MEC_OSS entity + ; from the MEC_CONSUMER entity } then { the IUT entity sends a vPOST containing @@ -682,7 +682,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ; ; - ; to the MEC_OSS entity + ; to the MEC_CONSUMER entity } } } diff --git a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 b/Test Purposes/MEX/LCM/AppInstanceMgmt_notifications.tplan2 similarity index 81% rename from Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 rename to Test Purposes/MEX/LCM/AppInstanceMgmt_notifications.tplan2 index fa360eb..0b28080 100644 --- a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 +++ b/Test Purposes/MEX/LCM/AppInstanceMgmt_notifications.tplan2 @@ -12,22 +12,22 @@ 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_LCM_NOTIF { +Package MEC010_2_LCM_NOTIF { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEO_LCM_014_OK" + TP Id "TP_MEC_MEX_LCM_014_OK" Test objective - "Check that the MEO sends a notification to the subscriber when an application lcm change event occurs" + "Check that MEC API provider sends a notification to the subscriber when an application lcm change event occurs" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.5.3.1", - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.18.2-1", // AppLcmOpOccNotification - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.12.2-1" // AppInstNotification + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.5.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.18.2-1", // AppLcmOpOccNotification + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.12.2-1" // AppInstNotification - Config Id Config_MEC_3 + Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_NOTIFICATIONS Initial conditions with { diff --git a/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 b/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 new file mode 100644 index 0000000..151999a --- /dev/null +++ b/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 @@ -0,0 +1,800 @@ +/* +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 MEC021_APP_MP1_AMS_BO_BI { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_SRV_AMS_001_BR" // Negative test: 400 Bad request + + Test objective + "Check that the AMS service returns an error when receives a query about a registered application mobility service with wrong parameters" + + Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.1" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS + + Initial conditions with { + the IUT entity having a AppMobilityServiceInfo containing + appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/amsi/v1/appMobilityServices", + query_parameters containing + appMobilityService indicating value APP_MOBILITY_SERVICE_ID //wrong parameter, it should be appMobilityServiceId + ; + ; from the AMS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the AMS_CLIENT entity + } + } + } + +// Test Purpose { +// TP Id "TP_MEC_AMS_01_NEG_B" // Negative test: 401 Unauthorized (No token) +// +// Test objective +// "Check that the AMS service returns an error when receives a query about a registered application mobility service without token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.1" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AppMobilityServiceInfo containing +// appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value "/amsi/v1/appMobilityServices", +// "not" authorization +// ; from the AMS_CLIENT entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "401 Unauthorized" +// ; to the AMS_CLIENT entity +// } +// } +// } +// +// Test Purpose { +// TP Id "TP_MEC_AMS_01_NEG_C" // Negative test: 401 Unauthorized (Wrong token) +// +// Test objective +// "Check that the AMS service returns an error when receives a query about a registered application mobility service with a wrong token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.1" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AppMobilityServiceInfo containing +// appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value "/amsi/v1/appMobilityServices", +// headers set to vHeadersInvalidToken +// ; from the AMS_CLIENT entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "401 Unauthorized" +// ; to the AMS_CLIENT entity +// } +// } +// } + + Test Purpose { + TP Id "TP_MEC_SRV_AMS_002_BR" // Negative test: 400 Bad request + + Test objective + "Check that the AMS service sends an error when it receives a malformed request to create a new application mobility service" + + Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.4" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS + + 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 "/amsi/v1/appMobilityServices", + body containing + RegistrationRequest containing //Note: at the moment the only element that is defined is RegistrationInfo. Not sure if they are the same. + serviceConsumerId containing + appInstance set to APP_INS_ID //wrong parameter, it should be appInstanceId + ; + ; + ; + ; from the AMS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the AMS_CLIENT entity + } + } + } + +// Test Purpose { +// TP Id "TP_MEC_AMS_02_NEG_B" // Negative test: 401 Unauthorized - no token +// +// Test objective +// "Check that the AMS service sends an error when it receives a request to create a new application mobility service without token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.4" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity being_in idle_state +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a POST containing +// uri indicating value "/amsi/v1/appMobilityServices", +// "not" authorization +// ; from the AMS_CLIENT entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "401 Unauthorized" +// ; to the AMS_CLIENT entity +// } +// } +// } +// +// Test Purpose { +// TP Id "TP_MEC_AMS_02_NEG_C" // Negative test: 401 Unauthorized - wrong token +// +// Test objective +// "Check that the AMS service sends an error when it receives a request to create a new application mobility service with a wrong token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.4" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity being_in idle_state +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a POST containing +// uri indicating value "/amsi/v1/appMobilityServices", +// headers set to vHeadersInvalidToken +// ; from the AMS_CLIENT entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "401 Unauthorized" +// ; to the AMS_CLIENT entity +// } +// } +// } + + Test Purpose { + TP Id "TP_MEC_SRV_AMS_003_BR" // Negative test: 400 Bad request + + Test objective + "Check that the AMS service sends an error when it receives a malformed query about the available subscriptions" + + Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS + + Initial conditions with { + the IUT entity having a AMS_subscription containing + _link containing + self indicating value SUBSCRIPTION_HREF_VALUE + ;, + subscriptionType indicating value SUBSCRIPTION_TYPE + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/amsi/v1/subscriptions/", + query_parameters containing + subscriptionTyp indicating value SUBSCRIPTION_TYPE //wrong parameter, it should be subscriptionType + ; + ; 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_MEC_AMS_03_NEG_B" // Negative test: 401 Unauthorized - no token +// +// Test objective +// "Check that the AMS service sends an error when it receives an information query about the available subscriptions without token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AMS_subscription containing +// _link containing +// self indicating value SUBSCRIPTION_HREF_VALUE +// ;, +// subscriptionType indicating value "MobilityProcedureSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value "/amsi/v1/subscriptions/", +// "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_MEC_AMS_03_NEG_C" // Negative test: 401 Unauthorized - wrong token +// +// Test objective +// "Check that the AMS service sends an error when it receives an information query about the available subscriptions with a wrong token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AMS_subscription containing +// _link containing +// self indicating value SUBSCRIPTION_HREF_VALUE +// ;, +// subscriptionType indicating value "MobilityProcedureSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value "/amsi/v1/subscriptions/", +// 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_MEC_SRV_AMS_004_BR" // Negative test: 400 Bad request + + Test objective + "Check that the AMS service sends an error when it receives a malformed request to create a notification subscription + Permitted SUBSCRIPTION_TYPE are: + - MobilityProcedureSubscription + - AdjacentAppInfoSubscription" + + Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS + + 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 "/amsi/v1/subscriptions/", + body containing + NotificationSubscription containing + subscriptionTyp indicating value SUBSCRIPTION_TYPE, //wrong parameter, it should be subscriptionType + callbackReference indicating value CALLBACK_REFERENCE + ; + ; + ; from the AMS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the AMS_CLIENT entity + } + } + } + +// Test Purpose { +// TP Id "TP_MEC_AMS_04_NEG_B" // Negative test: 401 Unauthorized - no token +// +// Test objective +// "Check that the AMS service sends an error when it receives a request to create a notification subscription without token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity being_in idle_state +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a POST containing +// uri indicating value "/amsi/v1/subscriptions/", +// "not" authorization +// ; from the AMS_CLIENT entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "401 Unauthorized" +// ; to the AMS_CLIENT entity +// } +// } +// } +// +// Test Purpose { +// TP Id "TP_MEC_AMS_04_NEG_C" // Negative test: 401 Unauthorized - wrong token +// +// Test objective +// "Check that the AMS service sends an error when it receives a request to create a notification subscription with a wrong token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity being_in idle_state +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a POST containing +// uri indicating value "/amsi/v1/subscriptions/", +// headers set to vHeadersInvalidToken +// ; from the AMS_CLIENT entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "401 Unauthorized" +// ; to the AMS_CLIENT entity +// } +// } +// } + +// Test Purpose { +// TP Id "TP_MEC_AMS_05_NEG_B" // Negative test: 401 Unauthorized - no token +// +// Test objective +// "Check that the AMS service returns an error when receives a query about a specific subscription without token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AMS_subscription containing +// _link containing +// self indicating value SUBSCRIPTION_HREF_VALUE +// ;, +// callbackReference indicating value CALLBACK_REFERENCE, +// subscriptionType indicating value "MobilityProcedureSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value SUBSCRIPTION_HREF_VALUE +// "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_MEC_AMS_05_NEG_C" // Negative test: 401 Unauthorized - wrong token +// +// Test objective +// "Check that the AMS service returns an error when receives a query about a specific subscription with a wrong token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AMS_subscription containing +// _link containing +// self indicating value SUBSCRIPTION_HREF_VALUE +// ;, +// callbackReference indicating value CALLBACK_REFERENCE, +// subscriptionType indicating value "MobilityProcedureSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value SUBSCRIPTION_HREF_VALUE, +// 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_MEC_SRV_AMS_005_NF" // Negative test: 404 Not Found + + Test objective + "Check that the AMS service returns an error when receives a query about a not existing subscription" + + Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS + + Initial conditions with { + the IUT entity "not" having a AMS_subscription containing + _link containing + self indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE + ; 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_MEC_AMS_06_NEG_B" // Negative test: 401 Unauthorized - no token +// +// Test objective +// "Check that the AMS service sends an error when it receives a delete request for a given subscription without token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.5" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AMS_subscription containing +// _link containing +// self indicating value SUBSCRIPTION_HREF_VALUE +// ;, +// callbackReference indicating value CALLBACK_REFERENCE, +// subscriptionType indicating value "MobilityProcedureSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a DELETE containing +// uri indicating value SUBSCRIPTION_HREF_VALUE +// "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_MEC_AMS_06_NEG_C" // Negative test: 401 Unauthorized - wrong token +// +// Test objective +// "Check that the AMS service sends an error when it receives a delete request for a given subscription with a wrong token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.5" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AMS_subscription containing +// _link containing +// self indicating value SUBSCRIPTION_HREF_VALUE +// ;, +// callbackReference indicating value CALLBACK_REFERENCE, +// subscriptionType indicating value "MobilityProcedureSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a DELETE containing +// uri indicating value SUBSCRIPTION_HREF_VALUE, +// 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_MEC_SRV_AMS_006_NF" // Negative test: 404 Not Found + + Test objective + "Check that the AMS service sends an error when it receives a delete request for a not existing subscription" + + Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.5" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS + + Initial conditions with { + the IUT entity "not" having a AMS_subscription containing + _link containing + self indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE + ; 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_MEC_SRV_AMS_007_BR" // Negative test: 400 Bad request + + Test objective + "Check that the AMS service sends an error when it receives a malformed modify request for a given subscription. + Permitted SUBSCRIPTION_TYPE are: + - MobilityProcedureSubscription + - AdjacentAppInfoSubscription" + + Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS + + Initial conditions with { + the IUT entity having a AMS_subscription containing + _link containing + self indicating value SUBSCRIPTION_HREF_VALUE + ;, + callbackReference indicating value CALLBACK_REFERENCE, + subscriptionType indicating value SUBSCRIPTION_TYPE + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value SUBSCRIPTION_HREF_VALUE, + body containing + NotificationSubscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, + callbackReferenc indicating value NEW_CALLBACK_REFERENCE //wrong field, it should be callbackReference + ; + ; + ; 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_MEC_AMS_07_NEG_B" // Negative test: 401 Unauthorized - no token +// +// Test objective +// "Check that the AMS service sends an error when it receives a modify request for a given subscription without token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AMS_subscription containing +// _link containing +// self indicating value SUBSCRIPTION_HREF_VALUE +// ;, +// callbackReference indicating value CALLBACK_REFERENCE, +// subscriptionType indicating value "MobilityProcedureSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a PUT containing +// uri indicating value SUBSCRIPTION_HREF_VALUE, +// "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_MEC_AMS_07_NEG_C" // Negative test: 401 Unauthorized - wrong token +// +// Test objective +// "Check that the AMS service sends an error when it receives a modify request for a given subscription with a wrong token" +// +// Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" +// +// Config Id Config_MEC_1 +// PICS Selection PIC_AMS +// +// Initial conditions with { +// the IUT entity having a AMS_subscription containing +// _link containing +// self indicating value SUBSCRIPTION_HREF_VALUE +// ;, +// callbackReference indicating value CALLBACK_REFERENCE, +// subscriptionType indicating value "MobilityProcedureSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a PUT containing +// uri indicating value SUBSCRIPTION_HREF_VALUE, +// 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_MEC_SRV_AMS_007_NF" // Negative test: 404 Not found + + Test objective + "Check that the AMS service sends an error when it receives a modify request for a not existing subscription" + + Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS + + Initial conditions with { + the IUT entity "not" having a AMS_subscription containing + _link containing + self indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE + ; 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 + } + } + } + +} diff --git a/Test Purposes/SRV/Mp1/Ams/Ams_BV.tplan2 b/Test Purposes/SRV/AMS/Ams_BV.tplan2 similarity index 56% rename from Test Purposes/SRV/Mp1/Ams/Ams_BV.tplan2 rename to Test Purposes/SRV/AMS/Ams_BV.tplan2 index d6b7a00..22bb937 100644 --- a/Test Purposes/SRV/Mp1/Ams/Ams_BV.tplan2 +++ b/Test Purposes/SRV/AMS/Ams_BV.tplan2 @@ -18,7 +18,7 @@ Package MEC021_APP_MP1_AMS_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_AMS_01" + TP Id "TP_MEC_SRV_AMS_001_OK" Test objective "Check that the AMS service returns information about the registered application mobility services when requested" @@ -49,7 +49,8 @@ Package MEC021_APP_MP1_AMS_BV { status set to "200 OK", body containing AppMobilityServiceInfo containing - appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID + appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID, + attribute registeredAppMobilityService ; ; ; to the AMS_CLIENT entity @@ -58,7 +59,7 @@ Package MEC021_APP_MP1_AMS_BV { } Test Purpose { - TP Id "TP_MEC_AMS_02" + TP Id "TP_MEC_SRV_AMS_002_OK" Test objective "Check that the AMS service creates a new application mobility services when requested" @@ -89,10 +90,13 @@ Package MEC021_APP_MP1_AMS_BV { then { the IUT entity sends a HTTP_RESPONSE containing status set to "201 Created", - body containing - registeredAppMobilityService containing - serviceConsumerId containing - appInstanceId set to APP_INS_ID + body containing + AppMobilityServiceInfo containing + appMobilityServiceId set to any_value, + registeredAppMobilityService containing + serviceConsumerId containing + appInstanceId set to APP_INS_ID + ; ; ; ; @@ -102,10 +106,13 @@ Package MEC021_APP_MP1_AMS_BV { } Test Purpose { - TP Id "TP_MEC_AMS_03" + TP Id "TP_MEC_SRV_AMS_003_OK" Test objective - "Check that the AMS service returns information about the available subscriptions when requested" + "Check that the AMS service returns information about the available subscriptions when requested. + Permitted SUBSCRIPTION_TYPE are: + - MobilityProcedureSubscription + - AdjacentAppInfoSubscription" Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" @@ -117,7 +124,7 @@ Package MEC021_APP_MP1_AMS_BV { _link containing self indicating value SUBSCRIPTION_HREF_VALUE ;, - subscriptionType indicating value "MobilityProcedureSubscription" //shall we have a TP for each type of subscription? + subscriptionType indicating value SUBSCRIPTION_TYPE ; } @@ -127,7 +134,7 @@ Package MEC021_APP_MP1_AMS_BV { the IUT entity receives a vGET containing uri indicating value "/amsi/v1/subscriptions/", query_parameters containing - subscriptionType indicating value "MobilityProcedureSubscription" + subscriptionType indicating value SUBSCRIPTION_TYPE ; ; from the MEC_SUB entity } @@ -137,8 +144,11 @@ Package MEC021_APP_MP1_AMS_BV { body containing SubscriptionLinkList containing subscription containing - href indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "MobilityProcedureSubscription" + _links containing + self indicating value SUBSCRIPTION_HREF_VALUE + ;, + subscriptionType indicating value SUBSCRIPTION_TYPE, + callbackReference set to any_value ; ; ; @@ -148,10 +158,13 @@ Package MEC021_APP_MP1_AMS_BV { } Test Purpose { - TP Id "TP_MEC_AMS_04" + TP Id "TP_MEC_SRV_AMS_004_OK" Test objective - "Check that the AMS service creates a notification subscriptions when requested" + "Check that the AMS service creates a notification subscriptions when requested. + Permitted SUBSCRIPTION_TYPE are: + - MobilityProcedureSubscription + - AdjacentAppInfoSubscription" Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" @@ -168,8 +181,8 @@ Package MEC021_APP_MP1_AMS_BV { the IUT entity receives a vPOST containing uri indicating value "/amsi/v1/subscriptions/", body containing - MobilityProcedureSubscription containing - subscriptionType indicating value "MobilityProcedureSubscription", //shall we have a TP for each type of subscription? + NotificationSubscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value CALLBACK_REFERENCE ; ; @@ -179,8 +192,8 @@ Package MEC021_APP_MP1_AMS_BV { the IUT entity sends a HTTP_RESPONSE containing status set to "201 CREATED", body containing - MobilityProcedureSubscription containing - subscriptionType indicating value "MobilityProcedureSubscription", + NotificationSubscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value CALLBACK_REFERENCE ; ; @@ -190,10 +203,13 @@ Package MEC021_APP_MP1_AMS_BV { } Test Purpose { - TP Id "TP_MEC_AMS_05" + TP Id "TP_MEC_SRV_AMS_005_OK" Test objective - "Check that the AMS service returns information about a given subscription when requested" + "Check that the AMS service returns information about a given subscription when requested. + Permitted SUBSCRIPTION_TYPE are: + - MobilityProcedureSubscription + - AdjacentAppInfoSubscription" Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" @@ -206,7 +222,7 @@ Package MEC021_APP_MP1_AMS_BV { self indicating value SUBSCRIPTION_HREF_VALUE ;, callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" //shall we have a TP for each type of subscription? + subscriptionType indicating value SUBSCRIPTION_TYPE ; } @@ -221,8 +237,8 @@ Package MEC021_APP_MP1_AMS_BV { the IUT entity sends a HTTP_RESPONSE containing status set to "200 OK", body containing - MobilityProcedureSubscription containing - subscriptionType indicating value "MobilityProcedureSubscription", + NotificationSubscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value CALLBACK_REFERENCE ; ; @@ -232,7 +248,7 @@ Package MEC021_APP_MP1_AMS_BV { } Test Purpose { - TP Id "TP_MEC_AMS_06" + TP Id "TP_MEC_SRV_AMS_006_OK" Test objective "Check that the AMS service deletes a given subscription when requested" @@ -246,9 +262,7 @@ Package MEC021_APP_MP1_AMS_BV { the IUT entity having a AMS_subscription containing _link containing self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" //shall we have a TP for each type of subscription? + ; ; } @@ -268,10 +282,13 @@ Package MEC021_APP_MP1_AMS_BV { } Test Purpose { - TP Id "TP_MEC_AMS_07" + TP Id "TP_MEC_SRV_AMS_007_OK" Test objective - "Check that the AMS service modifies a given subscription when requested" + "Check that the AMS service modifies a given subscription when requested. + Permitted SUBSCRIPTION_TYPE are: + - MobilityProcedureSubscription + - AdjacentAppInfoSubscription" Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" @@ -284,7 +301,7 @@ Package MEC021_APP_MP1_AMS_BV { self indicating value SUBSCRIPTION_HREF_VALUE ;, callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" //shall we have a TP for each type of subscription? + subscriptionType indicating value SUBSCRIPTION_TYPE ; } @@ -294,8 +311,8 @@ Package MEC021_APP_MP1_AMS_BV { the IUT entity receives a vPUT containing uri indicating value SUBSCRIPTION_HREF_VALUE, body containing - MobilityProcedureSubscription containing - subscriptionType indicating value "MobilityProcedureSubscription", //shall we have a TP for each type of subscription? + NotificationSubscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value NEW_CALLBACK_REFERENCE ; ; @@ -305,8 +322,8 @@ Package MEC021_APP_MP1_AMS_BV { the IUT entity sends a HTTP_RESPONSE containing status set to "200 OK", body containing - MobilityProcedureSubscription containing - subscriptionType indicating value "MobilityProcedureSubscription", + NotificationSubscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value NEW_CALLBACK_REFERENCE ; ; @@ -314,5 +331,132 @@ Package MEC021_APP_MP1_AMS_BV { } } } + + Test Purpose { + TP Id "TP_MEC_SRV_AMS_008_OK" + + Test objective + "Check that the AMS service sends an AMS notification about a mobility procedure + if the AMS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 021 2.0.8, clause 7.4.2" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a AMS_subscription containing + subscriptionType indicating value "MobilityProcedureSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteria containing + appInstanceId set to APP_INSTANCE_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a mobility_procedure_event containing + appInstanceId set to APP_INSTANCE_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "MobilityProcedureNotification", + targetAppInfo containing + appInstanceId set to APP_INSTANCE_ID + ;, + mobilityStatus set to any_value + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_SRV_AMS_009_OK" + + Test objective + "Check that the AMS service sends an AMS notification about adjacent application instances + if the AMS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 021 2.0.8, clause 7.4.3" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a AMS_subscription containing + subscriptionType indicating value "AdjacentAppInfoSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteria containing + appInstanceId set to APP_INSTANCE_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a adjacent_app_info_event containing + appInstanceId set to APP_INSTANCE_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "AdjacentAppInfoNotification", + adjacentAppInfo containing + appInstanceId set to APP_INSTANCE_ID + ; + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_SRV_AMS_010_OK" + + Test objective + "Check that the AMS service sends an AMS notification on subscription expiration + if the AMS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 021 2.0.8, clause 7.4.4" + + Config Id Config_MEC_1 + PICS Selection PIC_AMS_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a AMS_subscription containing + subscriptionType indicating value any_value, //VALID for all subscription types + callbackReference indicating value CALLBACK_URI, + _links containing + self set to SUBSCRIPTION_HREF_VALUE + ;, + subscriptionId set to SUBSCRIPTION_ID, + expiryDeadline set to EXPIRY_DEADLINE + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a expiry_notification_event containing + subscriptionId set to SUBSCRIPTION_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "ExpiryNotification", //this field is not in the spec. + expiryDeadline set to EXPIRY_DEADLINE + ; + ; to the MEC_SUB entity + } + } + } } diff --git a/Test Purposes/SRV/Mp1/Bandwidth/PlatBandwidthManager.tplan2 b/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/Bandwidth/PlatBandwidthManager.tplan2 rename to Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 diff --git a/Test Purposes/SRV/Mp1/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/DnsRules/PlatDnsRules.tplan2 rename to Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 diff --git a/Test Purposes/SRV/Mp1/FAIS/PlatFixedAcessInfo.tplan2 b/Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/FAIS/PlatFixedAcessInfo.tplan2 rename to Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 diff --git a/Test Purposes/SRV/Mp1/Ams/Ams_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Ams/Ams_BO_BI.tplan2 deleted file mode 100644 index 6b81023..0000000 --- a/Test Purposes/SRV/Mp1/Ams/Ams_BO_BI.tplan2 +++ /dev/null @@ -1,796 +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 MEC021_APP_MP1_AMS_BV { - - import all from MEC_Common; - - Test Purpose { - TP Id "TP_MEC_AMS_01_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the AMS service returns an error when receives a query about a registered application mobility service with wrong parameters" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AppMobilityServiceInfo containing - appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/amsi/v1/appMobilityServices", - query_parameters containing - appMobilityService indicating value APP_MOBILITY_SERVICE_ID //wrong parameter, it should be appMobilityServiceId - ; - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_01_NEG_B" // Negative test: 401 Unauthorized (No token) - - Test objective - "Check that the AMS service returns an error when receives a query about a registered application mobility service without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AppMobilityServiceInfo containing - appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/amsi/v1/appMobilityServices", - "not" authorization - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_01_NEG_C" // Negative test: 401 Unauthorized (Wrong token) - - Test objective - "Check that the AMS service returns an error when receives a query about a registered application mobility service with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AppMobilityServiceInfo containing - appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/amsi/v1/appMobilityServices", - headers set to vHeadersInvalidToken - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_02_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the AMS service sends an error when it receives a malformatter request to create a new application mobility service" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - 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 "/amsi/v1/appMobilityServices", - body containing - RegistrationRequest containing //Note: at the moment the only element that is defined is RegistrationInfo. Not sure if they are the same. - serviceConsumerId containing - appInstance set to APP_INS_ID //wrong parameter, it should be appInstanceId - ; - ; - ; - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_02_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives a request to create a new application mobility service without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/amsi/v1/appMobilityServices", - "not" authorization - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_02_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives a request to create a new application mobility service with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/amsi/v1/appMobilityServices", - headers set to vHeadersInvalidToken - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_03_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the AMS service sends an error when it receives a malformatted information query about the available subscriptions" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/amsi/v1/subscriptions/", - query_parameters containing - subscriptionTyp indicating value "MobilityProcedureSubscription" //wrong parameter, it should be subscriptionType - ; - ; 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_MEC_AMS_03_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives an information query about the available subscriptions without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/amsi/v1/subscriptions/", - "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_MEC_AMS_03_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives an information query about the available subscriptions with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/amsi/v1/subscriptions/", - 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_MEC_AMS_04_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the AMS service sends an error when it receives a malformatted request to create a notification subscription" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - 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 "/amsi/v1/subscriptions/", - body containing - MobilityProcedureSubscription containing - subscriptionTyp indicating value "MobilityProcedureSubscription", //wrong parameter, it should be subscriptionType - callbackReference indicating value CALLBACK_REFERENCE - ; - ; - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_04_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives a request to create a notification subscription without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/amsi/v1/subscriptions/", - "not" authorization - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_04_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives a request to create a notification subscription with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/amsi/v1/subscriptions/", - headers set to vHeadersInvalidToken - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_05_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service returns an error when receives a query about a specific subscription without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value SUBSCRIPTION_HREF_VALUE - "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_MEC_AMS_05_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service returns an error when receives a query about a specific subscription with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - 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_MEC_AMS_05_NEG_D" // Negative test: 404 Not Found - - Test objective - "Check that the AMS service returns an error when receives a query about a not existing subscription" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity "not" having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value SUBSCRIPTION_HREF_VALUE - ; 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_MEC_AMS_06_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives a delete request for a given subscription without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.5" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a DELETE containing - uri indicating value SUBSCRIPTION_HREF_VALUE - "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_MEC_AMS_06_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives a delete request for a given subscription with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.5" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a DELETE containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - 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_MEC_AMS_06_NEG_D" // Negative test: 404 Not Found - - Test objective - "Check that the AMS service sends an error when it receives a delete request for a not existing subscription" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.5" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity "not" having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - 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 "404 Not Found" - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_07_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the AMS service sends an error when it receives a malformatted modify request for a given subscription" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - body containing - MobilityProcedureSubscription containing - subscriptionType indicating value "MobilityProcedureSubscription", - callbackReferenc indicating value NEW_CALLBACK_REFERENCE //wrong field, it should be callbackReference - ; - ; - ; 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_MEC_AMS_07_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives a modify request for a given subscription without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - "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_MEC_AMS_07_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives a modify request for a given subscription with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - 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_MEC_AMS_07_NEG_D" // Negative test: 404 Not found - - Test objective - "Check that the AMS service sends an error when it receives a modify request for a not existing subscription" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity "not" having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value SUBSCRIPTION_HREF_VALUE - ; 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 - } - } - } - -} diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 deleted file mode 100644 index dec7278..0000000 --- a/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 +++ /dev/null @@ -1,681 +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 MEC012_APP_MP1_RNI_QUERY_BO_BI { - - import all from MEC_Common; - - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_01_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the RNIS service returns an error when the RAB information is requested with a malformatted message" - - Reference "ETSI GS MEC 012 2.0.4, 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 - cellUserInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - 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 //wrong parameter - ; - ; 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_MEC_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 is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, 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 - cellUserInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/rab_info", - "not" authorization, - query_parameters containing - cell_id 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_MEC_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 is requested with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, 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 - cellUserInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/rab_info", - headers set to vHeadersInvalidToken, - query_parameters containing - cell_id 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_MEC_RNI_QUERY_01_NEG_D" // Negative test: 404 Not found - - Test objective - "Check that the RNIS service returns an error when the RAB information for a not existing element is requested" - - Reference "ETSI GS MEC 012 2.0.4, 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 "not" having a RabInfo containing - cellUserInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rnis/v1/query/rab_info", - query_parameters containing - cell_id 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 - } - } - } - -//Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered -/* - 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 - } - } - } - * - */ - - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_02_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the RNIS service returns an error when the PLMN information is requested with a malformatted message" - - Reference "ETSI GS MEC 012 2.0.4, 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 - appInstanceId 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 - cId indicating value C_ID //wrong parameter - ; - ; 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_MEC_RNI_QUERY_02_NEG_B" // Negative test: 401 Unauthorized (No token provided) - - Test objective - "Check that the RNIS service returns an error when the PLMN information is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, 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 - appInstanceId indicating value APP_INSTANCE_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/plmn_info", - "not" authorization, - query_parameters containing - app_ins_id indicating value APP_INS_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_MEC_RNI_QUERY_02_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) - - Test objective - "Check that the RNIS service returns an error when the PLMN information is requested with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, 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 - appInstanceId indicating value APP_INSTANCE_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/plmn_info", - headers set to vHeadersInvalidToken, - query_parameters containing - appInstanceId indicating value APP_INSTANCE_INFO - ; - ; 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_MEC_RNI_QUERY_02_NEG_D" // Negative test: 404 Not found - - Test objective - "Check that the RNIS service returns an error when the PLMN information for a not existing element is requested" - - Reference "ETSI GS MEC 012 2.0.4, 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 "not" having a PlmnInfo containing - appInstanceId indicating value APP_INSTANCE_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rnis/v1/query/plmn_info", - query_parameters containing - appInstanceId indicating value APP_INSTANCE_INFO - ; - ; 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_MEC_RNI_QUERY_03_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message" - - Reference "ETSI GS MEC 012 2.0.4, 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 - cId indicating value C_ID //wrong parameter - ; - ; 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_MEC_RNI_QUERY_03_NEG_B" // Negative test: 401 Unauthorized (No token provided) - - Test objective - "Check that the RNIS service returns an error when the S1 bearer information is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, 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 GET containing - uri indicating value "/rni/v1/queries/s1_bearer_info", - "not" authorization, - query_parameters containing - cell_id 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_MEC_RNI_QUERY_03_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) - - Test objective - "Check that the RNIS service returns an error when the S1 bearer information is requested with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, 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 GET containing - uri indicating value "/rni/v1/queries/s1_bearer_info", - headers set to vHeadersInvalidToken, - query_parameters containing - cell_id 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_MEC_RNI_QUERY_03_NEG_D" // Negative test: 404 Not found - - Test objective - "Check that the RNIS service returns an error when the S1 bearer information for a not existing element is requested" - - Reference "ETSI GS MEC 012 2.0.4, 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 "not" 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 "/rnis/v1/query/s1_bearer_info", - query_parameters containing - cell_id 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_MEC_RNI_QUERY_04_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the RNIS service returns an error when the L2 measurements information is requested with a malformatted message" - - Reference "ETSI GS MEC 012 2.0.4, 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 - cId indicating value C_ID //wrong parameter - ; - ; 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_MEC_RNI_QUERY_04_NEG_B" // Negative test: 401 Unauthorized (No token provided) - - Test objective - "Check that the RNIS service returns an error when the L2 measurements information is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, 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 GET containing - uri indicating value "/rni/v1/queries/layer2_meas", - "not" authorization, - query_parameters containing - cell_id 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_MEC_RNI_QUERY_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) - - Test objective - "Check that the RNIS service returns an error when the L2 measurements information is requested with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, 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 GET containing - uri indicating value "/rni/v1/queries/layer2_meas", - headers set to vHeadersInvalidToken, - query_parameters containing - cell_id 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_MEC_RNI_QUERY_04_NEG_D" // Negative test: 404 Not found - - Test objective - "Check that the RNIS service returns an error when the L2 measurements information for a not existing element is requested" - - Reference "ETSI GS MEC 012 2.0.4, 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 "not" 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 "/rnis/v1/query/layer2_meas", - query_parameters containing - cell_id 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 - } - } - } - -} diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 deleted file mode 100644 index a66234e..0000000 --- a/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 +++ /dev/null @@ -1,441 +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 MEC012_APP_MP1_RNI_SUB_BO_BI { - - import all from MEC_Common; - - //Not clear how the 400 could be generated for the GET, since the GET does not have any body or query parameters - - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_B" // Negative test: 401 Unauthorized (No token) - - Test objective - "Check that the RNIS service responds with error when a given RNIS subscription is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, 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 GET 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_MEC_RNI_SUBSCRIPTION_03_NEG_C" // Negative test: 401 Unauthorized (Invalid token) - - Test objective - "Check that the RNIS service responds with error when a given RNIS subscription is requested with wrong token" - - Reference "ETSI GS MEC 012 2.0.4, 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 GET 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_MEC_RNI_SUBSCRIPTION_03_NEG_D" // Negative test: 404 Not Found - - Test objective - "Check that the RNIS service responds with error when a not existing RNIS subscription is requested" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity "not" having a RNIS_subscription containing - _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 - } - } - } - - -//Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered -/* - 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 - } - } - } -*/ - - Test Purpose { // Negative test: 400 Bad request - TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_A" - - Test objective - "Check that the RNIS service sends an error when it receives a malformed modify request for a RNIS subscription" - - Reference "ETSI GS MEC 012 2.0.4, 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 "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - body containing - subscription containing - callbackRefer indicating value NEW_CALLBACK_URI, //wrong field, it should be callbackReference - _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 "400 Bad Request" - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_B" // Negative test: 401 Unauthorized (No token) - - Test objective - "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, 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 PUT 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_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token) - - Test objective - "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested with wrong token" - - Reference "ETSI GS MEC 012 2.0.4, 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 PUT 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_MEC_RNI_SUBSCRIPTION_04_NEG_D" // Negative test: 404 Not Found - - Test objective - "Check that the RNIS service responds with error when a modification for a not existing RNIS subscription is requested" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity "not" having a RNIS_subscription containing - _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 "/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 { // Negative test: 401 Unauthorized (No token) - TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_B" - - Test objective - "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription without token" - - Reference "ETSI GS MEC 012 2.0.4, 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 - 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 DELETE containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - "not" authorization //missing token - ; 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 { // Negative test: 401 Unauthorized (Invalid token) - TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_C" - - Test objective - "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, 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 - 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 DELETE containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - headers set to vHeadersInvalidToken //wrong token - ; 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_MEC_RNI_SUBSCRIPTION_05_NEG_D" // Negative test: 404 Not Found - - Test objective - "Check that the RNIS service responds with error when the deletion of a not existing RNIS subscription is requested" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity "not" having a RNIS_subscription containing - _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 "/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 - } - } - } - -} diff --git a/Test Purposes/SRV/Mp1/Notifications/PlatAppSubscriptions.tplan2 b/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/Notifications/PlatAppSubscriptions.tplan2 rename to Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 diff --git a/Test Purposes/SRV/Mp1/Notifications/PlatSrvSubscriptions.tplan2 b/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/Notifications/PlatSrvSubscriptions.tplan2 rename to Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 similarity index 61% rename from Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 rename to Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 index 7a653fb..9c466ea 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 @@ -18,7 +18,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_A" // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType) + TP Id "TP_MEC_SRV_RNIS_011_BR" // 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 with a wrong subscription type" @@ -26,12 +26,12 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + PICS Selection 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" + subscriptionType indicating value SUBSCRIPTION_TYPE ; } @@ -54,82 +54,83 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { } - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_01_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 of a given type without submitting credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - 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 GET 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_MEC_RNI_SUBSCRIPTION_01_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 of a given type submitting a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - 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 GET 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_MEC_RNI_SUBSCRIPTION_01_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 of a given type without submitting credentials" +// +// Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", +// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" +// 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 GET 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_MEC_RNI_SUBSCRIPTION_01_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 of a given type submitting a wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", +// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" +// 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 GET 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 +// } +// } +// } //Removed since not related to an individual resource // Test Purpose { @@ -256,7 +257,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_A" // 400 Bad Request + TP Id "TP_MEC_SRV_RNIS_012_BR" // 400 Bad Request Test objective "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong format" @@ -264,7 +265,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Reference "ETSI GS MEC 012 2.0.4, 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 + PICS Selection PIC_RNIS_ALL_SUBSCRIPTIONS Initial conditions with { the IUT entity being_in idle_state @@ -278,14 +279,9 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { body containing CellChangeSubscription containing subscritionType indicating value "CelCangeSubscription", //wrong subscription type - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - appInstanceId 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 + callbackReference indicating value any_value, + attribute filterCriteriaAssocHo, + expiryDeadline set to any_value ; ; ; from the MEC_SUB entity @@ -299,94 +295,94 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { } - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_B" // 401 Unauthorized (No Token) - - Test objective - "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription without credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - 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 POST containing - uri indicating value "/rni/v1/subscriptions", - "not" authorized, - body containing - CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - appInstanceId 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_MEC_RNI_SUBSCRIPTION_02_NEG_C" // 401 Unauthorized (Wrong token) - - Test objective - "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - 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 POST 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 - appInstanceId 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_MEC_RNI_SUBSCRIPTION_02_NEG_B" // 401 Unauthorized (No Token) +// +// Test objective +// "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription without credentials" +// +// Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", +// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" +// 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 POST containing +// uri indicating value "/rni/v1/subscriptions", +// "not" authorized, +// body containing +// CellChangeSubscription containing +// subscriptionType indicating value "CellChangeSubscription", +// callbackReference indicating value CALLBACK_URI, +// filterCriteriaAssocHo containing +// appInstanceId 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_MEC_RNI_SUBSCRIPTION_02_NEG_C" // 401 Unauthorized (Wrong token) +// +// Test objective +// "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", +// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" +// 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 POST 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 +// appInstanceId 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 +// } +// } +// } //Removed since not related to an individual resource // Test Purpose { diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 similarity index 63% rename from Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 rename to Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 index efda3d0..589175c 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 @@ -18,20 +18,30 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_01" + TP Id "TP_MEC_SRV_RNIS_011_OK" Test objective - "Check that the RNIS service sends the list of links to the relevant RNIS subscriptions when requested" + "Check that the RNIS service sends the list of links to the relevant RNIS subscriptions when requested. + Acceptable SUBSCRIPTION_TYPE are the following: + - cell_change Cell Change + - rab_est RAB Establishment + - rab_mod RAB Modification + - rab_rel RAB Release + - meas_rep_ue UE Measurement Report + - nr_meas_rep_ue 5G NR UE Measurement Report + - timing_advance_ue UE Timing Advance + - ca_reconf Carrier Aggregation Reconfig + - s1_bearer S1 Bearer Notification " Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/SubscriptionLinkList" Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + PICS Selection 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" //shall we have a TP for each type of subscription? + subscriptionType indicating value SUBSCRIPTION_TYPE ; } @@ -41,7 +51,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { the IUT entity receives a vGET containing uri indicating value "/rni/v1/subscriptions", query_parameters containing - subscriptionType indicating value "cell_change" + subscription_type indicating value SUBSCRIPTION_TYPE ; ; from the MEC_SUB entity } @@ -52,7 +62,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { subscriptionLinkList containing subscription containing href indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CELL_CHANGE" + subscriptionType indicating value SUBSCRIPTION_TYPE ; ; ; @@ -62,15 +72,25 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { } Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_02" + TP Id "TP_MEC_SRV_RNIS_012_OK" Test objective - "Check that the RNIS service creates a new RNIS subscription" + "Check that the RNIS service creates a new RNIS subscription. + Acceptable SUBSCRIPTION_TYPE are the following: + - CellChangeSubscription + - RabEstSubscription + - RabModSubscription + - RabRelSubscription + - MeasRepUeSubscription + - MeasTaSubscription + - CaReconfSubscription + - S1BearerSubscription + - NrMeasRepUeSubscription" + + Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4" - Reference "ETSI GS MEC 012 2.0.4, 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 + PICS Selection PIC_RNIS_ALL_SUBSCRIPTIONS Initial conditions with { the IUT entity being_in idle_state @@ -83,15 +103,8 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { uri indicating value "/rni/v1/subscriptions", body containing CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - appInstanceId 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 + subscriptionType indicating value SUBSCRIPTION_TYPE, + callbackReference indicating value CALLBACK_URI ; ; ; from the MEC_SUB entity @@ -101,18 +114,9 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { status set to "201 Created", body containing CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value CALLBACK_URI, - _links containing - self set to SUBSCRIPTION_HREF_VALUE - ;, - filterCriteriaAssocHo containing - appInstanceId 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 + attribute _links ; ; ; to the MEC_SUB entity diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 b/Test Purposes/SRV/RNIS/RnisNotifications.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 rename to Test Purposes/SRV/RNIS/RnisNotifications.tplan2 diff --git a/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 new file mode 100644 index 0000000..b8e648c --- /dev/null +++ b/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 @@ -0,0 +1,681 @@ +/* +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_MEC_SRV_RNIS_016_BR" // Negative test: 400 Bad request + + Test objective + "Check that the RNIS service returns an error when the RAB information is requested with a malformatted message" + + Reference "ETSI GS MEC 012 2.0.4, 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_QUERY + + Initial conditions with { + the IUT entity having a RabInfo containing + cellUserInfo containing + ecgi indicating value CELL_ID + ; + ; + } + + 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 //wrong parameter + ; + ; 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_MEC_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 is requested without credentials" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 +// cellUserInfo containing +// ecgi indicating value CELL_ID +// ; +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value "/rni/v1/queries/rab_info", +// "not" authorization, +// query_parameters containing +// cell_id 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_MEC_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 is requested with a wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 +// cellUserInfo containing +// ecgi indicating value CELL_ID +// ; +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value "/rni/v1/queries/rab_info", +// headers set to vHeadersInvalidToken, +// query_parameters containing +// cell_id 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_MEC_SRV_RNIS_016_NF" // Negative test: 404 Not found + + Test objective + "Check that the RNIS service returns an error when the RAB information for a not existing element is requested" + + Reference "ETSI GS MEC 012 2.0.4, 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_QUERY + + Initial conditions with { + the IUT entity "not" having a RabInfo containing + cellUserInfo containing + ecgi indicating value CELL_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rnis/v1/query/rab_info", + query_parameters containing + cell_id 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 + } + } + } + +//Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered +/* + 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 + } + } + } + * + */ + + Test Purpose { + TP Id "TP_MEC_SRV_RNIS_017_BR" // Negative test: 400 Bad request + + Test objective + "Check that the RNIS service returns an error when the PLMN information is requested with a malformatted message" + + Reference "ETSI GS MEC 012 2.0.4, 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_QUERY + + Initial conditions with { + the IUT entity having a PlmnInfo containing + appInstanceId 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 + cId indicating value C_ID //wrong parameter + ; + ; 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_MEC_RNI_QUERY_02_NEG_B" // Negative test: 401 Unauthorized (No token provided) +// +// Test objective +// "Check that the RNIS service returns an error when the PLMN information is requested without credentials" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 +// appInstanceId indicating value APP_INSTANCE_INFO +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value "/rni/v1/queries/plmn_info", +// "not" authorization, +// query_parameters containing +// app_ins_id indicating value APP_INS_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_MEC_RNI_QUERY_02_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) +// +// Test objective +// "Check that the RNIS service returns an error when the PLMN information is requested with a wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 +// appInstanceId indicating value APP_INSTANCE_INFO +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a GET containing +// uri indicating value "/rni/v1/queries/plmn_info", +// headers set to vHeadersInvalidToken, +// query_parameters containing +// appInstanceId indicating value APP_INSTANCE_INFO +// ; +// ; 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_MEC_SRV_RNIS_017_NF" // Negative test: 404 Not found + + Test objective + "Check that the RNIS service returns an error when the PLMN information for a not existing element is requested" + + Reference "ETSI GS MEC 012 2.0.4, 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_QUERY + + Initial conditions with { + the IUT entity "not" having a PlmnInfo containing + appInstanceId indicating value NOT_EXISTENT_APP_INSTANCE_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rnis/v1/query/plmn_info", + query_parameters containing + appInstanceId indicating value NOT_EXISTENT_APP_INSTANCE_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_MEC_SRV_RNIS_018_BR" // Negative test: 400 Bad request + + Test objective + "Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message" + + Reference "ETSI GS MEC 012 2.0.4, 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_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 + cId indicating value C_ID //wrong parameter + ; + ; 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_MEC_RNI_QUERY_03_NEG_B" // Negative test: 401 Unauthorized (No token provided) +// +// Test objective +// "Check that the RNIS service returns an error when the S1 bearer information is requested without credentials" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 GET containing +// uri indicating value "/rni/v1/queries/s1_bearer_info", +// "not" authorization, +// query_parameters containing +// cell_id 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_MEC_RNI_QUERY_03_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) +// +// Test objective +// "Check that the RNIS service returns an error when the S1 bearer information is requested with a wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 GET containing +// uri indicating value "/rni/v1/queries/s1_bearer_info", +// headers set to vHeadersInvalidToken, +// query_parameters containing +// cell_id 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_MEC_SRV_RNIS_018_NF" // Negative test: 404 Not found + + Test objective + "Check that the RNIS service returns an error when the S1 bearer information for a not existing element is requested" + + Reference "ETSI GS MEC 012 2.0.4, 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_QUERY + + Initial conditions with { + the IUT entity "not" having a S1BearerInfo containing + s1UeInfo containing + ecgi indicating value NOT_EXISTENT_CELL_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rnis/v1/query/s1_bearer_info", + query_parameters containing + cell_id indicating value NOT_EXISTENT_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_MEC_SRV_RNIS_019_BR" // Negative test: 400 Bad request + + Test objective + "Check that the RNIS service returns an error when the L2 measurements information is requested with a malformatted message" + + Reference "ETSI GS MEC 012 2.0.4, clause 7.5a.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" + + Config Id Config_MEC_1 + PICS Selection 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 + cId indicating value C_ID //wrong parameter + ; + ; 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_MEC_RNI_QUERY_04_NEG_B" // Negative test: 401 Unauthorized (No token provided) +// +// Test objective +// "Check that the RNIS service returns an error when the L2 measurements information is requested without credentials" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 GET containing +// uri indicating value "/rni/v1/queries/layer2_meas", +// "not" authorization, +// query_parameters containing +// cell_id 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_MEC_RNI_QUERY_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) +// +// Test objective +// "Check that the RNIS service returns an error when the L2 measurements information is requested with a wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 GET containing +// uri indicating value "/rni/v1/queries/layer2_meas", +// headers set to vHeadersInvalidToken, +// query_parameters containing +// cell_id 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_MEC_SRV_RNIS_019_NF" // Negative test: 404 Not found + + Test objective + "Check that the RNIS service returns an error when the L2 measurements information for a not existing element is requested" + + Reference "ETSI GS MEC 012 2.0.4, 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_QUERY + + Initial conditions with { + the IUT entity "not" having a L2_Meas_information containing + cellInfo containing + ecgi indicating value NOT_EXISTENT_CELL_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rnis/v1/query/layer2_meas", + query_parameters containing + cell_id indicating value NOT_EXISTENT_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 + } + } + } + +} diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 b/Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 similarity index 86% rename from Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 rename to Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 index a8ee86f..90d876b 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 @@ -18,7 +18,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_RNI_QUERY_01" + TP Id "TP_MEC_SRV_RNIS_016_OK" Test objective "Check that the RNIS service returns the RAB information when requested" @@ -27,7 +27,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { "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 + PICS Selection PIC_RNIS_QUERY Initial conditions with { the IUT entity having a RabInfo containing @@ -52,8 +52,11 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { status set to "200 OK", body containing RabInfo containing + appInstanceId set to any_value, + requestId set to any_value, cellUserInfo containing - ecgi indicating value CELL_ID + ecgi indicating value CELL_ID, + attribute ueInfo ; ; ; @@ -64,7 +67,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Test Purpose { - TP Id "TP_MEC_RNI_QUERY_02" + TP Id "TP_MEC_SRV_RNIS_017_OK" Test objective "Check that the RNIS service returns the PLMN information when requested" @@ -73,7 +76,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { "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 + PICS Selection PIC_RNIS_QUERY Initial conditions with { the IUT entity having a PlmnInfo containing @@ -96,7 +99,8 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { status set to "200 OK", body containing PlmnInfo containing - appInstanceId indicating value APP_INS_ID + appInstanceId indicating value APP_INS_ID, + attribute plmn ; ; ; to the RNIS_CLIENT entity @@ -105,7 +109,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { } Test Purpose { - TP Id "TP_MEC_RNI_QUERY_03" + TP Id "TP_MEC_SRV_RNIS_018_OK" Test objective "Check that the RNIS service returns the S1 bearer information" @@ -114,7 +118,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { "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 + PICS Selection PIC_RNIS_QUERY Initial conditions with { the IUT entity having a S1BearerInfo containing @@ -138,8 +142,13 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { the IUT entity sends a HTTP_RESPONSE containing status set to "200 OK", body containing - S1BearerInfo containing - ecgi indicating value CELL_ID + S1BearerInfo containing + s1UeInfo containing + attribute tempUeId, + attribute associateId, + ecgi indicating value CELL_ID, + attribute s1BearerInfoDetailed + ; ; ; ; to the RNIS_CLIENT entity @@ -148,7 +157,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { } Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_04" + TP Id "TP_MEC_SRV_RNIS_019_OK" Test objective "Check that the RNIS service returns the L2 measurements information" @@ -157,7 +166,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { "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 + PICS Selection PIC_RNIS_QUERY Initial conditions with { the IUT entity having a L2_Meas_information containing diff --git a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 new file mode 100644 index 0000000..3e1da9d --- /dev/null +++ b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 @@ -0,0 +1,439 @@ +/** +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_MEC_RNI_SUBSCRIPTION_03_NEG_B" // Negative test: 401 Unauthorized (No token) +// +// Test objective +// "Check that the RNIS service responds with error when a given RNIS subscription is requested without credentials" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 GET 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_MEC_RNI_SUBSCRIPTION_03_NEG_C" // Negative test: 401 Unauthorized (Invalid token) +// +// Test objective +// "Check that the RNIS service responds with error when a given RNIS subscription is requested with wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 GET 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_MEC_SRV_RNIS_013_NF" // Negative test: 404 Not Found + + Test objective + "Check that the RNIS service responds with error when a not existing RNIS subscription is requested" + + Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity "not" having a RNIS_subscription containing + _links containing + self set to "/rni/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/rni/v1/subscription/{NON_EXISTENT_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 + } + } + } + + +//Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered +/* + 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 + } + } + } +*/ + + Test Purpose { // Negative test: 400 Bad request + TP Id "TP_MEC_SRV_RNIS_014_BR" + + Test objective + "Check that the RNIS service sends an error when it receives a malformed modify request for a RNIS subscription" + + Reference "ETSI GS MEC 012 2.0.4, 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_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 "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", + body containing + subscription containing + callbackRefer indicating value NEW_CALLBACK_URI, //wrong field, it should be callbackReference + _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 "400 Bad Request" + ; to the MEC_SUB entity + } + } + } + +// Test Purpose { +// TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_B" // Negative test: 401 Unauthorized (No token) +// +// Test objective +// "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested without credentials" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 PUT 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_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token) +// +// Test objective +// "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested with wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 PUT 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_MEC_SRV_RNIS_014_NF" // Negative test: 404 Not Found + + Test objective + "Check that the RNIS service responds with error when a modification for a not existing RNIS subscription is requested" + + Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity "not" having a RNIS_subscription containing + _links containing + self set to "/rni/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + + the IUT entity receives a vPUT containing + uri indicating value "/rni/v1/subscription/{NON_EXISTENT_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 { // Negative test: 401 Unauthorized (No token) +// TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_B" +// +// Test objective +// "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription without token" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 +// 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 DELETE containing +// uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", +// "not" authorization //missing token +// ; 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 { // Negative test: 401 Unauthorized (Invalid token) +// TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_C" +// +// Test objective +// "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription with a wrong token" +// +// Reference "ETSI GS MEC 012 2.0.4, 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 +// 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 DELETE containing +// uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", +// headers set to vHeadersInvalidToken //wrong token +// ; 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_MEC_SRV_RNIS_015_NF" // Negative test: 404 Not Found + + Test objective + "Check that the RNIS service responds with error when the deletion of a not existing RNIS subscription is requested" + + Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" + + Config Id Config_MEC_1 + PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION + + Initial conditions with { + the IUT entity "not" having a RNIS_subscription containing + _links containing + self set to "/rni/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/rni/v1/subscription/{NON_EXISTENT_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 + } + } + } + +} diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 similarity index 78% rename from Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 rename to Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 index be510e6..728d3af 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 @@ -18,20 +18,29 @@ Package MEC012_APP_MP1_RNI_SUB_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_03" + TP Id "TP_MEC_SRV_RNIS_013_OK" Test objective - "Check that the RNIS service sends a RNIS subscription when requested" + "Check that the RNIS service sends a RNIS subscription when requested. + Acceptable SUBSCRIPTION_TYPE are the following: + - CellChangeSubscription + - RabEstSubscription + - RabModSubscription + - RabRelSubscription + - MeasRepUeSubscription + - MeasTaSubscription + - CaReconfSubscription + - S1BearerSubscription + - NrMeasRepUeSubscription" - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1" Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -51,7 +60,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { status set to "200 OK", body containing subscription containing - subscriptionType indicating value "CellChangeSubscription", + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -65,19 +74,19 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_04" + TP Id "TP_MEC_SRV_RNIS_014_OK" Test objective "Check that the RNIS service modifies a RNIS subscription when requested" - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2" + Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -92,6 +101,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", body containing subscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value NEW_CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -105,6 +115,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { status set to "200 OK", body containing subscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, callbackReference indicating value NEW_CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -119,15 +130,14 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_05" + TP Id "TP_MEC_SRV_RNIS_015_OK" Test objective "Check that the RNIS service deletes a RNIS subscription when requested" - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5" Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION + PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { the IUT entity having a RNIS_subscription containing diff --git a/Test Purposes/SRV/Mp1/RadioNode/PlatRadioNodeLocation.tplan2 b/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/RadioNode/PlatRadioNodeLocation.tplan2 rename to Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 diff --git a/Test Purposes/SRV/Mp1/SAQ/PlatAppServices.tplan2 b/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/SAQ/PlatAppServices.tplan2 rename to Test Purposes/SRV/SAQ/PlatAppServices.tplan2 diff --git a/Test Purposes/SRV/Mp1/SAQ/PlatServices.tplan2 b/Test Purposes/SRV/SAQ/PlatServices.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/SAQ/PlatServices.tplan2 rename to Test Purposes/SRV/SAQ/PlatServices.tplan2 diff --git a/Test Purposes/SRV/Mp1/Timing/PlatTiming.tplan2 b/Test Purposes/SRV/Timing/PlatTiming.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/Timing/PlatTiming.tplan2 rename to Test Purposes/SRV/Timing/PlatTiming.tplan2 diff --git a/Test Purposes/SRV/Mp1/TrafficRules/PlatTrafficRules.tplan2 b/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/TrafficRules/PlatTrafficRules.tplan2 rename to Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 diff --git a/Test Purposes/SRV/Mp1/Transport/PlatTransport.tplan2 b/Test Purposes/SRV/Transport/PlatTransport.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/Transport/PlatTransport.tplan2 rename to Test Purposes/SRV/Transport/PlatTransport.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 b/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeAreaSubscription/PlatUeAreaSubscription.tplan2 rename to Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 b/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeDistanceLookup/PlatUeDistanceLookup.tplan2 rename to Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 b/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 rename to Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeIdentity/PlatUeIdentity.tplan2 b/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeIdentity/PlatUeIdentity.tplan2 rename to Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 b/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeInformationLookup/PlatUeInformationLookup.tplan2 rename to Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 b/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeInformationSubscription/PlatUeInformationSubscription.tplan2 rename to Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 b/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeLocationLookup/PlatUeLocationLookup.tplan2 rename to Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 b/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeLocationSubscription/PlatUeLocationSubscription.tplan2 rename to Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 diff --git a/Test Purposes/SRV/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 b/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 similarity index 100% rename from Test Purposes/SRV/Mp1/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 rename to Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index fd569eb..cb25791 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -9,7 +9,6 @@ Package MEC_Common { - PIC_NOTIFICATIONS // Implements notifications - 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 @@ -72,6 +71,9 @@ Package MEC_Common { - nr_measurement_repost_event - expiry_notification_event - application_lcm_change_event + - mobility_procedure_event + - adjacent_app_info_event + - App_Instance ; } -- GitLab From 843e52269991d287a99156d82c1d31e3ddf01fd2 Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Wed, 19 Jun 2019 19:32:53 +0100 Subject: [PATCH 2/5] Renaming e reorganization according to TSS. --- .../SysUeAppsContext.tplan2 | 304 +--- .../MEO/UEAPPS/SysUeApplications.tplan2 | 94 +- .../{SAQ => APPSAQ}/PlatAppServices.tplan2 | 366 +---- .../PlatAppSubscriptions.tplan2 | 262 +--- .../PlatUeAreaSubscription.tplan2 | 8 +- .../PlatBandwidthManager.tplan2 | 426 +----- .../SRV/{DnsRules => DNS}/PlatDnsRules.tplan2 | 141 +- .../SRV/FAIS/PlatFixedAcessInfo.tplan2 | 1238 ++++------------- .../PlatRadioNodeLocation.tplan2 | 4 +- Test Purposes/SRV/SAQ/PlatServices.tplan2 | 83 +- .../PlatSrvSubscriptions.tplan2 | 262 +--- .../SRV/{Timing => TIME}/PlatTiming.tplan2 | 80 +- .../PlatTrafficRules.tplan2 | 173 +-- .../{Transport => TRANS}/PlatTransport.tplan2 | 43 +- .../UEAREASUB/PlatUeAreaSubscription.tplan2 | 127 ++ .../PlatUeDistanceLookup.tplan2 | 6 +- .../PlatUeDistanceSubscription.tplan2 | 8 +- .../PlatUeInformationLookup.tplan2 | 6 +- .../PlatUeInformationSubscription.tplan2 | 8 +- .../PlatUeLocationLookup.tplan2 | 6 +- .../PlatUeLocationSubscription.tplan2 | 8 +- .../PlatUeIdentity.tplan2 | 216 +-- .../PlatUeTrackingSubscription.tplan2 | 8 +- 23 files changed, 820 insertions(+), 3057 deletions(-) rename Test Purposes/MEO/{APPCTX => UEAPPCTX}/SysUeAppsContext.tplan2 (55%) rename Test Purposes/SRV/{SAQ => APPSAQ}/PlatAppServices.tplan2 (72%) rename Test Purposes/SRV/{Notifications => APPSUB}/PlatAppSubscriptions.tplan2 (68%) rename Test Purposes/SRV/{UeAreaSubscription => AREASUB}/PlatUeAreaSubscription.tplan2 (96%) rename Test Purposes/SRV/{Bandwidth => BWA}/PlatBandwidthManager.tplan2 (74%) rename Test Purposes/SRV/{DnsRules => DNS}/PlatDnsRules.tplan2 (78%) rename Test Purposes/SRV/{RadioNode => RLOC}/PlatRadioNodeLocation.tplan2 (96%) rename Test Purposes/SRV/{Notifications => SRVSUB}/PlatSrvSubscriptions.tplan2 (68%) rename Test Purposes/SRV/{Timing => TIME}/PlatTiming.tplan2 (59%) rename Test Purposes/SRV/{TrafficRules => TRAF}/PlatTrafficRules.tplan2 (79%) rename Test Purposes/SRV/{Transport => TRANS}/PlatTransport.tplan2 (64%) create mode 100644 Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 rename Test Purposes/SRV/{UeDistanceLookup => UEDISTLOOK}/PlatUeDistanceLookup.tplan2 (94%) rename Test Purposes/SRV/{UeDistanceSubscription => UEDISTSUB}/PlatUeDistanceSubscription.tplan2 (96%) rename Test Purposes/SRV/{UeInformationLookup => UEINFLOOK}/PlatUeInformationLookup.tplan2 (94%) rename Test Purposes/SRV/{UeInformationSubscription => UEINFSUB}/PlatUeInformationSubscription.tplan2 (96%) rename Test Purposes/SRV/{UeLocationLookup => UELOC}/PlatUeLocationLookup.tplan2 (95%) rename Test Purposes/SRV/{UeLocationSubscription => UELOCSUB}/PlatUeLocationSubscription.tplan2 (96%) rename Test Purposes/SRV/{UeIdentity => UETAG}/PlatUeIdentity.tplan2 (68%) rename Test Purposes/SRV/{UeTrackingSubscription => UETRACKSUB}/PlatUeTrackingSubscription.tplan2 (96%) diff --git a/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 b/Test Purposes/MEO/UEAPPCTX/SysUeAppsContext.tplan2 similarity index 55% rename from Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 rename to Test Purposes/MEO/UEAPPCTX/SysUeAppsContext.tplan2 index 0190268..eaf1223 100644 --- a/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 +++ b/Test Purposes/MEO/UEAPPCTX/SysUeAppsContext.tplan2 @@ -13,17 +13,17 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package sys_mx2_ue_apps_context { +Package MEC_MEO_UEAPPCTX { import all from MEC_Common; /* - * UE Application Contexts (APPCTX) + * UE Application Contexts (UEAPPCTX) */ Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_001_OK" + TP Id "TP_MEC_MEO_UEAPPCTX_001_OK" Test objective "Check that the IUT acknowledges the creation of the application context @@ -76,93 +76,7 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_002_OK" - - Test objective - "Check that the IUT updates the application callback reference - when commanded by an UE Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - body containing - AppContext containing - callbackReference indicating value some_uri - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_003_OK" - - Test objective - "Check that the IUT deletes the application context - when commanded by an UE Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_001_BR" + TP Id "TP_MEC_MEO_UEAPPCTX_001_BR" Test objective "Check that the IUT responds with an error when @@ -208,101 +122,11 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_002_BI" + TP Id "TP_MEC_MEO_UEAPPCTX_002_OK" Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 016, clause 5.1.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a iPOST containing - uri indicating value "mx2/v2/app_contexts", - body containing - AppContext containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_003_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 016, clause 5.1.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "mx2/v2/app_contexts", - body containing - AppContext containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_004_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT updates the application callback reference + when commanded by an UE Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" @@ -324,53 +148,6 @@ Package sys_mx2_ue_apps_context { when { the IUT entity receives a vPUT containing uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - body containing - AppContext containing - // A parameter not legible for update should trigger an error response. - associateUeAppId indicating value some_value - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_005_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a iPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}", body containing AppContext containing callbackReference indicating value some_uri @@ -382,7 +159,7 @@ Package sys_mx2_ue_apps_context { then { // MEC 017, clause 7.5.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" + status_code set to "204 No Content" ; to the UE_APP entity } @@ -391,11 +168,11 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_006_BI" + TP Id "TP_MEC_MEO_UEAPPCTX_002_BR" Test objective "Check that the IUT responds with an error when - a non-authorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" @@ -415,11 +192,12 @@ Package sys_mx2_ue_apps_context { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" body containing AppContext containing - callbackReference indicating value some_uri + // A parameter not legible for update should trigger an error response. + associateUeAppId indicating value some_value ; ; ; @@ -428,7 +206,7 @@ Package sys_mx2_ue_apps_context { then { // MEC 017, clause 7.5.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the UE_APP entity } @@ -437,7 +215,7 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_007_NF" + TP Id "TP_MEC_MEO_UEAPPCTX_002_NF" Test objective "Check that the IUT responds with an error when @@ -483,51 +261,11 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_008_BI" + TP Id "TP_MEC_MEO_UEAPPCTX_003_OK" Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a iDELETE containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_009_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT deletes the application context + when commanded by an UE Application" Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" @@ -546,7 +284,7 @@ Package sys_mx2_ue_apps_context { Expected behaviour ensure that { when { - the IUT entity receives a DELETE containing + the IUT entity receives a vDELETE containing uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" ; from the UE_APP entity @@ -554,7 +292,7 @@ Package sys_mx2_ue_apps_context { then { // MEC 016, clause 7.5.3.5 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "204 No Content" ; to the UE_APP entity } @@ -563,7 +301,7 @@ Package sys_mx2_ue_apps_context { Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_010_NF" + TP Id "TP_MEC_MEO_UEAPPCTX_003_NF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 b/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 index f0757de..d1c056c 100644 --- a/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 +++ b/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package sys_mx2_ue_applications { +Package MEC_MEO_UEAPPS { import all from MEC_Common; @@ -23,7 +23,7 @@ Package sys_mx2_ue_applications { */ Test Purpose { - TP Id "TP_MEC_SYS_UEAPPS_001_OK" + TP Id "TP_MEC_MEO_UEAPPS_001_OK" Test objective "Check that the IUT responds with the list of user applications available @@ -74,7 +74,7 @@ Package sys_mx2_ue_applications { Test Purpose { - TP Id "TP_MEC_SYS_UEAPPS_001_BR" + TP Id "TP_MEC_MEO_UEAPPS_001_BR" Test objective "Check that the IUT responds with an error when @@ -119,93 +119,7 @@ Package sys_mx2_ue_applications { Test Purpose { - TP Id "TP_MEC_SYS_UEAPPS_002_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appInfo containing - appName indicating value APP_NAME - ; - } - - // MEC 016, clause 5.1.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a iGET containing - uri indicating value "mx2/v2/app_list", - query_parameters containing - appName indicating value APP_NAME - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_UEAPPS_003_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.3.3.1" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appInfo containing - appName indicating value APP_NAME - ; - } - - // MEC 016, clause 5.1.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mx2/v2/app_list", - query_parameters containing - appName indicating value APP_NAME - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_UEAPPS_004_NF" + TP Id "TP_MEC_MEO_UEAPPS_001_NF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 b/Test Purposes/SRV/APPSAQ/PlatAppServices.tplan2 similarity index 72% rename from Test Purposes/SRV/SAQ/PlatAppServices.tplan2 rename to Test Purposes/SRV/APPSAQ/PlatAppServices.tplan2 index 44b2d14..cdceb2a 100644 --- a/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 +++ b/Test Purposes/SRV/APPSAQ/PlatAppServices.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_app_services { +Package MEC_SRV_APPSAQ { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_app_services { * Application Service Availability Query (APPSAQ) */ Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_001_OK" + TP Id "TP_MEC_SRV_APPSAQ_001_OK" Test objective "Check that the IUT responds with a list of available MEC services @@ -68,180 +68,7 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_002_OK" - - Test objective - "Check that the IUT notifies the authorised relevant (subscribed) application - instances when a new service for a given application instance is registered" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", - body containing - ServiceInfo containing - serName indicating value SERVICE_NAME - ; - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.15.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - ServiceInfo containing - serName set to SERVICE_NAME - ; - ; - ; - to the MEC_APP_Registrant entity - and - // MEC 011, clause 6.4.2 - the IUT entity sends a notification_message containing - body containing - notificationType set to "SerAvailabilityNotification", - services containing - serName set to SERVICE_NAME - _links containing - subscription set to MP1_SUBSCRIPTION_A - ; - ; - ; - ; - to the MEC_APP_Subscriber entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_003_OK" - - Test objective - "Check that the IUT responds with the information on a specific service - for a given application instance when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfo containing - serInstanceId set to SERVICE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_004_OK" - - Test objective - "Check that the IUT updates a service information for a given - application instance when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value PROPER_ETAG, - body containing - ServiceInfo containing - version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfo containing - version set to NEW_VERSION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_001_BR" + TP Id "TP_MEC_SRV_APPSAQ_001_BR" Test objective "Check that the IUT responds with an error when @@ -285,94 +112,14 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_002_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.15.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/services" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.15.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_004_BR" + TP Id "TP_MEC_SRV_APPSAQ_002_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT notifies the authorised relevant (subscribed) application + instances when a new service for a given application instance is registered" - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" Config Id Config_MEC_1 @@ -395,8 +142,7 @@ Package plat_app_services { uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", body containing ServiceInfo containing - // Wrong parameter name should trigger an error response. - Name indicating value SERVICE_NAME + serName indicating value SERVICE_NAME ; ; ; @@ -405,20 +151,40 @@ Package plat_app_services { then { // MEC 011, clause 7.15.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "201 Created", + Location set to LOCATION, + body containing + ServiceInfo containing + serName set to SERVICE_NAME + ; + ; ; to the MEC_APP_Registrant entity + and + // MEC 011, clause 6.4.2 + the IUT entity sends a notification_message containing + body containing + notificationType set to "SerAvailabilityNotification", + services containing + serName set to SERVICE_NAME + _links containing + subscription set to MP1_SUBSCRIPTION_A + ; + ; + ; + ; + to the MEC_APP_Subscriber entity } } } Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_005_BI" + TP Id "TP_MEC_SRV_APPSAQ_002_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" @@ -439,10 +205,13 @@ Package plat_app_services { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + the IUT entity receives a vPOST containing uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", body containing - serName indicating value SERVICE_NAME + ServiceInfo containing + // Wrong parameter name should trigger an error response. + Name indicating value SERVICE_NAME + ; ; ; from the MEC_APP_Registrant entity @@ -450,7 +219,7 @@ Package plat_app_services { then { // MEC 011, clause 7.15.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP_Registrant entity } @@ -459,7 +228,7 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_006_NF" + TP Id "TP_MEC_SRV_APPSAQ_002_NF" Test objective "Check that the IUT responds with an error when @@ -506,13 +275,14 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_007_BI" + TP Id "TP_MEC_SRV_APPSAQ_003_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT responds with the information on a specific service + for a given application instance when queried by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1" + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" Config Id Config_MEC_1 @@ -532,7 +302,7 @@ Package plat_app_services { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" ; from the MEC_APP entity @@ -540,7 +310,12 @@ Package plat_app_services { then { // MEC 011, clause 7.14.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "200 OK" + body containing + ServiceInfo containing + serInstanceId set to SERVICE_ID + ; + ; ; to the MEC_APP entity } @@ -549,7 +324,7 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_008_NF" + TP Id "TP_MEC_SRV_APPSAQ_003_NF" Test objective "Check that the IUT responds with an error when @@ -592,13 +367,15 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_009_BR" + TP Id "TP_MEC_SRV_APPSAQ_004_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT updates a service information for a given + application instance when commanded by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" Config Id Config_MEC_1 @@ -623,8 +400,7 @@ Package plat_app_services { if_match indicating value PROPER_ETAG, body containing ServiceInfo containing - // Wrong parameter name should trigger an error response. - a_version indicating value NEW_VERSION + version indicating value NEW_VERSION ; ; ; @@ -633,7 +409,12 @@ Package plat_app_services { then { // MEC 011, clause 7.14.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "200 OK" + body containing + ServiceInfo containing + version set to NEW_VERSION + ; + ; ; to the MEC_APP entity } @@ -642,11 +423,11 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_010_BI" + TP Id "TP_MEC_SRV_APPSAQ_004_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" @@ -668,11 +449,14 @@ Package plat_app_services { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", if_match indicating value PROPER_ETAG, body containing - version indicating value NEW_VERSION + ServiceInfo containing + // Wrong parameter name should trigger an error response. + a_version indicating value NEW_VERSION + ; ; ; from the MEC_APP entity @@ -680,7 +464,7 @@ Package plat_app_services { then { // MEC 011, clause 7.14.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -689,7 +473,7 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_011_NF" + TP Id "TP_MEC_SRV_APPSAQ_004_NF" Test objective "Check that the IUT responds with an error when @@ -738,7 +522,7 @@ Package plat_app_services { Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_012_PF" + TP Id "TP_MEC_SRV_APPSAQ_004_PF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 b/Test Purposes/SRV/APPSUB/PlatAppSubscriptions.tplan2 similarity index 68% rename from Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 rename to Test Purposes/SRV/APPSUB/PlatAppSubscriptions.tplan2 index a8e74c6..d3de355 100644 --- a/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 +++ b/Test Purposes/SRV/APPSUB/PlatAppSubscriptions.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_app_subscriptions { +Package MEC_SRV_APPSUB { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_app_subscriptions { * Application Subscriptions (APPSUB) */ Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_001_OK" + TP Id "TP_MEC_SRV_APPSUB_001_OK" Test objective "Check that the IUT responds with a list of subscriptions for notifications @@ -66,192 +66,7 @@ Package plat_app_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_002_OK" - - Test objective - "Check that the IUT acknowledges the subscription by a MEC Application - to notifications on service availability events" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" - body containing - AppTerminationNotificationSubscription containing - subscriptionType indicating value "AppTerminationNotificationSubscription", - callbackReference indicating value some_uri - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - AppTerminationNotificationSubscription containing - subscriptionType set to "AppTerminationNotificationSubscription", - callbackReference set to some_uri - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_003_OK" - - Test objective - "Check that the IUT responds with the information on a specific subscription - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - AppTerminationNotificationSubscription containing - subscriptionType set to "AppTerminationNotificationSubscription" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_004_OK" - - Test objective - "Check that the IUT acknowledges the unsubscribe from service availability event notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_001_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_002_NF" + TP Id "TP_MEC_SRV_APPSUB_001_NF" Test objective "Check that the IUT responds with an error when @@ -291,13 +106,14 @@ Package plat_app_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_003_BR" + TP Id "TP_MEC_SRV_APPSUB_002_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT acknowledges the subscription by a MEC Application + to notifications on service availability events" - Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4" + Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" Config Id Config_MEC_1 @@ -318,8 +134,7 @@ Package plat_app_subscriptions { uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" body containing AppTerminationNotificationSubscription containing - // Unknown value should trigger an error response. - subscriptionType indicating value INVALID_SUBSCRIPTION, + subscriptionType indicating value "AppTerminationNotificationSubscription", callbackReference indicating value some_uri ; ; @@ -329,7 +144,14 @@ Package plat_app_subscriptions { then { // MEC 011, clause 7.6.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "201 Created", + Location set to LOCATION, + body containing + AppTerminationNotificationSubscription containing + subscriptionType set to "AppTerminationNotificationSubscription", + callbackReference set to some_uri + ; + ; ; to the MEC_APP entity } @@ -338,14 +160,13 @@ Package plat_app_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_004_BI" + TP Id "TP_MEC_SRV_APPSUB_002_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4" Config Id Config_MEC_1 @@ -362,11 +183,14 @@ Package plat_app_subscriptions { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + the IUT entity receives a vPOST containing uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" body containing - subscriptionType indicating value "SerAvailabilityNotificationSubscription", - callbackReference indicating value some_uri + AppTerminationNotificationSubscription containing + // Unknown value should trigger an error response. + subscriptionType indicating value INVALID_SUBSCRIPTION, + callbackReference indicating value some_uri + ; ; ; from the MEC_APP entity @@ -374,7 +198,7 @@ Package plat_app_subscriptions { then { // MEC 011, clause 7.6.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -383,13 +207,14 @@ Package plat_app_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_005_BI" + TP Id "TP_MEC_SRV_APPSUB_003_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT responds with the information on a specific subscription + when queried by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.1" + Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" Config Id Config_MEC_1 @@ -409,7 +234,7 @@ Package plat_app_subscriptions { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity @@ -417,7 +242,12 @@ Package plat_app_subscriptions { then { // MEC 011, clause 7.5.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "200 OK" + body containing + AppTerminationNotificationSubscription containing + subscriptionType set to "AppTerminationNotificationSubscription" + ; + ; ; to the MEC_APP entity } @@ -426,7 +256,7 @@ Package plat_app_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_006_NF" + TP Id "TP_MEC_SRV_APPSUB_003_NF" Test objective "Check that the IUT responds with an error when @@ -470,11 +300,11 @@ Package plat_app_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_007_BI" + TP Id "TP_MEC_SRV_APPSUB_004_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT acknowledges the unsubscribe from service availability event notifications + when commanded by a MEC Application" Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.5" @@ -496,7 +326,7 @@ Package plat_app_subscriptions { Expected behaviour ensure that { when { - the IUT entity receives a DELETE containing + the IUT entity receives a vDELETE containing uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity @@ -504,7 +334,7 @@ Package plat_app_subscriptions { then { // MEC 011, clause 7.5.3.5 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "204 No Content" ; to the MEC_APP entity } @@ -513,7 +343,7 @@ Package plat_app_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_APPSUB_008_NF" + TP Id "TP_MEC_SRV_APPSUB_004_NF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 b/Test Purposes/SRV/AREASUB/PlatUeAreaSubscription.tplan2 similarity index 96% rename from Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 rename to Test Purposes/SRV/AREASUB/PlatUeAreaSubscription.tplan2 index 19e8530..9945ea5 100644 --- a/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 +++ b/Test Purposes/SRV/AREASUB/PlatUeAreaSubscription.tplan2 @@ -13,17 +13,17 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_area_subscription { +Package MEC_SRV_UEAREASUB { import all from MEC_Common; /* - * UE Area Subscribe (AREASUB) + * UE Area Subscribe (UEAREASUB) */ Test Purpose { - TP Id "TP_MEC_PLAT_AREASUB_001_OK" + TP Id "TP_MEC_SRV_UEAREASUB_001_OK" Test objective "Check that the IUT acknowledges the UE area change subscription request when @@ -86,7 +86,7 @@ Package plat_ue_area_subscription { } Test Purpose { - TP Id "TP_MEC_PLAT_AREASUB_002_OK" + TP Id "TP_MEC_SRV_UEAREASUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE area change notifications diff --git a/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 b/Test Purposes/SRV/BWA/PlatBandwidthManager.tplan2 similarity index 74% rename from Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 rename to Test Purposes/SRV/BWA/PlatBandwidthManager.tplan2 index ebd5cf0..933a860 100644 --- a/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 +++ b/Test Purposes/SRV/BWA/PlatBandwidthManager.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_bandwidth_manager { +Package MEC_SRV_BWA { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_bandwidth_manager { */ Test Purpose { - TP Id "TP_MEC_PLAT_BWA_001_OK" + TP Id "TP_MEC_SRV_BWA_001_OK" Test objective "Check that the IUT responds with the list of configured bandwidth allocations @@ -72,265 +72,7 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_002_OK" - - Test objective - "Check that the IUT responds with a registration and initialisation approval - for the requested bandwidth requirements sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "bwm/v1/bw_allocations", - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK", - Location set to LOCATION, - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_BWA_003_OK" - - Test objective - "Check that the IUT responds with the configured bandwidth allocation - when queried by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_BWA_004_OK" - - Test objective - "Check that the IUT updates the requested bandwidth requirements - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_BWA_005_OK" - - Test objective - "Check that the IUT when provided with just the changes (deltas) - updates the requested bandwidth requirements - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_BWA_006_OK" - - Test objective - "Check that the IUT unregisters from the Bandwidth Management Service - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_BWA_001_BR" + TP Id "TP_MEC_SRV_BWA_001_BR" Test objective "Check that the IUT responds with an error when @@ -374,54 +116,11 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_002_BI" + TP Id "TP_MEC_SRV_BWA_002_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a bwInfo containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "bwm/v1/bw_allocations", - query_parameters containing - app_instance_id indicating value APP_INSTANCE_ID - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_BWA_003_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT responds with a registration and initialisation approval + for the requested bandwidth requirements sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" @@ -446,7 +145,7 @@ Package plat_bandwidth_manager { body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, - requestType indicating value INVALID_BW_ALLOCATION + allocationDirection indicating value SOME_DIRECTION ; ; from the MEC_APP entity @@ -454,7 +153,15 @@ Package plat_bandwidth_manager { then { // MEC 015, clause 8.4.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "200 OK", + Location set to LOCATION, + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + fixedAllocation set to SOME_ALLOCATION, + allocationDirection set to SOME_DIRECTION + ; + ; ; to the MEC_APP entity } @@ -463,11 +170,11 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_004_BI" + TP Id "TP_MEC_SRV_BWA_002_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" @@ -487,12 +194,12 @@ Package plat_bandwidth_manager { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + the IUT entity receives a vPOST containing uri indicating value "bwm/v1/bw_allocations", body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, - requestType indicating value SOME_TYPE + requestType indicating value INVALID_BW_ALLOCATION ; ; from the MEC_APP entity @@ -500,7 +207,7 @@ Package plat_bandwidth_manager { then { // MEC 015, clause 8.4.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -509,13 +216,14 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_005_BI" + TP Id "TP_MEC_SRV_BWA_003_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT responds with the configured bandwidth allocation + when queried by a MEC Application" - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1" + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" Config Id Config_MEC_1 @@ -535,7 +243,7 @@ Package plat_bandwidth_manager { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" ; from the MEC_APP entity @@ -543,7 +251,12 @@ Package plat_bandwidth_manager { then { // MEC 015, clause 8.4.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID + ; + ; ; to the MEC_APP entity } @@ -552,7 +265,7 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_006_NF" + TP Id "TP_MEC_SRV_BWA_003_NF" Test objective "Check that the IUT responds with an error when @@ -595,11 +308,11 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_007_BR" + TP Id "TP_MEC_SRV_BWA_004_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT updates the requested bandwidth requirements + when commanded by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" @@ -628,7 +341,7 @@ Package plat_bandwidth_manager { body containing appInsId indicating value APP_INSTANCE_ID, fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value INVALID_DIRECTION + allocationDirection indicating value SOME_DIRECTION ; ; from the MEC_APP entity @@ -636,7 +349,14 @@ Package plat_bandwidth_manager { then { // MEC 015, clause 8.3.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + fixedAllocation set to SOME_ALLOCATION, + allocationDirection set to SOME_DIRECTION + ; + ; ; to the MEC_APP entity } @@ -645,11 +365,11 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_008_BI" + TP Id "TP_MEC_SRV_BWA_004_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" @@ -672,7 +392,7 @@ Package plat_bandwidth_manager { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", if_match indicating value PROPER_ETAG, body containing @@ -686,7 +406,7 @@ Package plat_bandwidth_manager { then { // MEC 015, clause 8.3.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -695,7 +415,7 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_009_NF" + TP Id "TP_MEC_SRV_BWA_004_NF" Test objective "Check that the IUT responds with an error when @@ -745,7 +465,7 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_010_PF" + TP Id "TP_MEC_SRV_BWA_004_PF" Test objective "Check that the IUT responds with an error when @@ -795,11 +515,12 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_011_BR" + TP Id "TP_MEC_SRV_BWA_005_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT when provided with just the changes (deltas) + updates the requested bandwidth requirements + when commanded by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" @@ -827,7 +548,6 @@ Package plat_bandwidth_manager { if_match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, - requestType indicating value INVALID_TYPE, fixedAllocation indicating value SOME_ALLOCATION, allocationDirection indicating value SOME_DIRECTION ; @@ -837,7 +557,14 @@ Package plat_bandwidth_manager { then { // MEC 015, clause 8.3.3.3 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + fixedAllocation set to SOME_ALLOCATION, + allocationDirection set to SOME_DIRECTION + ; + ; ; to the MEC_APP entity } @@ -846,11 +573,11 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_012_BI" + TP Id "TP_MEC_SRV_BWA_005_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" @@ -873,11 +600,12 @@ Package plat_bandwidth_manager { Expected behaviour ensure that { when { - the IUT entity receives a PATCH containing + the IUT entity receives a vPATCH containing uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", if_match indicating value PROPER_ETAG, body containing appInsId indicating value APP_INSTANCE_ID, + requestType indicating value INVALID_TYPE, fixedAllocation indicating value SOME_ALLOCATION, allocationDirection indicating value SOME_DIRECTION ; @@ -887,7 +615,7 @@ Package plat_bandwidth_manager { then { // MEC 015, clause 8.3.3.3 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -896,7 +624,7 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_013_NF" + TP Id "TP_MEC_SRV_BWA_005_NF" Test objective "Check that the IUT responds with an error when @@ -946,7 +674,7 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_014_PF" + TP Id "TP_MEC_SRV_BWA_005_PF" Test objective "Check that the IUT responds with an error when @@ -996,11 +724,11 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_015_OK" + TP Id "TP_MEC_SRV_BWA_006_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT unregisters from the Bandwidth Management Service + when commanded by a MEC Application" Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5" @@ -1019,7 +747,7 @@ Package plat_bandwidth_manager { Expected behaviour ensure that { when { - the IUT entity receives a DELETE containing + the IUT entity receives a vDELETE containing uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" ; from the MEC_APP entity @@ -1027,7 +755,7 @@ Package plat_bandwidth_manager { then { // MEC 015, clause 8.3.3.5 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "204 No Content" ; to the MEC_APP entity } @@ -1036,7 +764,7 @@ Package plat_bandwidth_manager { Test Purpose { - TP Id "TP_MEC_PLAT_BWA_016_NF" + TP Id "TP_MEC_SRV_BWA_006_NF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/SRV/DNS/PlatDnsRules.tplan2 similarity index 78% rename from Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 rename to Test Purposes/SRV/DNS/PlatDnsRules.tplan2 index 0278fd6..e6d23a9 100644 --- a/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 +++ b/Test Purposes/SRV/DNS/PlatDnsRules.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_dns_rules { +Package MEC_SRV_DNS { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_dns_rules { * DNS rules (DNS) */ Test Purpose { - TP Id "TP_MEC_PLAT_DNS_001_OK" + TP Id "TP_MEC_SRV_DNS_001_OK" Test objective "Check that the IUT responds with a list of active DNS rules @@ -68,7 +68,7 @@ Package plat_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_DNS_002_OK" + TP Id "TP_MEC_SRV_DNS_002_OK" Test objective "Check that the IUT responds with the information on a specific DNS rule @@ -117,105 +117,7 @@ Package plat_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_DNS_003_OK" - - Test objective - "Check that the IUT updates a specific DNS rule - when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a dns_rules containing - rule_id indicating value DNS_RULE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", - if_match indicating value PROPER_ETAG - body containing - dnsRuleId indicating value DNS_RULE_NAME, - ipAddress indicating value SOME_IP_ADDRESS - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.13.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - DnsRule containing - dnsRuleId set to DNS_RULE_NAME, - ipAddress set to SOME_IP_ADDRESS - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_DNS_001_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a dns_rules containing - rule_id indicating value DNS_RULE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.13.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_DNS_002_NF" + TP Id "TP_MEC_SRV_DNS_002_NF" Test objective "Check that the IUT responds with an error when @@ -258,13 +160,14 @@ Package plat_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_DNS_003_BR" + TP Id "TP_MEC_SRV_DNS_003_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT updates a specific DNS rule + when commanded by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2" + Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" Config Id Config_MEC_1 @@ -289,8 +192,7 @@ Package plat_dns_rules { if_match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, - // Unknown parameter value should trigger an error response. - state indicating value UNKNOWN_VALUE + ipAddress indicating value SOME_IP_ADDRESS ; ; from the MEC_APP entity @@ -298,7 +200,13 @@ Package plat_dns_rules { then { // MEC 011, clause 7.13.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "200 OK" + body containing + DnsRule containing + dnsRuleId set to DNS_RULE_NAME, + ipAddress set to SOME_IP_ADDRESS + ; + ; ; to the MEC_APP entity } @@ -307,11 +215,11 @@ Package plat_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_DNS_004_BI" + TP Id "TP_MEC_SRV_DNS_003_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2" @@ -333,12 +241,13 @@ Package plat_dns_rules { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", if_match indicating value PROPER_ETAG body containing dnsRuleId indicating value DNS_RULE_NAME, - state indicating value STATE_VALUE + // Unknown parameter value should trigger an error response. + state indicating value UNKNOWN_VALUE ; ; from the MEC_APP entity @@ -346,7 +255,7 @@ Package plat_dns_rules { then { // MEC 011, clause 7.13.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -355,7 +264,7 @@ Package plat_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_DNS_005_NF" + TP Id "TP_MEC_SRV_DNS_003_NF" Test objective "Check that the IUT responds with an error when @@ -403,7 +312,7 @@ Package plat_dns_rules { Test Purpose { - TP Id "TP_MEC_PLAT_DNS_006_PF" + TP Id "TP_MEC_SRV_DNS_003_PF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 b/Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 index 561a09b..5930aac 100644 --- a/Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 +++ b/Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_fixed_access_info { +Package MEC_SRV_FAIS { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_fixed_access_info { * Fixed Access Information Service (FAIS) */ Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_001_OK" + TP Id "TP_MEC_SRV_FAIS_001_OK" Test objective "Check that the IUT responds with the current status of the fixed access information @@ -62,469 +62,7 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_002_OK" - - Test objective - "Check that the IUT responds with the current status of the device information - when queried by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/fai/v1/queries/device_info" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - DeviceInfo set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_003_OK" - - Test objective - "Check that the IUT responds with the current status of the cable line information - when queried by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/fai/v1/queries/cable_line_info" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.5.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - CableLineInfo set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_004_OK" - - Test objective - "Check that the IUT responds with the current status of the optical network information - when queried by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/fai/v1/queries/optical_network_info" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.6.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - PonInfo set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_005_OK" - - Test objective - "Check that the IUT responds with the subscriptions for fixed access information notifications - when queried by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.6.1 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/fai/v1/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.7.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - SubscriptionLinkList set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_006_OK" - - Test objective - "Check that the IUT acknowledges the subscription by a MEC Application - to notifications on Optical Network Unit alarm events" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.6.1 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "fai/v1/subscriptions" - body containing - OnuAlarmSubscription containing - subscriptionType indicating value "OnuAlarmSubscription", - callbackReference indicating value CALLBACK_URL - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.7.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - OnuAlarmSubscription containing - subscriptionType set to "OnuAlarmSubscription" - ; - ; - ; - to the MEC_APP entity - and - // MEC 029, clause 7.7.3.4 - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URL - body containing - OnuAlarmNotification containing - notificationType set to "OnuAlarmSubscription" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_007_OK" - - Test objective - "Check that the IUT responds with the information on a given subscription - when queried by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 029, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.8.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - OnuAlarmSubscription containing - subscriptionType set to "OnuAlarmSubscription" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_008_OK" - - Test objective - "Check that the IUT updates an existing subscription - when commanded by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.2" - - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 029, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", - body containing - OnuAlarmSubscription containing - subscriptionType set to "OnuAlarmSubscription" - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.8.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - OnuAlarmSubscription containing - subscriptionType set to "OnuAlarmSubscription" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_009_OK" - - Test objective - "Check that the IUT cancels an existing subscription - when commanded by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 029, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.8.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_010_OK" - - Test objective - "Check that the IUT sends notification on expiry of Fixed Access Information event subscription - to a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.6.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "fai/v1/subscriptions" - body containing - OnuAlarmSubscription containing - subscriptionType indicating value "DevInfoSubscription", - callbackReference indicating value CALLBACK_URL, - expiryDeadline indicating value NOW_PLUS_X_SECONDS // TODO: how to set this? - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.7.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - DevInfoSubscription containing - subscriptionType set to "DevInfoSubscription" - ; - ; - ; - to the MEC_APP entity - - // TODO: how to wait for a timeout of (NOW_PLUS_X_SECONDS - guard time)? which guard time value to use? - and - // MEC 029, clause 5.2.6.2 - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URL - body containing - ExpiryNotification containing - expiryDeadline indicating value NOW_PLUS_X_SECONDS // TODO: how to set this? - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_011_OK" - - Test objective - "Check that the IUT sends notifications on Fixed Access Information events - to a subscribed MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 5.2.7" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscriptionType indicating value "OnuAlarmSubscription", - callbackReference indicating value CALLBACK_URL - ; - } - - // MEC 029, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity generates a onu_alarm_event - } - then { - // // MEC 029, clause 5.2.7 - the IUT entity sends a vPOST containing - Uri set to CALLBACK_URL - body containing - OnuAlarmSubscription containing - notificationType set to "OnuAlarmSubscription" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_001_BR" + TP Id "TP_MEC_SRV_FAIS_001_BR" Test objective "Check that the IUT responds with an error when @@ -540,176 +78,21 @@ Package plat_fixed_access_info { the IUT entity being_in idle_state } - // MEC 029, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/fai/v1/queries/fa_info" - query_parameters containing - // Wrong parameter name should trigger an error response. - interface indicating value any_value - ; - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_002_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a iGET containing - uri indicating value "/fai/v1/queries/fa_info" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_003_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/fai/v1/queries/fa_info" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_004_NF" - - Test objective - "Check that the IUT responds with an error when - a request for non-existing data is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/fai/v1/queries/fa_info" - query_parameters containing - interfaceType indicating value 1 - ; - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_005_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.3 + // MEC 029, clause 5.2.2 Expected behaviour ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/fai/v1/queries/device_info" + uri indicating value "/fai/v1/queries/fa_info" query_parameters containing // Wrong parameter name should trigger an error response. - device indicating value any_value + interface indicating value any_value ; ; from the MEC_APP entity } then { - // MEC 029, clause 7.4.3.1 + // MEC 029, clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -720,13 +103,13 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_006_BI" + TP Id "TP_MEC_SRV_FAIS_001_NF" Test objective "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" + a request for non-existing data is sent by a MEC Application" - Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" + Reference "ETSI GS MEC 029 V2.0.7, clause 7.3.3.1" Config Id Config_MEC_1 @@ -736,19 +119,22 @@ Package plat_fixed_access_info { the IUT entity being_in idle_state } - // MEC 029, clause 5.2.3 + // MEC 029, clause 5.2.2 Expected behaviour ensure that { when { - the IUT entity receives a iGET containing - uri indicating value "/fai/v1/queries/device_info" + the IUT entity receives a vGET containing + uri indicating value "/fai/v1/queries/fa_info" + query_parameters containing + interfaceType indicating value 1 + ; ; from the MEC_APP entity } then { - // MEC 029, clause 7.4.3.1 + // MEC 029, clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" + status_code set to "404 Not Found" ; to the MEC_APP entity } @@ -757,11 +143,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_007_BI" + TP Id "TP_MEC_SRV_FAIS_002_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT responds with the current status of the device information + when queried by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" @@ -777,7 +163,7 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/fai/v1/queries/device_info" ; from the MEC_APP entity @@ -785,7 +171,10 @@ Package plat_fixed_access_info { then { // MEC 029, clause 7.4.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "200 OK" + body containing + DeviceInfo set to any_value + ; ; to the MEC_APP entity } @@ -794,11 +183,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_008_NF" + TP Id "TP_MEC_SRV_FAIS_002_BR" Test objective "Check that the IUT responds with an error when - a request for non-existing data is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" @@ -817,7 +206,8 @@ Package plat_fixed_access_info { the IUT entity receives a vGET containing uri indicating value "/fai/v1/queries/device_info" query_parameters containing - gwId indicating value UNKNOWN_VALUE + // Wrong parameter name should trigger an error response. + device indicating value any_value ; ; from the MEC_APP entity @@ -825,7 +215,7 @@ Package plat_fixed_access_info { then { // MEC 029, clause 7.4.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -834,13 +224,13 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_009_BR" + TP Id "TP_MEC_SRV_FAIS_002_NF" Test objective "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + a request for non-existing data is sent by a MEC Application" - Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" + Reference "ETSI GS MEC 029 V2.0.7, clause 7.4.3.1" Config Id Config_MEC_1 @@ -850,23 +240,22 @@ Package plat_fixed_access_info { the IUT entity being_in idle_state } - // MEC 029, clause 5.2.4 + // MEC 029, clause 5.2.3 Expected behaviour ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/fai/v1/queries/cable_line_info" + uri indicating value "/fai/v1/queries/device_info" query_parameters containing - // Wrong parameter name should trigger an error response. - cm indicating value any_value + gwId indicating value UNKNOWN_VALUE ; ; from the MEC_APP entity } then { - // MEC 029, clause 7.5.3.1 + // MEC 029, clause 7.4.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "404 Not Found" ; to the MEC_APP entity } @@ -875,11 +264,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_010_BI" + TP Id "TP_MEC_SRV_FAIS_003_OK" Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" + "Check that the IUT responds with the current status of the cable line information + when queried by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" @@ -895,7 +284,7 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a iGET containing + the IUT entity receives a vGET containing uri indicating value "/fai/v1/queries/cable_line_info" ; from the MEC_APP entity @@ -903,7 +292,10 @@ Package plat_fixed_access_info { then { // MEC 029, clause 7.5.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" + status_code set to "200 OK" + body containing + CableLineInfo set to any_value + ; ; to the MEC_APP entity } @@ -912,11 +304,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_011_BI" + TP Id "TP_MEC_SRV_FAIS_003_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.5.3.1" @@ -932,15 +324,19 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/fai/v1/queries/cable_line_info" + query_parameters containing + // Wrong parameter name should trigger an error response. + cm indicating value any_value + ; ; from the MEC_APP entity } then { // MEC 029, clause 7.5.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -949,7 +345,7 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_012_NF" + TP Id "TP_MEC_SRV_FAIS_003_NF" Test objective "Check that the IUT responds with an error when @@ -989,11 +385,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_013_BR" + TP Id "TP_MEC_SRV_FAIS_004_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT responds with the current status of the optical network information + when queried by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" @@ -1011,54 +407,16 @@ Package plat_fixed_access_info { when { the IUT entity receives a vGET containing uri indicating value "/fai/v1/queries/optical_network_info" - query_parameters containing - // Wrong parameter name should trigger an error response. - onu indicating value any_value - ; - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.6.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_014_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a iGET containing - uri indicating value "/fai/v1/queries/optical_network_info" ; from the MEC_APP entity } then { // MEC 029, clause 7.6.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" + status_code set to "200 OK" + body containing + PonInfo set to any_value + ; ; to the MEC_APP entity } @@ -1067,11 +425,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_015_BI" + TP Id "TP_MEC_SRV_FAIS_004_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.6.3.1" @@ -1087,15 +445,19 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/fai/v1/queries/optical_network_info" + query_parameters containing + // Wrong parameter name should trigger an error response. + onu indicating value any_value + ; ; from the MEC_APP entity } then { // MEC 029, clause 7.6.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -1104,7 +466,7 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_016_NF" + TP Id "TP_MEC_SRV_FAIS_004_NF" Test objective "Check that the IUT responds with an error when @@ -1144,126 +506,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_017_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.6.1 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/fai/v1/subscriptions" - query_parameters containing - // Wrong parameter name should trigger an error response. - subscription indicating value any_value - ; - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.7.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_018_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.6.1 - Expected behaviour - ensure that { - when { - the IUT entity receives a iGET containing - uri indicating value "/fai/v1/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.7.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_019_BI" + TP Id "TP_MEC_SRV_FAIS_005_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.6.1 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/fai/v1/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.7.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_020_NF" - - Test objective - "Check that the IUT responds with an error when - a request for non-existing data is sent by a MEC Application" + "Check that the IUT responds with the subscriptions for fixed access information notifications + when queried by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" @@ -1281,16 +528,16 @@ Package plat_fixed_access_info { when { the IUT entity receives a vGET containing uri indicating value "/fai/v1/subscriptions" - query_parameters containing - subscription_type indicating value UNKNOWN_VALUE - ; ; from the MEC_APP entity } then { // MEC 029, clause 7.7.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" + status_code set to "200 OK" + body containing + SubscriptionLinkList set to any_value + ; ; to the MEC_APP entity } @@ -1299,40 +546,37 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_021_BR" + TP Id "TP_MEC_SRV_FAIS_005_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" Config Id Config_MEC_1 PICS Selection PIC_MEC_PLAT and PIC_SERVICES - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 029, clause 5.2.6.1 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "fai/v1/subscriptions" - body containing - OnuAlarmSubscription containing - // Unknown value should trigger an error response. - subscriptionType indicating value UNKNOWN_SUSCRIPTION, - callbackReference indicating value CALLBACK_URL - ; - ; + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 029, clause 5.2.6.1 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/fai/v1/subscriptions" + query_parameters containing + // Wrong parameter name should trigger an error response. + subscription indicating value any_value + ; ; from the MEC_APP entity } then { - // MEC 029, clause 7.7.3.4 + // MEC 029, clause 7.7.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -1343,13 +587,13 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_022_BI" + TP Id "TP_MEC_SRV_FAIS_005_NF" Test objective "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" + a request for non-existing data is sent by a MEC Application" - Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.1" Config Id Config_MEC_1 @@ -1363,21 +607,18 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a iPOST containing - uri indicating value "fai/v1/subscriptions" - body containing - OnuAlarmSubscription containing - subscriptionType indicating value "OnuAlarmSubscription", - callbackReference indicating value CALLBACK_URL - ; - ; + the IUT entity receives a vGET containing + uri indicating value "/fai/v1/subscriptions" + query_parameters containing + subscription_type indicating value UNKNOWN_VALUE + ; ; from the MEC_APP entity } then { - // MEC 029, clause 7.7.3.4 + // MEC 029, clause 7.7.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" + status_code set to "404 Not Found" ; to the MEC_APP entity } @@ -1386,11 +627,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_023_BI" + TP Id "TP_MEC_SRV_FAIS_006_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT acknowledges the subscription by a MEC Application + to notifications on Optical Network Unit alarm events" Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" @@ -1406,7 +647,7 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + the IUT entity receives a vPOST containing uri indicating value "fai/v1/subscriptions" body containing OnuAlarmSubscription containing @@ -1420,7 +661,24 @@ Package plat_fixed_access_info { then { // MEC 029, clause 7.7.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "201 Created", + Location set to LOCATION, + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; + ; + to the MEC_APP entity + and + // MEC 029, clause 7.7.3.4 + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URL + body containing + OnuAlarmNotification containing + notificationType set to "OnuAlarmSubscription" + ; + ; ; to the MEC_APP entity } @@ -1429,38 +687,42 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_024_BI" + TP Id "TP_MEC_SRV_FAIS_006_BR" Test objective "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.1" + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" Config Id Config_MEC_1 PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; + the IUT entity being_in idle_state } - // MEC 029, clause 5.2.5 + // MEC 029, clause 5.2.6.1 Expected behaviour ensure that { when { - the IUT entity receives a iGET containing - uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" + the IUT entity receives a vPOST containing + uri indicating value "fai/v1/subscriptions" + body containing + OnuAlarmSubscription containing + // Unknown value should trigger an error response. + subscriptionType indicating value UNKNOWN_SUSCRIPTION, + callbackReference indicating value CALLBACK_URL + ; + ; ; from the MEC_APP entity } then { - // MEC 029, clause 7.8.3.1 + // MEC 029, clause 7.7.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -1469,11 +731,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_025_BI" + TP Id "TP_MEC_SRV_FAIS_007_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT responds with the information on a given subscription + when queried by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.1" @@ -1492,7 +754,7 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity @@ -1500,7 +762,12 @@ Package plat_fixed_access_info { then { // MEC 029, clause 7.8.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "200 OK" + body containing + OnuAlarmSubscription containing + subscriptionType set to "OnuAlarmSubscription" + ; + ; ; to the MEC_APP entity } @@ -1509,7 +776,7 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_026_NF" + TP Id "TP_MEC_SRV_FAIS_007_NF" Test objective "Check that the IUT responds with an error when @@ -1549,11 +816,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_027_BR" + TP Id "TP_MEC_SRV_FAIS_008_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT updates an existing subscription + when commanded by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.2" @@ -1577,8 +844,7 @@ Package plat_fixed_access_info { uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", body containing OnuAlarmSubscription containing - // Wrong parameter name should trigger an error response. - subscription set to "OnuAlarmSubscription" + subscriptionType set to "OnuAlarmSubscription" ; ; ; @@ -1587,66 +853,25 @@ Package plat_fixed_access_info { then { // MEC 029, clause 7.8.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_028_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.2" - - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 029, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a iPUT containing - uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", + status_code set to "200 OK" body containing OnuAlarmSubscription containing subscriptionType set to "OnuAlarmSubscription" ; ; ; - from the MEC_APP entity - } - then { - // MEC 029, clause 7.8.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; to the MEC_APP entity } } } - + Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_029_BI" + TP Id "TP_MEC_SRV_FAIS_008_BR" Test objective "Check that the IUT responds with an error when - a non-authorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.2" @@ -1666,11 +891,12 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}", body containing OnuAlarmSubscription containing - subscriptionType set to "OnuAlarmSubscription" + // Wrong parameter name should trigger an error response. + subscription set to "OnuAlarmSubscription" ; ; ; @@ -1679,7 +905,7 @@ Package plat_fixed_access_info { then { // MEC 029, clause 7.8.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -1688,7 +914,7 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_030_NF" + TP Id "TP_MEC_SRV_FAIS_008_NF" Test objective "Check that the IUT responds with an error when @@ -1734,7 +960,7 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_031_PF" + TP Id "TP_MEC_SRV_FAIS_008_PF" Test objective "Check that the IUT responds with an error when @@ -1781,11 +1007,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_032_BI" + TP Id "TP_MEC_SRV_FAIS_009_OK" Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" + "Check that the IUT cancels an existing subscription + when commanded by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.5" @@ -1804,7 +1030,7 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a iDELETE containing + the IUT entity receives a vDELETE containing uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity @@ -1812,7 +1038,7 @@ Package plat_fixed_access_info { then { // MEC 029, clause 7.8.3.5 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" + status_code set to "204 No Content" ; to the MEC_APP entity } @@ -1821,11 +1047,11 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_033_BI" + TP Id "TP_MEC_SRV_FAIS_009_NF" Test objective "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" + a request for an unknown URI is sent by a MEC Application" Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.5" @@ -1835,8 +1061,8 @@ Package plat_fixed_access_info { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID + the IUT entity "not" having a subscriptions containing + subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -1844,15 +1070,15 @@ Package plat_fixed_access_info { Expected behaviour ensure that { when { - the IUT entity receives a DELETE containing - uri indicating value "/fai/v1/subscriptions/{SUBSCRIPTION_ID}" + the IUT entity receives a vDELETE containing + uri indicating value "/fai/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { // MEC 029, clause 7.8.3.5 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "404 Not Found" ; to the MEC_APP entity } @@ -1861,41 +1087,107 @@ Package plat_fixed_access_info { Test Purpose { - TP Id "TP_MEC_PLAT_FAIS_034_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 029 V2.0.7, clause 7.8.3.5" - + TP Id "TP_MEC_SRV_FAIS_010_OK" + + Test objective + "Check that the IUT sends notification on expiry of Fixed Access Information event subscription + to a MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 7.7.3.4" + Config Id Config_MEC_1 - + PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing - subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; + the IUT entity being_in idle_state } - // MEC 029, clause 5.2.5 + // MEC 029, clause 5.2.6.2 Expected behaviour ensure that { when { - the IUT entity receives a vDELETE containing - uri indicating value "/fai/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + the IUT entity receives a vPOST containing + uri indicating value "fai/v1/subscriptions" + body containing + OnuAlarmSubscription containing + subscriptionType indicating value "DevInfoSubscription", + callbackReference indicating value CALLBACK_URL, + expiryDeadline indicating value NOW_PLUS_X_SECONDS // TODO: how to set this? + ; + ; ; from the MEC_APP entity } then { - // MEC 029, clause 7.8.3.5 + // MEC 029, clause 7.7.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" + status_code set to "201 Created", + Location set to LOCATION, + body containing + DevInfoSubscription containing + subscriptionType set to "DevInfoSubscription" + ; + ; + ; + to the MEC_APP entity + + // TODO: how to wait for a timeout of (NOW_PLUS_X_SECONDS - guard time)? which guard time value to use? + and + // MEC 029, clause 5.2.6.2 + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URL + body containing + ExpiryNotification containing + expiryDeadline indicating value NOW_PLUS_X_SECONDS // TODO: how to set this? + ; + ; ; to the MEC_APP entity } } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_FAIS_011_OK" + + Test objective + "Check that the IUT sends notifications on Fixed Access Information events + to a subscribed MEC Application" + + Reference "ETSI GS MEC 029 V2.0.7, clause 5.2.7" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionType indicating value "OnuAlarmSubscription", + callbackReference indicating value CALLBACK_URL + ; } + + // MEC 029, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity generates a onu_alarm_event + } + then { + // // MEC 029, clause 5.2.7 + the IUT entity sends a vPOST containing + Uri set to CALLBACK_URL + body containing + OnuAlarmSubscription containing + notificationType set to "OnuAlarmSubscription" + ; + ; + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 b/Test Purposes/SRV/RLOC/PlatRadioNodeLocation.tplan2 similarity index 96% rename from Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 rename to Test Purposes/SRV/RLOC/PlatRadioNodeLocation.tplan2 index e66e6aa..5e7c3b4 100644 --- a/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 +++ b/Test Purposes/SRV/RLOC/PlatRadioNodeLocation.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_radio_node_location_lookup { +Package MEC_SRV_RLOC { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_radio_node_location_lookup { */ Test Purpose { - TP Id "TP_MEC_PLAT_RLOC_001_OK" + TP Id "TP_MEC_SRV_RLOC_001_OK" Test objective "Check that the IUT responds with the list of radio nodes currently associated with the MEC host and the location of each radio node diff --git a/Test Purposes/SRV/SAQ/PlatServices.tplan2 b/Test Purposes/SRV/SAQ/PlatServices.tplan2 index 49669cc..35726f8 100644 --- a/Test Purposes/SRV/SAQ/PlatServices.tplan2 +++ b/Test Purposes/SRV/SAQ/PlatServices.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_services { +Package MEC_SRV_SAQ { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_services { * Service Availability Query (SAQ) */ Test Purpose { - TP Id "TP_MEC_PLAT_SAQ_001_OK" + TP Id "TP_MEC_SRV_SAQ_001_OK" Test objective "Check that the IUT responds with a list of available MEC services @@ -65,53 +65,7 @@ Package plat_services { Test Purpose { - TP Id "TP_MEC_PLAT_SAQ_003_OK" - - Test objective - "Check that the IUT responds with the information on a specific service - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - Uri indicating value"/mec_service_mgmt/v1/services/{SERVICE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfo containing - serInstanceId set to SERVICE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_SAQ_001_BR" + TP Id "TP_MEC_SRV_SAQ_001_BR" Test objective "Check that the IUT responds with an error when @@ -152,35 +106,44 @@ Package plat_services { Test Purpose { - TP Id "TP_MEC_PLAT_SAQ_002_BI" + TP Id "TP_MEC_SRV_SAQ_002_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.4.3.1" + "Check that the IUT responds with the information on a specific service + when queried by a MEC Application" + Reference "ETSI GS MEC 011 V2.0.8, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + Config Id Config_MEC_1 PICS Selection PIC_MEC_PLAT and PIC_SERVICES Initial conditions with { - the IUT entity being_in idle_state + the IUT entity being_in idle_state and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; } // MEC 011, clause 5.2.5 Expected behaviour ensure that { when { - the IUT entity receives a GET containing - Uri indicating value"/mec_service_mgmt/v1/services" + the IUT entity receives a vGET containing + Uri indicating value"/mec_service_mgmt/v1/services/{SERVICE_ID}" ; from the MEC_APP entity } then { - // MEC 011, clause 7.4.3.1 + // MEC 011, clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "200 OK" + body containing + ServiceInfo containing + serInstanceId set to SERVICE_ID + ; + ; ; to the MEC_APP entity } @@ -189,7 +152,7 @@ Package plat_services { Test Purpose { - TP Id "TP_MEC_PLAT_SAQ_003_NF" + TP Id "TP_MEC_SRV_SAQ_002_NF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 b/Test Purposes/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 similarity index 68% rename from Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 rename to Test Purposes/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 index 7a47dc2..ecae0de 100644 --- a/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 +++ b/Test Purposes/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_service_subscriptions { +Package MEC_SRV_SRVSUB { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_service_subscriptions { * Service Subscriptions (SRVSUB) */ Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_001_OK" + TP Id "TP_MEC_SRV_SRVSUB_001_OK" Test objective "Check that the IUT responds with a list of subscriptions for notifications @@ -66,192 +66,7 @@ Package plat_service_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_002_OK" - - Test objective - "Check that the IUT acknowledges the subscription by a MEC Application - to notifications on service availability events" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" - body containing - SerAvailabilityNotificationSubscription containing - subscriptionType indicating value "SerAvailabilityNotificationSubscription", - callbackReference indicating value some_uri - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - SerAvailabilityNotificationSubscription containing - subscriptionType set to "SerAvailabilityNotificationSubscription", - callbackReference set to some_uri - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_003_OK" - - Test objective - "Check that the IUT responds with the information on a specific subscription - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - SerAvailabilityNotificationSubscription containing - subscriptionType set to "SerAvailabilityNotificationSubscription" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_004_OK" - - Test objective - "Check that the IUT acknowledges the unsubscribe from service availability event notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_001_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_002_NF" + TP Id "TP_MEC_SRV_SRVSUB_001_NF" Test objective "Check that the IUT responds with an error when @@ -291,13 +106,14 @@ Package plat_service_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_003_BR" + TP Id "TP_MEC_SRV_SRVSUB_002_OK" Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT acknowledges the subscription by a MEC Application + to notifications on service availability events" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" Config Id Config_MEC_1 @@ -318,8 +134,7 @@ Package plat_service_subscriptions { uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" body containing SerAvailabilityNotificationSubscription containing - // Unknown value should trigger an error response. - subscriptionType indicating value INVALID_SUBSCRIPTION, + subscriptionType indicating value "SerAvailabilityNotificationSubscription", callbackReference indicating value some_uri ; ; @@ -329,7 +144,14 @@ Package plat_service_subscriptions { then { // MEC 011, clause 7.6.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "201 Created", + Location set to LOCATION, + body containing + SerAvailabilityNotificationSubscription containing + subscriptionType set to "SerAvailabilityNotificationSubscription", + callbackReference set to some_uri + ; + ; ; to the MEC_APP entity } @@ -338,14 +160,13 @@ Package plat_service_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_004_BI" + TP Id "TP_MEC_SRV_SRVSUB_002_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4" Config Id Config_MEC_1 @@ -362,11 +183,14 @@ Package plat_service_subscriptions { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + the IUT entity receives a vPOST containing uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" body containing - subscriptionType indicating value "SerAvailabilityNotificationSubscription", - callbackReference indicating value some_uri + SerAvailabilityNotificationSubscription containing + // Unknown value should trigger an error response. + subscriptionType indicating value INVALID_SUBSCRIPTION, + callbackReference indicating value some_uri + ; ; ; from the MEC_APP entity @@ -374,7 +198,7 @@ Package plat_service_subscriptions { then { // MEC 011, clause 7.6.3.4 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -383,13 +207,14 @@ Package plat_service_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_005_BI" + TP Id "TP_MEC_SRV_SRVSUB_003_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT responds with the information on a specific subscription + when queried by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1" + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" Config Id Config_MEC_1 @@ -409,7 +234,7 @@ Package plat_service_subscriptions { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity @@ -417,7 +242,12 @@ Package plat_service_subscriptions { then { // MEC 011, clause 7.5.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "200 OK" + body containing + SerAvailabilityNotificationSubscription containing + subscriptionType set to "SerAvailabilityNotificationSubscription" + ; + ; ; to the MEC_APP entity } @@ -426,7 +256,7 @@ Package plat_service_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_006_NF" + TP Id "TP_MEC_SRV_SRVSUB_003_NF" Test objective "Check that the IUT responds with an error when @@ -470,11 +300,11 @@ Package plat_service_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_007_BI" + TP Id "TP_MEC_SRV_SRVSUB_004_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT acknowledges the unsubscribe from service availability event notifications + when commanded by a MEC Application" Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5" @@ -496,7 +326,7 @@ Package plat_service_subscriptions { Expected behaviour ensure that { when { - the IUT entity receives a DELETE containing + the IUT entity receives a vDELETE containing uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_APP entity @@ -504,7 +334,7 @@ Package plat_service_subscriptions { then { // MEC 011, clause 7.5.3.5 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "204 No Content" ; to the MEC_APP entity } @@ -513,7 +343,7 @@ Package plat_service_subscriptions { Test Purpose { - TP Id "TP_MEC_PLAT_SRVSUB_008_NF" + TP Id "TP_MEC_SRV_SRVSUB_004_NF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/Timing/PlatTiming.tplan2 b/Test Purposes/SRV/TIME/PlatTiming.tplan2 similarity index 59% rename from Test Purposes/SRV/Timing/PlatTiming.tplan2 rename to Test Purposes/SRV/TIME/PlatTiming.tplan2 index e32bb02..c8bcda9 100644 --- a/Test Purposes/SRV/Timing/PlatTiming.tplan2 +++ b/Test Purposes/SRV/TIME/PlatTiming.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_timing { +Package MEC_SRV_TIME { import all from MEC_Common; @@ -22,7 +22,7 @@ Package plat_timing { * Timing capabilities (TIME) */ Test Purpose { - TP Id "TP_MEC_PLAT_TIME_001_OK" + TP Id "TP_MEC_SRV_TIME_001_OK" Test objective "Check that the IUT responds with timing capabilities @@ -63,7 +63,7 @@ Package plat_timing { Test Purpose { - TP Id "TP_MEC_PLAT_TIME_002_OK" + TP Id "TP_MEC_SRV_TIME_002_OK" Test objective "Check that the IUT responds with current time @@ -101,78 +101,4 @@ Package plat_timing { } } } - - - Test Purpose { - TP Id "TP_MEC_PLAT_TIME_001_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.7.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_app_support/v1/timing/timing_caps" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.7.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_TIME_002_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.8.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_app_support/v1/timing/current_time" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.8.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } } diff --git a/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 b/Test Purposes/SRV/TRAF/PlatTrafficRules.tplan2 similarity index 79% rename from Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 rename to Test Purposes/SRV/TRAF/PlatTrafficRules.tplan2 index c755ecd..245cf7e 100644 --- a/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 +++ b/Test Purposes/SRV/TRAF/PlatTrafficRules.tplan2 @@ -13,16 +13,16 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_traffic_rules { +Package MEC_SRV_TRAF { import all from MEC_Common; /* - * Traffic rules (TFR) + * Traffic rules (TRAF) */ Test Purpose { - TP Id "TP_MEC_PLAT_TFR_001_OK" + TP Id "TP_MEC_SRV_TRAF_001_OK" Test objective "Check that the IUT responds with a list of available traffic rules @@ -68,14 +68,13 @@ Package plat_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_TFR_002_OK" + TP Id "TP_MEC_SRV_TRAF_001_NF" Test objective - "Check that the IUT responds with the information on a specific traffic rule - when queried by a MEC Application" + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" + Reference "ETSI GS MEC 011 V2.0.9, clause 7.10.3.1" Config Id Config_MEC_1 @@ -83,11 +82,8 @@ Package plat_traffic_rules { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a traffic_rules containing - rule_id indicating value TRAFFIC_RULE_ID + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } @@ -96,19 +92,14 @@ Package plat_traffic_rules { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}" + uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/traffic_rules" ; from the MEC_APP entity } then { - // MEC 011, clause 7.11.3.1 + // MEC 011, clause 7.10.3.1 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - TrafficRule containing - trafficRuleId set to TRAFFIC_RULE_ID - ; - ; + status_code set to "404 Not Found" ; to the MEC_APP entity } @@ -117,13 +108,13 @@ Package plat_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_TFR_003_OK" + TP Id "TP_MEC_SRV_TRAF_002_OK" Test objective - "Check that the IUT updates a specific traffic rule - when commanded by a MEC Application" + "Check that the IUT responds with the information on a specific traffic rule + when queried by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2", + Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.1", "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" Config Id Config_MEC_1 @@ -144,25 +135,18 @@ Package plat_traffic_rules { Expected behaviour ensure that { when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - if_match indicating value PROPER_ETAG - body containing - TrafficRule containing - action indicating value "DROP" - ; - ; + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}" ; from the MEC_APP entity } then { - // MEC 011, clause 7.11.3.2 + // MEC 011, clause 7.11.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing TrafficRule containing - trafficRuleId set to TRAFFIC_RULE_ID, - action set to "DROP" + trafficRuleId set to TRAFFIC_RULE_ID ; ; ; @@ -173,93 +157,14 @@ Package plat_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_TFR_001_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.10.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.10.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_TFR_002_NF" + TP Id "TP_MEC_SRV_TRAF_003_OK" Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.10.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/traffic_rules" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.10.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_TFR_003_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" + "Check that the IUT updates a specific traffic rule + when commanded by a MEC Application" - Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2" + Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" Config Id Config_MEC_1 @@ -284,8 +189,7 @@ Package plat_traffic_rules { if_match indicating value PROPER_ETAG body containing TrafficRule containing - // Invalid parameter value should trigger an error response. - action indicating value UNKNOWN_VALUE + action indicating value "DROP" ; ; ; @@ -294,7 +198,13 @@ Package plat_traffic_rules { then { // MEC 011, clause 7.11.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "200 OK" + body containing + TrafficRule containing + trafficRuleId set to TRAFFIC_RULE_ID, + action set to "DROP" + ; + ; ; to the MEC_APP entity } @@ -303,11 +213,11 @@ Package plat_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_TFR_004_BI" + TP Id "TP_MEC_SRV_TRAF_003_BR" Test objective "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + a request with incorrect parameters is sent by a MEC Application" Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2" @@ -329,11 +239,14 @@ Package plat_traffic_rules { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", if_match indicating value PROPER_ETAG body containing - action indicating value "DROP" + TrafficRule containing + // Invalid parameter value should trigger an error response. + action indicating value UNKNOWN_VALUE + ; ; ; from the MEC_APP entity @@ -341,7 +254,7 @@ Package plat_traffic_rules { then { // MEC 011, clause 7.11.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -350,7 +263,7 @@ Package plat_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_TFR_005_NF" + TP Id "TP_MEC_SRV_TRAF_003_NF" Test objective "Check that the IUT responds with an error when @@ -399,7 +312,7 @@ Package plat_traffic_rules { Test Purpose { - TP Id "TP_MEC_PLAT_TFR_006_PF" + TP Id "TP_MEC_SRV_TRAF_003_PF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/Transport/PlatTransport.tplan2 b/Test Purposes/SRV/TRANS/PlatTransport.tplan2 similarity index 64% rename from Test Purposes/SRV/Transport/PlatTransport.tplan2 rename to Test Purposes/SRV/TRANS/PlatTransport.tplan2 index a61a1c5..4f0bbf5 100644 --- a/Test Purposes/SRV/Transport/PlatTransport.tplan2 +++ b/Test Purposes/SRV/TRANS/PlatTransport.tplan2 @@ -13,16 +13,16 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_transport { +Package MEC_SRV_TRANS { import all from MEC_Common; /* - * Transport (TRP) + * Transport (TRANS) */ Test Purpose { - TP Id "TP_MEC_PLAT_TRP_001_OK" + TP Id "TP_MEC_SRV_TRANS_001_OK" Test objective "Check that the IUT responds with a list of available transports @@ -62,41 +62,4 @@ Package plat_transport { } } } - - - Test Purpose { - TP Id "TP_MEC_PLAT_TRP_001_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.9.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.9 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_service_mgmt/v1/transports" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.9.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } } diff --git a/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 b/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 new file mode 100644 index 0000000..9945ea5 --- /dev/null +++ b/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 @@ -0,0 +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 MEC_SRV_UEAREASUB { + + import all from MEC_Common; + + + /* + * UE Area Subscribe (UEAREASUB) + */ + + Test Purpose { + TP Id "TP_MEC_SRV_UEAREASUB_001_OK" + + Test objective + "Check that the IUT acknowledges the UE area change subscription request when + commanded by a MEC Application and notifies it when the UE enters the specified circle" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.11" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.11 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/area/circle", + body containing + circleNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.11.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" + body containing + circleNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + and + // MEC 013, clause 7.3.11.3 + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URL, + body containing + subscriptionNotification containing + terminalLocation containing + address set to IP_ADDRESS + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_SRV_UEAREASUB_002_OK" + + Test objective + "Check that the IUT acknowledges the cancellation of UE area change notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/area/circle/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.6 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 b/Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 similarity index 94% rename from Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 rename to Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 index f64b939..80dfaee 100644 --- a/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 +++ b/Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 @@ -13,16 +13,16 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_distance_lookup { +Package MEC_SRV_UEDISTLOOK { import all from MEC_Common; /* - * UE Distance Lookup (DISTLOOK) + * UE Distance Lookup (UEDISTLOOK) */ Test Purpose { - TP Id "TP_MEC_PLAT_DISTLOOK_001_OK" + TP Id "TP_MEC_SRV_UEDISTLOOK_001_OK" Test objective "Check that the IUT responds with the distance to a UE diff --git a/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 b/Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 similarity index 96% rename from Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 rename to Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 index 3392817..d0eb3b7 100644 --- a/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 +++ b/Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 @@ -13,17 +13,17 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_distance_subscription { +Package MEC_SRV_UEDISTSUB { import all from MEC_Common; /* - * UE Distance Subscribe (DISTSUB) + * UE Distance Subscribe (UEDISTSUB) */ Test Purpose { - TP Id "TP_MEC_PLAT_DISTSUB_001_OK" + TP Id "TP_MEC_SRV_UEDISTSUB_001_OK" Test objective "Check that the IUT acknowledges the UE distance subscription request when commanded by a @@ -88,7 +88,7 @@ Package plat_ue_distance_subscription { } Test Purpose { - TP Id "TP_MEC_PLAT_DISTSUB_002_OK" + TP Id "TP_MEC_SRV_UEDISTSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE distance notifications diff --git a/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 b/Test Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2 similarity index 94% rename from Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 rename to Test Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2 index 9264f53..f41ffa4 100644 --- a/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 +++ b/Test Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2 @@ -13,17 +13,17 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_information_lookup { +Package MEC_SRV_UEINFLOOK { import all from MEC_Common; /* - * UE Information Lookup (INFLOOK) + * UE Information Lookup (UEINFLOOK) */ Test Purpose { - TP Id "TP_MEC_PLAT_INFLOOK_001_OK" + TP Id "TP_MEC_SRV_UEINFLOOK_001_OK" Test objective "Check that the IUT responds with the information pertaining to one or more UEs in a particular location diff --git a/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 b/Test Purposes/SRV/UEINFSUB/PlatUeInformationSubscription.tplan2 similarity index 96% rename from Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 rename to Test Purposes/SRV/UEINFSUB/PlatUeInformationSubscription.tplan2 index c5a3006..b9f7d92 100644 --- a/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 +++ b/Test Purposes/SRV/UEINFSUB/PlatUeInformationSubscription.tplan2 @@ -13,16 +13,16 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_information_subscription { +Package MEC_SRV_UEINFSUB { import all from MEC_Common; /* - * UE Information Subscription (INFSUB) + * UE Information Subscription (UEINFSUB) */ Test Purpose { - TP Id "TP_MEC_PLAT_INFSUB_001_OK" + TP Id "TP_MEC_SRV_UEINFSUB_001_OK" Test objective "Check that the IUT acknowledges the UE information change subscription request @@ -86,7 +86,7 @@ Package plat_ue_information_subscription { Test Purpose { - TP Id "TP_MEC_PLAT_INFSUB_002_OK" + TP Id "TP_MEC_SRV_UEINFSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE information change notifications diff --git a/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 b/Test Purposes/SRV/UELOC/PlatUeLocationLookup.tplan2 similarity index 95% rename from Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 rename to Test Purposes/SRV/UELOC/PlatUeLocationLookup.tplan2 index 0cd290c..8b7b12d 100644 --- a/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 +++ b/Test Purposes/SRV/UELOC/PlatUeLocationLookup.tplan2 @@ -13,16 +13,16 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_location_lookup { +Package MEC_SRV_UELOC { import all from MEC_Common; /* - * UE Location Lookup (LOC) + * UE Location Lookup (UELOC) */ Test Purpose { - TP Id "TP_MEC_PLAT_LOC_001_OK" + TP Id "TP_MEC_SRV_UELOC_001_OK" Test objective "Check that the IUT responds with a list for the location of User Equipments diff --git a/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 b/Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 similarity index 96% rename from Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 rename to Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 index 1aefbba..cb2fd01 100644 --- a/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 +++ b/Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 @@ -13,16 +13,16 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_location_subscription { +Package MEC_SRV_UELOCSUB { import all from MEC_Common; /* - * UE Location Subscription (LOCSUB) + * UE Location Subscription (UELOCSUB) */ Test Purpose { - TP Id "TP_MEC_PLAT_LOCSUB_001_OK" + TP Id "TP_MEC_SRV_UELOCSUB_001_OK" Test objective "Check that the IUT acknowledges the UE location change subscription request @@ -86,7 +86,7 @@ Package plat_ue_location_subscription { Test Purpose { - TP Id "TP_MEC_PLAT_LOCSUB_002_OK" + TP Id "TP_MEC_SRV_UELOCSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE location change notifications diff --git a/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 b/Test Purposes/SRV/UETAG/PlatUeIdentity.tplan2 similarity index 68% rename from Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 rename to Test Purposes/SRV/UETAG/PlatUeIdentity.tplan2 index 8254e1d..1507ac0 100644 --- a/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 +++ b/Test Purposes/SRV/UETAG/PlatUeIdentity.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_identity { +Package MEC_SRV_UETAG { import all from MEC_Common; @@ -23,7 +23,7 @@ Package plat_ue_identity { */ Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_001_OK" + TP Id "TP_MEC_SRV_UETAG_001_OK" Test objective "Check that the IUT responds with the information on a UE Identity tag @@ -76,129 +76,7 @@ Package plat_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_002_OK" - - Test objective - "Check that the IUT registers a tag (representing a UE) or a list of tags - when commanded by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - UeIdentityTagInfo containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_003_OK" - - Test objective - "Check that the IUT deregisters a tag (representing a UE) or a list of tags - when commanded by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag indicating value UE_IDENTITY_TAG, - state indicating value UNREGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - UeIdentityTagInfo containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to UNREGISTERED - ; - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_001_BI" + TP Id "TP_MEC_SRV_UETAG_001_BR" Test objective "Check that the IUT responds with an error when @@ -242,50 +120,7 @@ Package plat_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_002_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - query_parameters containing - ueIdentityTag indicating value UE_IDENTITY_TAG - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_003_BI" + TP Id "TP_MEC_SRV_UETAG_001_NF" Test objective "Check that the IUT responds with an error when @@ -329,14 +164,14 @@ Package plat_ue_identity { Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_004_BI" + TP Id "TP_MEC_SRV_UETAG_002_OK" Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" + "Check that the IUT registers a tag (representing a UE) or a list of tags + when commanded by a MEC Application" Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" Config Id Config_MEC_1 @@ -349,18 +184,18 @@ Package plat_ue_identity { ; } - // MEC 014, clause 5.2.3 + // MEC 014, clause 5.2.2 Expected behaviour ensure that { when { the IUT entity receives a vPUT containing uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", -x if_match indicating value PROPER_ETAG, + if_match indicating value PROPER_ETAG, body containing ueIdentityTagsList containing - ueIdentityTags containing + ueIdentityTags containing ueIdentityTag set to UE_IDENTITY_TAG, - state set to INVALID_STATE + state set to REGISTERED ; ; ; @@ -370,7 +205,17 @@ x if_match indicating value PROPER_ETAG, then { // MEC 014, clause 7.3.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" + status_code set to "200 OK" + body containing + UeIdentityTagInfo containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to REGISTERED + ; + ; + ; + ; ; to the MEC_APP entity } @@ -378,8 +223,9 @@ x if_match indicating value PROPER_ETAG, } + Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_005_BI" + TP Id "TP_MEC_SRV_UETAG_002_BR" Test objective "Check that the IUT responds with an error when @@ -403,14 +249,14 @@ x if_match indicating value PROPER_ETAG, Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - if_match indicating value PROPER_ETAG, +x if_match indicating value PROPER_ETAG, body containing ueIdentityTagsList containing ueIdentityTags containing ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED + state set to INVALID_STATE ; ; ; @@ -420,7 +266,7 @@ x if_match indicating value PROPER_ETAG, then { // MEC 014, clause 7.3.3.2 the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" + status_code set to "400 Bad Request" ; to the MEC_APP entity } @@ -429,7 +275,7 @@ x if_match indicating value PROPER_ETAG, Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_006_BI" + TP Id "TP_MEC_SRV_UETAG_002_NF" Test objective "Check that the IUT responds with an error when @@ -479,7 +325,7 @@ x if_match indicating value PROPER_ETAG, Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_007_BI" + TP Id "TP_MEC_SRV_UETAG_002_PF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 b/Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 similarity index 96% rename from Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 rename to Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 index 4b5c3e4..2fd6395 100644 --- a/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 +++ b/Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 @@ -13,18 +13,18 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package plat_ue_tracking_subscription { +Package MEC_SRV_UETRACKSUB { import all from MEC_Common; /* - * UE Tracking Subscribe (TRACKSUB) + * UE Tracking Subscribe (UETRACKSUB) */ Test Purpose { - TP Id "TP_MEC_PLAT_TRACKSUB_001_OK" + TP Id "TP_MEC_SRV_UETRACKSUB_001_OK" Test objective "Check that the IUT acknowledges the UE location change subscription request @@ -87,7 +87,7 @@ Package plat_ue_tracking_subscription { } Test Purpose { - TP Id "TP_MEC_PLAT_TRACKSUB_002_OK" + TP Id "TP_MEC_SRV_UETRACKSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE tracking notifications -- GitLab From 01336fcccc15fe8258e55e22262a4c4fba89213a Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Mon, 24 Jun 2019 15:29:51 +0100 Subject: [PATCH 3/5] MEC 013 v2.0.3 negative test cases. --- .../MEO/UEAPPS/SysUeApplications.tplan2 | 6 +- .../SRV/AREASUB/PlatUeAreaSubscription.tplan2 | 127 ------------------ .../SRV/RLOC/PlatRadioNodeLocation.tplan2 | 45 ++++++- .../UEAREASUB/PlatUeAreaSubscription.tplan2 | 86 ++++++++++++ .../UEDISTLOOK/PlatUeDistanceLookup.tplan2 | 43 ++++++ .../PlatUeDistanceSubscription.tplan2 | 87 ++++++++++++ .../UEINFLOOK/PlatUeInformationLookup.tplan2 | 94 ++++++++++++- .../PlatUeInformationSubscription.tplan2 | 86 ++++++++++++ .../SRV/UELOC/PlatUeLocationLookup.tplan2 | 88 ++++++++++++ .../PlatUeLocationSubscription.tplan2 | 87 ++++++++++++ .../PlatUeTrackingSubscription.tplan2 | 86 ++++++++++++ 11 files changed, 699 insertions(+), 136 deletions(-) delete mode 100644 Test Purposes/SRV/AREASUB/PlatUeAreaSubscription.tplan2 diff --git a/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 b/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 index d1c056c..b79506c 100644 --- a/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 +++ b/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 @@ -133,8 +133,8 @@ Package MEC_MEO_UEAPPS { Initial conditions with { the IUT entity being_in idle_state and - the UE_APP entity having a appInfo containing - appName indicating value APP_NAME + the UE_APP entity "not" having a appInfo containing + appName indicating value NON_EXISTING_APP_NAME ; } @@ -146,7 +146,7 @@ Package MEC_MEO_UEAPPS { uri indicating value "mx2/v2/app_list", query_parameters containing // Wrong value should trigger an error response. - appName indicating value UNKNOWN_APP_NAME + appName indicating value NON_EXISTING_APP_NAME ; ; from the UE_APP entity diff --git a/Test Purposes/SRV/AREASUB/PlatUeAreaSubscription.tplan2 b/Test Purposes/SRV/AREASUB/PlatUeAreaSubscription.tplan2 deleted file mode 100644 index 9945ea5..0000000 --- a/Test Purposes/SRV/AREASUB/PlatUeAreaSubscription.tplan2 +++ /dev/null @@ -1,127 +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_SRV_UEAREASUB { - - import all from MEC_Common; - - - /* - * UE Area Subscribe (UEAREASUB) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_001_OK" - - Test objective - "Check that the IUT acknowledges the UE area change subscription request when - commanded by a MEC Application and notifies it when the UE enters the specified circle" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.11" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.11 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/area/circle", - body containing - circleNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.11.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created" - body containing - circleNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - to the MEC_APP entity - and - // MEC 013, clause 7.3.11.3 - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URL, - body containing - subscriptionNotification containing - terminalLocation containing - address set to IP_ADDRESS - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_002_OK" - - Test objective - "Check that the IUT acknowledges the cancellation of UE area change notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/area/circle/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.6 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - -} diff --git a/Test Purposes/SRV/RLOC/PlatRadioNodeLocation.tplan2 b/Test Purposes/SRV/RLOC/PlatRadioNodeLocation.tplan2 index 5e7c3b4..2e2d737 100644 --- a/Test Purposes/SRV/RLOC/PlatRadioNodeLocation.tplan2 +++ b/Test Purposes/SRV/RLOC/PlatRadioNodeLocation.tplan2 @@ -47,10 +47,7 @@ Package MEC_SRV_RLOC { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "location/v2/zones/{ZONE_ID}/accessPoints", - query_parameters containing - zoneId indicating value ZONE_ID - ; + uri indicating value "location/v2/zones/{ZONE_ID}/accessPoints" ; from the MEC_APP entity } @@ -69,4 +66,44 @@ Package MEC_SRV_RLOC { } } + + Test Purpose { + TP Id "TP_MEC_SRV_RLOC_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.7", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/AccessPointList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a ue_location containing + zoneId indicating value NON_EXISTENT_ZONE_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/zones/{NON_EXISTENT_ZONE_ID}/accessPoints" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.7 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 b/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 index 9945ea5..832752e 100644 --- a/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 +++ b/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 @@ -85,6 +85,52 @@ Package MEC_SRV_UEAREASUB { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UEAREASUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.11" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.11 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/area/circle", + body containing + circleNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + // Wrong name should trigger an error response. + callback indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.11.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bar Request" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { TP Id "TP_MEC_SRV_UEAREASUB_002_OK" @@ -124,4 +170,44 @@ Package MEC_SRV_UEAREASUB { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UEAREASUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTING_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/area/circle/{NON_EXISTING_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.6 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 b/Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 index 80dfaee..ec500ef 100644 --- a/Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 +++ b/Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 @@ -65,4 +65,47 @@ Package MEC_SRV_UEDISTLOOK { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UEDISTLOOK_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.9" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.9 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/queries", + query_parameters containing + address indicating value any_value, + // Wrong name should trigger an error response. + lat indicating value any_value, + longitude indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.9.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + } diff --git a/Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 b/Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 index d0eb3b7..b801a74 100644 --- a/Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 +++ b/Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 @@ -87,6 +87,53 @@ Package MEC_SRV_UEDISTSUB { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UEDISTSUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.10" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.10 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/distance", + body containing + distanceNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + monitoredAddress indicating value MONITORED_IP_ADDRESS, + // Wrong name should trigger an error response. + reference indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.10.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { TP Id "TP_MEC_SRV_UEDISTSUB_002_OK" @@ -126,4 +173,44 @@ Package MEC_SRV_UEDISTSUB { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UEDISTSUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTING_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/distance/{NON_EXISTING_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2 b/Test Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2 index f41ffa4..bdf0ac4 100644 --- a/Test Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2 +++ b/Test Purposes/SRV/UEINFLOOK/PlatUeInformationLookup.tplan2 @@ -39,7 +39,7 @@ Package MEC_SRV_UEINFLOOK { Initial conditions with { the IUT entity being_in idle_state and the IUT entity having a ue_location containing - zoneId indicating value ZONE_ID + address indicating value ACR_SOME_IP ; } @@ -51,7 +51,7 @@ Package MEC_SRV_UEINFLOOK { the IUT entity receives a vGET containing uri indicating value "location/v2/users", query_parameters containing - zoneId indicating value ZONE_ID + address indicating value ACR_SOME_IP ; ; from the MEC_APP entity @@ -69,4 +69,94 @@ Package MEC_SRV_UEINFLOOK { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UEINFLOOK_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.3", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a ue_location containing + address indicating value ACR_SOME_IP + ; + } + + + // MEC 013, clause 5.3.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/users", + query_parameters containing + // Wrong name should trigger an error response. + addr indicating value ACR_SOME_IP + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEINFLOOK_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.3", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a ue_location containing + address indicating value ACR_SOME_IP + ; + } + + + // MEC 013, clause 5.3.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/users", + query_parameters containing + addr indicating value ACR_UNKNOWN_IP + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/SRV/UEINFSUB/PlatUeInformationSubscription.tplan2 b/Test Purposes/SRV/UEINFSUB/PlatUeInformationSubscription.tplan2 index b9f7d92..d0e24c3 100644 --- a/Test Purposes/SRV/UEINFSUB/PlatUeInformationSubscription.tplan2 +++ b/Test Purposes/SRV/UEINFSUB/PlatUeInformationSubscription.tplan2 @@ -85,6 +85,52 @@ Package MEC_SRV_UEINFSUB { } + Test Purpose { + TP Id "TP_MEC_SRV_UEINFSUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.5", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/zonalTrafficSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/zonalTraffic" + body containing + zonalTrafficSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + // Wrong name should trigger an error response. + zone indicating value ZONE_ID + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.5.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { TP Id "TP_MEC_SRV_UEINFSUB_002_OK" @@ -124,4 +170,44 @@ Package MEC_SRV_UEINFSUB { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UEINFSUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/zonalTraffic/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/SRV/UELOC/PlatUeLocationLookup.tplan2 b/Test Purposes/SRV/UELOC/PlatUeLocationLookup.tplan2 index 8b7b12d..0c90e1c 100644 --- a/Test Purposes/SRV/UELOC/PlatUeLocationLookup.tplan2 +++ b/Test Purposes/SRV/UELOC/PlatUeLocationLookup.tplan2 @@ -69,4 +69,92 @@ Package MEC_SRV_UELOC { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UELOC_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.2", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a ue_location containing + zoneId indicating value ZONE_ID + ; + } + + // MEC 013, clause 5.3.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/users", + query_parameters containing + // Wrong name should trigger an error response. + zone indicating value ZONE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UELOC_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.2", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a ue_location containing + zoneId indicating value NON_EXISTENT_ZONE_ID + ; + } + + // MEC 013, clause 5.3.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/users", + query_parameters containing + zoneId indicating value NON_EXISTENT_ZONE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 b/Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 index cb2fd01..29290f1 100644 --- a/Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 +++ b/Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 @@ -85,6 +85,52 @@ Package MEC_SRV_UELOCSUB { } + Test Purpose { + TP Id "TP_MEC_SRV_UELOCSUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserTrackingSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/userTracking" + body containing + userTrackingSubscription containing + // Wrong name should trigger an error response. + client indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.4.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { TP Id "TP_MEC_SRV_UELOCSUB_002_OK" @@ -124,4 +170,45 @@ Package MEC_SRV_UELOCSUB { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UELOCSUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/userTracking/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + } diff --git a/Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 b/Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 index 2fd6395..edbd12b 100644 --- a/Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 +++ b/Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 @@ -86,6 +86,52 @@ Package MEC_SRV_UETRACKSUB { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UETRACKSUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/periodic" + body containing + periodicNotificationSubscription containing + // Wrong name should trigger an error response. + client indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.8.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { TP Id "TP_MEC_SRV_UETRACKSUB_002_OK" @@ -125,4 +171,44 @@ Package MEC_SRV_UETRACKSUB { } } + + Test Purpose { + TP Id "TP_MEC_SRV_UETRACKSUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/periodic/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } } -- GitLab From e80cc0fdca91f04c2fb9b487e6f4f4e99098dbc4 Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Tue, 25 Jun 2019 15:35:35 +0100 Subject: [PATCH 4/5] Prepare merge to master. --- .../MEO/APPCTX/SysUeAppsContext.tplan2 | 341 ++++++++ .../SRV/Bandwidth/PlatBandwidthManager.tplan2 | 804 ++++++++++++++++++ .../SRV/DnsRules/PlatDnsRules.tplan2 | 360 ++++++++ .../Notifications/PlatAppSubscriptions.tplan2 | 387 +++++++++ .../Notifications/PlatSrvSubscriptions.tplan2 | 387 +++++++++ .../RadioNode/PlatRadioNodeLocation.tplan2 | 109 +++ Test Purposes/SRV/SAQ/PlatAppServices.tplan2 | 571 +++++++++++++ Test Purposes/SRV/Timing/PlatTiming.tplan2 | 178 ++++ .../SRV/TrafficRules/PlatTrafficRules.tplan2 | 361 ++++++++ .../SRV/Transport/PlatTransport.tplan2 | 104 +++ .../PlatUeAreaSubscription.tplan2 | 213 +++++ .../PlatUeDistanceLookup.tplan2 | 65 ++ .../PlatUeDistanceSubscription.tplan2 | 216 +++++ .../SRV/UeIdentity/PlatUeIdentity.tplan2 | 375 ++++++++ .../PlatUeInformationLookup.tplan2 | 72 ++ .../PlatUeInformationSubscription.tplan2 | 213 +++++ .../PlatUeLocationLookup.tplan2 | 72 ++ .../PlatUeLocationSubscription.tplan2 | 214 +++++ .../PlatUeTrackingSubscription.tplan2 | 214 +++++ 19 files changed, 5256 insertions(+) create mode 100644 Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 create mode 100644 Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 create mode 100644 Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 create mode 100644 Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 create mode 100644 Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 create mode 100644 Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 create mode 100644 Test Purposes/SRV/SAQ/PlatAppServices.tplan2 create mode 100644 Test Purposes/SRV/Timing/PlatTiming.tplan2 create mode 100644 Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 create mode 100644 Test Purposes/SRV/Transport/PlatTransport.tplan2 create mode 100644 Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 create mode 100644 Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 create mode 100644 Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 create mode 100644 Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 create mode 100644 Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 create mode 100644 Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 create mode 100644 Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 create mode 100644 Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 create mode 100644 Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 diff --git a/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 b/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 new file mode 100644 index 0000000..eaf1223 --- /dev/null +++ b/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 @@ -0,0 +1,341 @@ +/* +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_MEO_UEAPPCTX { + + import all from MEC_Common; + + + /* + * UE Application Contexts (UEAPPCTX) + */ + + Test Purpose { + TP Id "TP_MEC_MEO_UEAPPCTX_001_OK" + + Test objective + "Check that the IUT acknowledges the creation of the application context + when requested by an UE Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 016, clause 5.1.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mx2/v2/app_contexts", + body containing + AppContext containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created", + Location set to LOCATION, + body containing + AppContext containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_UEAPPCTX_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 016, clause 5.1.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mx2/v2/app_contexts", + body containing + AppContext containing + appInfo containing + // Wrong parameter name should trigger an error response. + app set to APP_NAME + ; + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_UEAPPCTX_002_OK" + + Test objective + "Check that the IUT updates the application callback reference + when commanded by an UE Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + body containing + AppContext containing + callbackReference indicating value some_uri + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 017, clause 7.5.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_UEAPPCTX_002_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + body containing + AppContext containing + // A parameter not legible for update should trigger an error response. + associateUeAppId indicating value some_value + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 017, clause 7.5.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_UEAPPCTX_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity "not" having a appContext containing + contextId indicating value NON_EXISTENT_CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}", + body containing + AppContext containing + callbackReference indicating value some_uri + ; + ; + ; + from the UE_APP entity + } + then { + // MEC 017, clause 7.5.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_UEAPPCTX_003_OK" + + Test objective + "Check that the IUT deletes the application context + when commanded by an UE Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity having a appContext containing + contextId indicating value CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.5.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the UE_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_UEAPPCTX_003_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the UE_APP entity "not" having a appContext containing + contextId indicating value NON_EXISTENT_CONTEXT_ID + ; + } + + // MEC 016, clause 5.1.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}" + ; + from the UE_APP entity + } + then { + // MEC 016, clause 7.5.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the UE_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 b/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 new file mode 100644 index 0000000..933a860 --- /dev/null +++ b/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 @@ -0,0 +1,804 @@ +/* +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_SRV_BWA { + + import all from MEC_Common; + + + /* + * Bandwidth Allocations (BWA) + */ + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_001_OK" + + Test objective + "Check that the IUT responds with the list of configured bandwidth allocations + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a bwInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015, clause 6.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations", + query_parameters containing + app_instance_id indicating value APP_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a bwInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015, clause 6.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations", + query_parameters containing + // Wrong parameter name should trigger an error response. + app_id indicating value APP_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_002_OK" + + Test objective + "Check that the IUT responds with a registration and initialisation approval + for the requested bandwidth requirements sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015, clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/bw_allocations", + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK", + Location set to LOCATION, + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + fixedAllocation set to SOME_ALLOCATION, + allocationDirection set to SOME_DIRECTION + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_002_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015, clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/bw_allocations", + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + requestType indicating value INVALID_BW_ALLOCATION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_003_OK" + + Test objective + "Check that the IUT responds with the configured bandwidth allocation + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_003_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity "not" having a allocation_instance containing + allocationId indicating value NON_EXISTENT_ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_004_OK" + + Test objective + "Check that the IUT updates the requested bandwidth requirements + when commanded by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + if_match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + fixedAllocation set to SOME_ALLOCATION, + allocationDirection set to SOME_DIRECTION + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_004_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + if_match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value INVALID_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_004_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity "not" having a allocation_instance containing + allocationId indicating value NON_EXISTENT_ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}", + if_match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_004_PF" + + Test objective + "Check that the IUT responds with an error when + a request sent by a MEC Application doesn't comply with a required condition" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + if_match indicating value INVALID_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "412 Precondition Failed" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_005_OK" + + Test objective + "Check that the IUT when provided with just the changes (deltas) + updates the requested bandwidth requirements + when commanded by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + if_match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + fixedAllocation set to SOME_ALLOCATION, + allocationDirection set to SOME_DIRECTION + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_005_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + if_match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value INVALID_TYPE, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_005_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity "not" having a allocation_instance containing + allocationId indicating value NON_EXISTENT_ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}", + if_match indicating value PROPER_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_005_PF" + + Test objective + "Check that the IUT responds with an error when + a request sent by a MEC Application doesn't comply with a required condition" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", + "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", + if_match indicating value INVALID_ETAG, + body containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "412 Precondition Failed" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_006_OK" + + Test objective + "Check that the IUT unregisters from the Bandwidth Management Service + when commanded by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_BWA_006_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity "not" having a allocation_instance containing + allocationId indicating value NON_EXISTENT_ALLOCATION_ID + ; + } + + // MEC 015, clause 6.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 015, clause 8.3.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 new file mode 100644 index 0000000..e6d23a9 --- /dev/null +++ b/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 @@ -0,0 +1,360 @@ +/* +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_SRV_DNS { + + import all from MEC_Common; + + + /* + * DNS rules (DNS) + */ + Test Purpose { + TP Id "TP_MEC_SRV_DNS_001_OK" + + Test objective + "Check that the IUT responds with a list of active DNS rules + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.12.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.12.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + DnsRuleList containing + DnsRule set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_DNS_002_OK" + + Test objective + "Check that the IUT responds with the information on a specific DNS rule + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a dns_rules containing + rule_id indicating value DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + DnsRule containing + dnsRuleId set to DNS_RULE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_DNS_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity "not" having a dns_rules containing + rule_id indicating value NON_EXISTENT_DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{NON_EXISTENT_DNS_RULE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_DNS_003_OK" + + Test objective + "Check that the IUT updates a specific DNS rule + when commanded by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a dns_rules containing + rule_id indicating value DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + if_match indicating value PROPER_ETAG + body containing + dnsRuleId indicating value DNS_RULE_NAME, + ipAddress indicating value SOME_IP_ADDRESS + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + DnsRule containing + dnsRuleId set to DNS_RULE_NAME, + ipAddress set to SOME_IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_DNS_003_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a dns_rules containing + rule_id indicating value DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + if_match indicating value PROPER_ETAG + body containing + dnsRuleId indicating value DNS_RULE_NAME, + // Unknown parameter value should trigger an error response. + state indicating value UNKNOWN_VALUE + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_DNS_003_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity "not" having a dns_rules containing + rule_id indicating value NON_EXISTENT_DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{NON_EXISTENT_DNS_RULE_ID}", + if_match indicating value PROPER_ETAG + body containing + dnsRuleId indicating value DNS_RULE_NAME, + ipAddress indicating value SOME_IP_ADDRESS + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_DNS_003_PF" + + Test objective + "Check that the IUT responds with an error when + a request sent by a MEC Application doesn't comply with a required condition" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a dns_rules containing + rule_id indicating value DNS_RULE_ID + ; + } + + // MEC 011, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", + if_match indicating value INVALID_ETAG + body containing + dnsRuleId indicating value DNS_RULE_NAME, + ipAddress indicating value SOME_IP_ADDRESS + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.13.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "412 Precondition Failed" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 b/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 new file mode 100644 index 0000000..d3de355 --- /dev/null +++ b/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 @@ -0,0 +1,387 @@ +/* +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_SRV_APPSUB { + + import all from MEC_Common; + + + /* + * Application Subscriptions (APPSUB) + */ + Test Purpose { + TP Id "TP_MEC_SRV_APPSUB_001_OK" + + Test objective + "Check that the IUT responds with a list of subscriptions for notifications + on services availability when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/Mp1SubscriptionLinkList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + SubscriptionLinkList set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSUB_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSUB_002_OK" + + Test objective + "Check that the IUT acknowledges the subscription by a MEC Application + to notifications on service availability events" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" + body containing + AppTerminationNotificationSubscription containing + subscriptionType indicating value "AppTerminationNotificationSubscription", + callbackReference indicating value some_uri + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created", + Location set to LOCATION, + body containing + AppTerminationNotificationSubscription containing + subscriptionType set to "AppTerminationNotificationSubscription", + callbackReference set to some_uri + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSUB_002_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" + body containing + AppTerminationNotificationSubscription containing + // Unknown value should trigger an error response. + subscriptionType indicating value INVALID_SUBSCRIPTION, + callbackReference indicating value some_uri + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSUB_003_OK" + + Test objective + "Check that the IUT responds with the information on a specific subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + AppTerminationNotificationSubscription containing + subscriptionType set to "AppTerminationNotificationSubscription" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSUB_003_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity "not" having a subscriptions containing + subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSUB_004_OK" + + Test objective + "Check that the IUT acknowledges the unsubscribe from service availability event notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSUB_004_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 b/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 new file mode 100644 index 0000000..ecae0de --- /dev/null +++ b/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 @@ -0,0 +1,387 @@ +/* +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_SRV_SRVSUB { + + import all from MEC_Common; + + + /* + * Service Subscriptions (SRVSUB) + */ + Test Purpose { + TP Id "TP_MEC_SRV_SRVSUB_001_OK" + + Test objective + "Check that the IUT responds with a list of subscriptions for notifications + on services availability when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause7.2.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/Mp1SubscriptionLinkList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.2.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + SubscriptionLinkList set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_SRVSUB_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_SRVSUB_002_OK" + + Test objective + "Check that the IUT acknowledges the subscription by a MEC Application + to notifications on service availability events" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" + body containing + SerAvailabilityNotificationSubscription containing + subscriptionType indicating value "SerAvailabilityNotificationSubscription", + callbackReference indicating value some_uri + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created", + Location set to LOCATION, + body containing + SerAvailabilityNotificationSubscription containing + subscriptionType set to "SerAvailabilityNotificationSubscription", + callbackReference set to some_uri + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_SRVSUB_002_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.6.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" + body containing + SerAvailabilityNotificationSubscription containing + // Unknown value should trigger an error response. + subscriptionType indicating value INVALID_SUBSCRIPTION, + callbackReference indicating value some_uri + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.6.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_SRVSUB_003_OK" + + Test objective + "Check that the IUT responds with the information on a specific subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + SerAvailabilityNotificationSubscription containing + subscriptionType set to "SerAvailabilityNotificationSubscription" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_SRVSUB_003_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity "not" having a subscriptions containing + subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_SRVSUB_004_OK" + + Test objective + "Check that the IUT acknowledges the unsubscribe from service availability event notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_SRVSUB_004_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + ; and + the IUT entity having a subscriptions containing + subscription_id indicating value SUBSCRIPTION_ID + ; + } + + // MEC 011, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.5.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 b/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 new file mode 100644 index 0000000..2e2d737 --- /dev/null +++ b/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 @@ -0,0 +1,109 @@ +/* +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_SRV_RLOC { + + import all from MEC_Common; + + + /* + * Radio Node Location Lookup (RLOC) + */ + + Test Purpose { + TP Id "TP_MEC_SRV_RLOC_001_OK" + + Test objective + "Check that the IUT responds with the list of radio nodes currently associated with the MEC host and the location of each radio node + when queried by a MEC Application" + + Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.7", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/AccessPointList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a ue_location containing + zoneId indicating value ZONE_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/zones/{ZONE_ID}/accessPoints" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.7 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + accessPointList containing + zoneId set to ZONE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_RLOC_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.7", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/AccessPointList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a ue_location containing + zoneId indicating value NON_EXISTENT_ZONE_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/zones/{NON_EXISTENT_ZONE_ID}/accessPoints" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.7 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 b/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 new file mode 100644 index 0000000..cdceb2a --- /dev/null +++ b/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 @@ -0,0 +1,571 @@ +/* +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_SRV_APPSAQ { + + import all from MEC_Common; + + + /* + * Application Service Availability Query (APPSAQ) + */ + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_001_OK" + + Test objective + "Check that the IUT responds with a list of available MEC services + for a given application instance when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.15.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ServiceInfoList containing + ServiceInfo set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" + query_parameters containing + // Wrong parameter name should trigger an error response. + instance_id indicating value any_value + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.15.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_002_OK" + + Test objective + "Check that the IUT notifies the authorised relevant (subscribed) application + instances when a new service for a given application instance is registered" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the MEC_APP_Registrant entity being_in idle_state and + the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", + body containing + ServiceInfo containing + serName indicating value SERVICE_NAME + ; + ; + ; + from the MEC_APP_Registrant entity + } + then { + // MEC 011, clause 7.15.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created", + Location set to LOCATION, + body containing + ServiceInfo containing + serName set to SERVICE_NAME + ; + ; + ; + to the MEC_APP_Registrant entity + and + // MEC 011, clause 6.4.2 + the IUT entity sends a notification_message containing + body containing + notificationType set to "SerAvailabilityNotification", + services containing + serName set to SERVICE_NAME + _links containing + subscription set to MP1_SUBSCRIPTION_A + ; + ; + ; + ; + to the MEC_APP_Subscriber entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_002_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the MEC_APP_Registrant entity being_in idle_state and + the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", + body containing + ServiceInfo containing + // Wrong parameter name should trigger an error response. + Name indicating value SERVICE_NAME + ; + ; + ; + from the MEC_APP_Registrant entity + } + then { + // MEC 011, clause 7.15.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP_Registrant entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + ; and + the MEC_APP_Registrant entity being_in idle_state and + the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/services", + body containing + ServiceInfo containing + serName indicating value SERVICE_NAME + ; + ; + ; + from the MEC_APP_Registrant entity + } + then { + // MEC 011, clause 7.15.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP_Registrant entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_003_OK" + + Test objective + "Check that the IUT responds with the information on a specific service + for a given application instance when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ServiceInfo containing + serInstanceId set to SERVICE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_003_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity "not" having a services_running containing + service_id indicating value NON_EXISTENT_SERVICE_ID + ; + } + + // MEC 011, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_004_OK" + + Test objective + "Check that the IUT updates a service information for a given + application instance when commanded by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + if_match indicating value PROPER_ETAG, + body containing + ServiceInfo containing + version indicating value NEW_VERSION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ServiceInfo containing + version set to NEW_VERSION + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_004_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + if_match indicating value PROPER_ETAG, + body containing + ServiceInfo containing + // Wrong parameter name should trigger an error response. + a_version indicating value NEW_VERSION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_004_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity "not" having a services_running containing + service_id indicating value NON_EXISTENT_SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}", + if_match indicating value PROPER_ETAG, + body containing + ServiceInfo containing + version indicating value NEW_VERSION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_APPSAQ_004_PF" + + Test objective + "Check that the IUT responds with an error when + a request sent by a MEC Application doesn't comply with a required condition" + + Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID + ; + } + + // MEC 011, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", + if_match indicating value INVALID_ETAG, + body containing + ServiceInfo containing + version indicating value NEW_VERSION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.14.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "412 Precondition Failed" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/Timing/PlatTiming.tplan2 b/Test Purposes/SRV/Timing/PlatTiming.tplan2 new file mode 100644 index 0000000..e32bb02 --- /dev/null +++ b/Test Purposes/SRV/Timing/PlatTiming.tplan2 @@ -0,0 +1,178 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_timing { + + import all from MEC_Common; + + + /* + * Timing capabilities (TIME) + */ + Test Purpose { + TP Id "TP_MEC_PLAT_TIME_001_OK" + + Test objective + "Check that the IUT responds with timing capabilities + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.7.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TimingCaps" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/timing/timing_caps" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.7.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + TimingCaps set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_TIME_002_OK" + + Test objective + "Check that the IUT responds with current time + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/CurrentTime" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/timing/current_time" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + CurrentTime set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_TIME_001_BI" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.7.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "mec_app_support/v1/timing/timing_caps" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.7.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "403 Forbidden" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_PLAT_TIME_002_BI" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.8.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "mec_app_support/v1/timing/current_time" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "403 Forbidden" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 b/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 new file mode 100644 index 0000000..245cf7e --- /dev/null +++ b/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 @@ -0,0 +1,361 @@ +/* +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_SRV_TRAF { + + import all from MEC_Common; + + + /* + * Traffic rules (TRAF) + */ + Test Purpose { + TP Id "TP_MEC_SRV_TRAF_001_OK" + + Test objective + "Check that the IUT responds with a list of available traffic rules + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.10.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.10.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + TrafficRuleList containing + TrafficRule set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_TRAF_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.10.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a apps_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/traffic_rules" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.10.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_TRAF_002_OK" + + Test objective + "Check that the IUT responds with the information on a specific traffic rule + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a traffic_rules containing + rule_id indicating value TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + TrafficRule containing + trafficRuleId set to TRAFFIC_RULE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_TRAF_003_OK" + + Test objective + "Check that the IUT updates a specific traffic rule + when commanded by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a traffic_rules containing + rule_id indicating value TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + if_match indicating value PROPER_ETAG + body containing + TrafficRule containing + action indicating value "DROP" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + TrafficRule containing + trafficRuleId set to TRAFFIC_RULE_ID, + action set to "DROP" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_TRAF_003_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a traffic_rules containing + rule_id indicating value TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + if_match indicating value PROPER_ETAG + body containing + TrafficRule containing + // Invalid parameter value should trigger an error response. + action indicating value UNKNOWN_VALUE + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_TRAF_003_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity "not" having a traffic_rules containing + rule_id indicating value NON_EXISTENT_TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{NON_EXISTENT_TRAFFIC_RULE_ID}", + if_match indicating value PROPER_ETAG + body containing + TrafficRule containing + action indicating value "DROP" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_TRAF_003_PF" + + Test objective + "Check that the IUT responds with an error when + a request sent by a MEC Application doesn't comply with a required condition" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; and + the IUT entity having a traffic_rules containing + rule_id indicating value TRAFFIC_RULE_ID + ; + } + + // MEC 011, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", + if_match indicating value INVALID_ETAG + body containing + TrafficRule containing + action indicating value "DROP" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.11.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "412 Precondition Failed" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/Transport/PlatTransport.tplan2 b/Test Purposes/SRV/Transport/PlatTransport.tplan2 new file mode 100644 index 0000000..c8bcda9 --- /dev/null +++ b/Test Purposes/SRV/Transport/PlatTransport.tplan2 @@ -0,0 +1,104 @@ +/* +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_SRV_TIME { + + import all from MEC_Common; + + + /* + * Timing capabilities (TIME) + */ + Test Purpose { + TP Id "TP_MEC_SRV_TIME_001_OK" + + Test objective + "Check that the IUT responds with timing capabilities + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.7.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TimingCaps" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/timing/timing_caps" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.7.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + TimingCaps set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_TIME_002_OK" + + Test objective + "Check that the IUT responds with current time + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.8.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/CurrentTime" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.10.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_app_support/v1/timing/current_time" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + CurrentTime set to any_value + ; + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 b/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 new file mode 100644 index 0000000..832752e --- /dev/null +++ b/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 @@ -0,0 +1,213 @@ +/* +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_SRV_UEAREASUB { + + import all from MEC_Common; + + + /* + * UE Area Subscribe (UEAREASUB) + */ + + Test Purpose { + TP Id "TP_MEC_SRV_UEAREASUB_001_OK" + + Test objective + "Check that the IUT acknowledges the UE area change subscription request when + commanded by a MEC Application and notifies it when the UE enters the specified circle" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.11" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.11 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/area/circle", + body containing + circleNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.11.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" + body containing + circleNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + and + // MEC 013, clause 7.3.11.3 + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URL, + body containing + subscriptionNotification containing + terminalLocation containing + address set to IP_ADDRESS + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEAREASUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.11" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.11 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/area/circle", + body containing + circleNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + // Wrong name should trigger an error response. + callback indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.11.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bar Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEAREASUB_002_OK" + + Test objective + "Check that the IUT acknowledges the cancellation of UE area change notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/area/circle/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.6 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEAREASUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTING_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/area/circle/{NON_EXISTING_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.6 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 b/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 new file mode 100644 index 0000000..4f0bbf5 --- /dev/null +++ b/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 @@ -0,0 +1,65 @@ +/* +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_SRV_TRANS { + + import all from MEC_Common; + + + /* + * Transport (TRANS) + */ + Test Purpose { + TP Id "TP_MEC_SRV_TRANS_001_OK" + + Test objective + "Check that the IUT responds with a list of available transports + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 V2.0.9, clause 7.9.3.1", + "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TransportInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011, clause 5.2.9 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_service_mgmt/v1/transports" + ; + from the MEC_APP entity + } + then { + // MEC 011, clause 7.9.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + TransportInfoList containing + TransportInfo set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 b/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 new file mode 100644 index 0000000..b801a74 --- /dev/null +++ b/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 @@ -0,0 +1,216 @@ +/* +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_SRV_UEDISTSUB { + + import all from MEC_Common; + + + /* + * UE Distance Subscribe (UEDISTSUB) + */ + + Test Purpose { + TP Id "TP_MEC_SRV_UEDISTSUB_001_OK" + + Test objective + "Check that the IUT acknowledges the UE distance subscription request when commanded by a + MEC Application and notifies it when (all) the requested UE(s) is (are) within the specified distance" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.10" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.10 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/distance", + body containing + distanceNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + monitoredAddress indicating value MONITORED_IP_ADDRESS, + referenceAddress indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.10.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" + body containing + distanceNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + monitoredAddress indicating value MONITORED_IP_ADDRESS, + referenceAddress indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + and + // MEC 013, clause 7.3.10.3 + the IUT entity sends a vPOST containing + Uri set to CALLBACK_URL + body containing + subscriptionNotification containing + terminalLocation containing + address set to IP_ADDRESS + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEDISTSUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.10" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.10 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/distance", + body containing + distanceNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + monitoredAddress indicating value MONITORED_IP_ADDRESS, + // Wrong name should trigger an error response. + reference indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.10.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEDISTSUB_002_OK" + + Test objective + "Check that the IUT acknowledges the cancellation of UE distance notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/distance/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEDISTSUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTING_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/distance/{NON_EXISTING_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 b/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 new file mode 100644 index 0000000..1507ac0 --- /dev/null +++ b/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 @@ -0,0 +1,375 @@ +/* +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_SRV_UETAG { + + import all from MEC_Common; + + + /* + * UE Identity tag (UETAG) + */ + + Test Purpose { + TP Id "TP_MEC_SRV_UETAG_001_OK" + + Test objective + "Check that the IUT responds with the information on a UE Identity tag + when queried by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", + query_parameters containing + ueIdentityTag indicating value UE_IDENTITY_TAG + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + UeIdentityTagInfo containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG + ; + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UETAG_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", + query_parameters containing + // Wrong parameter name should trigger an error response. + ueTag indicating value UE_IDENTITY_TAG + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UETAG_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity "not" having a app_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "ui/v1/{NON_EXISTENT_APP_INSTANCE_ID}/ue_identity_tag_info", + query_parameters containing + ueIdentityTag indicating value UE_IDENTITY_TAG + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UETAG_002_OK" + + Test objective + "Check that the IUT registers a tag (representing a UE) or a list of tags + when commanded by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", + if_match indicating value PROPER_ETAG, + body containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to REGISTERED + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + UeIdentityTagInfo containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to REGISTERED + ; + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_SRV_UETAG_002_BR" + + Test objective + "Check that the IUT responds with an error when + an unauthorised request is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", +x if_match indicating value PROPER_ETAG, + body containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to INVALID_STATE + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UETAG_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity "not" having a app_instance containing + instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "ui/v1/{NON_EXISTENT_APP_INSTANCE_ID}/ue_identity_tag_info", +x if_match indicating value PROPER_ETAG, + body containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to REGISTERED + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UETAG_002_PF" + + Test objective + "Check that the IUT responds with an error when + a request sent by a MEC Application doesn't comply with a required condition" + + Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", + "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 014, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", +x if_match indicating value INVALID_ETAG, + body containing + ueIdentityTagsList containing + ueIdentityTags containing + ueIdentityTag set to UE_IDENTITY_TAG, + state set to UNREGISTERED + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 014, clause 7.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "412 Precondition Failed" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 b/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 new file mode 100644 index 0000000..9264f53 --- /dev/null +++ b/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 @@ -0,0 +1,72 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_ue_information_lookup { + + import all from MEC_Common; + + + /* + * UE Information Lookup (INFLOOK) + */ + + Test Purpose { + TP Id "TP_MEC_PLAT_INFLOOK_001_OK" + + Test objective + "Check that the IUT responds with the information pertaining to one or more UEs in a particular location + when queried by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.3", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a ue_location containing + zoneId indicating value ZONE_ID + ; + } + + + // MEC 013, clause 5.3.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/users", + query_parameters containing + zoneId indicating value ZONE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + userList set to any_value + ; + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 b/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 new file mode 100644 index 0000000..d0e24c3 --- /dev/null +++ b/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 @@ -0,0 +1,213 @@ +/* +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_SRV_UEINFSUB { + + import all from MEC_Common; + + /* + * UE Information Subscription (UEINFSUB) + */ + + Test Purpose { + TP Id "TP_MEC_SRV_UEINFSUB_001_OK" + + Test objective + "Check that the IUT acknowledges the UE information change subscription request + when commanded by a MEC Application and notifies it when the location changes" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.5", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/zonalTrafficSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/zonalTraffic" + body containing + zonalTrafficSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + zoneId indicating value ZONE_ID + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.5.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" + body containing + zonalTrafficSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + zoneId indicating value ZONE_ID + ; + ; + ; + to the MEC_APP entity + and + // MEC 013, clause 7.3.5.3 + the IUT entity sends a vPOST containing + Uri set to CALLBACK_URL + body containing + zonalPresenceNotification containing + clientCorrelator set to CLIENT_ID, + zoneId indicating value ZONE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEINFSUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.5", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/zonalTrafficSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/zonalTraffic" + body containing + zonalTrafficSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + // Wrong name should trigger an error response. + zone indicating value ZONE_ID + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.5.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEINFSUB_002_OK" + + Test objective + "Check that the IUT acknowledges the cancellation of UE information change notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/zonalTraffic/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UEINFSUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/zonalTraffic/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 b/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 new file mode 100644 index 0000000..0cd290c --- /dev/null +++ b/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 @@ -0,0 +1,72 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package plat_ue_location_lookup { + + import all from MEC_Common; + + /* + * UE Location Lookup (LOC) + */ + + Test Purpose { + TP Id "TP_MEC_PLAT_LOC_001_OK" + + Test objective + "Check that the IUT responds with a list for the location of User Equipments + when queried by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.2", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a ue_location containing + zoneId indicating value ZONE_ID + ; + } + + // MEC 013, clause 5.3.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "location/v2/users", + query_parameters containing + zoneId indicating value ZONE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + userInfo containing + zoneId set to ZONE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 b/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 new file mode 100644 index 0000000..29290f1 --- /dev/null +++ b/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 @@ -0,0 +1,214 @@ +/* +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_SRV_UELOCSUB { + + import all from MEC_Common; + + /* + * UE Location Subscription (UELOCSUB) + */ + + Test Purpose { + TP Id "TP_MEC_SRV_UELOCSUB_001_OK" + + Test objective + "Check that the IUT acknowledges the UE location change subscription request + when commanded by a MEC Application and notifies it when the location changes" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserTrackingSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/userTracking" + body containing + userTrackingSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.4.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" + body containing + userTrackingSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + and + // MEC 013, clause 7.3.4.3 + the IUT entity sends a vPOST containing + Uri set to CALLBACK_URL + body containing + zonalPresenceNotification containing + clientCorrelator set to CLIENT_ID, + address set to IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UELOCSUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4", + "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserTrackingSubscription" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/userTracking" + body containing + userTrackingSubscription containing + // Wrong name should trigger an error response. + client indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.4.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UELOCSUB_002_OK" + + Test objective + "Check that the IUT acknowledges the cancellation of UE location change notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/userTracking/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UELOCSUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/userTracking/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + +} diff --git a/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 b/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 new file mode 100644 index 0000000..edbd12b --- /dev/null +++ b/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 @@ -0,0 +1,214 @@ +/* +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_SRV_UETRACKSUB { + + import all from MEC_Common; + + + /* + * UE Tracking Subscribe (UETRACKSUB) + */ + + + Test Purpose { + TP Id "TP_MEC_SRV_UETRACKSUB_001_OK" + + Test objective + "Check that the IUT acknowledges the UE location change subscription request + when commanded by a MEC Application and notifies it when the UE changes location" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/periodic" + body containing + periodicNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.8.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" + body containing + periodicNotificationSubscription containing + clientCorrelator indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + to the MEC_APP entity + and + // MEC 013, clause 7.3.8.3 + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URL + body containing + subscriptionNotification containing + terminalLocation containing + address set to IP_ADDRESS + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UETRACKSUB_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 013, clause 5.3.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "location/v2/subscriptions/periodic" + body containing + periodicNotificationSubscription containing + // Wrong name should trigger an error response. + client indicating value CLIENT_ID, + callbackReference indicating value CALLBACK_URL, + address indicating value IP_ADDRESS + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.8.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UETRACKSUB_002_OK" + + Test objective + "Check that the IUT acknowledges the cancellation of UE tracking notifications + when commanded by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a subscriptions containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/periodic/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_SRV_UETRACKSUB_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity "not" having a subscriptions containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + // MEC 013, clause 5.3.6 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "location/v2/subscriptions/periodic/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 013, clause 7.3.6.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } +} -- GitLab From c14167999f9ee39c20e1a68ff5215837d201828f Mon Sep 17 00:00:00 2001 From: Filipe Ferreira Date: Tue, 25 Jun 2019 16:32:28 +0100 Subject: [PATCH 5/5] Clean previous merge. --- .../MEO/APPCTX/SysUeAppsContext.tplan2 | 341 -------- .../SRV/Bandwidth/PlatBandwidthManager.tplan2 | 804 ------------------ .../SRV/DnsRules/PlatDnsRules.tplan2 | 360 -------- .../Notifications/PlatAppSubscriptions.tplan2 | 387 --------- .../Notifications/PlatSrvSubscriptions.tplan2 | 387 --------- .../RadioNode/PlatRadioNodeLocation.tplan2 | 109 --- Test Purposes/SRV/SAQ/PlatAppServices.tplan2 | 571 ------------- Test Purposes/SRV/Timing/PlatTiming.tplan2 | 178 ---- .../SRV/TrafficRules/PlatTrafficRules.tplan2 | 361 -------- .../SRV/Transport/PlatTransport.tplan2 | 104 --- .../PlatUeAreaSubscription.tplan2 | 213 ----- .../PlatUeDistanceLookup.tplan2 | 65 -- .../PlatUeDistanceSubscription.tplan2 | 216 ----- .../SRV/UeIdentity/PlatUeIdentity.tplan2 | 375 -------- .../PlatUeInformationLookup.tplan2 | 72 -- .../PlatUeInformationSubscription.tplan2 | 213 ----- .../PlatUeLocationLookup.tplan2 | 72 -- .../PlatUeLocationSubscription.tplan2 | 214 ----- .../PlatUeTrackingSubscription.tplan2 | 214 ----- 19 files changed, 5256 deletions(-) delete mode 100644 Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 delete mode 100644 Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 delete mode 100644 Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 delete mode 100644 Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 delete mode 100644 Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 delete mode 100644 Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 delete mode 100644 Test Purposes/SRV/SAQ/PlatAppServices.tplan2 delete mode 100644 Test Purposes/SRV/Timing/PlatTiming.tplan2 delete mode 100644 Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 delete mode 100644 Test Purposes/SRV/Transport/PlatTransport.tplan2 delete mode 100644 Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 delete mode 100644 Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 delete mode 100644 Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 delete mode 100644 Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 delete mode 100644 Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 delete mode 100644 Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 delete mode 100644 Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 delete mode 100644 Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 delete mode 100644 Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 diff --git a/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 b/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 deleted file mode 100644 index eaf1223..0000000 --- a/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 +++ /dev/null @@ -1,341 +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_MEO_UEAPPCTX { - - import all from MEC_Common; - - - /* - * UE Application Contexts (UEAPPCTX) - */ - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_001_OK" - - Test objective - "Check that the IUT acknowledges the creation of the application context - when requested by an UE Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 016, clause 5.1.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mx2/v2/app_contexts", - body containing - AppContext containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - AppContext containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 016, clause 5.1.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mx2/v2/app_contexts", - body containing - AppContext containing - appInfo containing - // Wrong parameter name should trigger an error response. - app set to APP_NAME - ; - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_002_OK" - - Test objective - "Check that the IUT updates the application callback reference - when commanded by an UE Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - body containing - AppContext containing - callbackReference indicating value some_uri - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_002_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - body containing - AppContext containing - // A parameter not legible for update should trigger an error response. - associateUeAppId indicating value some_value - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity "not" having a appContext containing - contextId indicating value NON_EXISTENT_CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}", - body containing - AppContext containing - callbackReference indicating value some_uri - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_003_OK" - - Test objective - "Check that the IUT deletes the application context - when commanded by an UE Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity "not" having a appContext containing - contextId indicating value NON_EXISTENT_CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}" - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the UE_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 b/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 deleted file mode 100644 index 933a860..0000000 --- a/Test Purposes/SRV/Bandwidth/PlatBandwidthManager.tplan2 +++ /dev/null @@ -1,804 +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_SRV_BWA { - - import all from MEC_Common; - - - /* - * Bandwidth Allocations (BWA) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_001_OK" - - Test objective - "Check that the IUT responds with the list of configured bandwidth allocations - when queried by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a bwInfo containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations", - query_parameters containing - app_instance_id indicating value APP_INSTANCE_ID - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a bwInfo containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations", - query_parameters containing - // Wrong parameter name should trigger an error response. - app_id indicating value APP_INSTANCE_ID - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_002_OK" - - Test objective - "Check that the IUT responds with a registration and initialisation approval - for the requested bandwidth requirements sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "bwm/v1/bw_allocations", - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK", - Location set to LOCATION, - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_002_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "bwm/v1/bw_allocations", - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - requestType indicating value INVALID_BW_ALLOCATION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_003_OK" - - Test objective - "Check that the IUT responds with the configured bandwidth allocation - when queried by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity "not" having a allocation_instance containing - allocationId indicating value NON_EXISTENT_ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_004_OK" - - Test objective - "Check that the IUT updates the requested bandwidth requirements - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_004_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value INVALID_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_004_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity "not" having a allocation_instance containing - allocationId indicating value NON_EXISTENT_ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_004_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value INVALID_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_005_OK" - - Test objective - "Check that the IUT when provided with just the changes (deltas) - updates the requested bandwidth requirements - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_005_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - requestType indicating value INVALID_TYPE, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_005_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity "not" having a allocation_instance containing - allocationId indicating value NON_EXISTENT_ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_005_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value INVALID_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_006_OK" - - Test objective - "Check that the IUT unregisters from the Bandwidth Management Service - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_006_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 015 V1.1.1, clause 8.3.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity "not" having a allocation_instance containing - allocationId indicating value NON_EXISTENT_ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 b/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 deleted file mode 100644 index e6d23a9..0000000 --- a/Test Purposes/SRV/DnsRules/PlatDnsRules.tplan2 +++ /dev/null @@ -1,360 +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_SRV_DNS { - - import all from MEC_Common; - - - /* - * DNS rules (DNS) - */ - Test Purpose { - TP Id "TP_MEC_SRV_DNS_001_OK" - - Test objective - "Check that the IUT responds with a list of active DNS rules - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.12.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.12.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - DnsRuleList containing - DnsRule set to any_value - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_DNS_002_OK" - - Test objective - "Check that the IUT responds with the information on a specific DNS rule - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a dns_rules containing - rule_id indicating value DNS_RULE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.13.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - DnsRule containing - dnsRuleId set to DNS_RULE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_DNS_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a dns_rules containing - rule_id indicating value NON_EXISTENT_DNS_RULE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{NON_EXISTENT_DNS_RULE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.13.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_DNS_003_OK" - - Test objective - "Check that the IUT updates a specific DNS rule - when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a dns_rules containing - rule_id indicating value DNS_RULE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", - if_match indicating value PROPER_ETAG - body containing - dnsRuleId indicating value DNS_RULE_NAME, - ipAddress indicating value SOME_IP_ADDRESS - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.13.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - DnsRule containing - dnsRuleId set to DNS_RULE_NAME, - ipAddress set to SOME_IP_ADDRESS - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_DNS_003_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a dns_rules containing - rule_id indicating value DNS_RULE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", - if_match indicating value PROPER_ETAG - body containing - dnsRuleId indicating value DNS_RULE_NAME, - // Unknown parameter value should trigger an error response. - state indicating value UNKNOWN_VALUE - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.13.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_DNS_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a dns_rules containing - rule_id indicating value NON_EXISTENT_DNS_RULE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{NON_EXISTENT_DNS_RULE_ID}", - if_match indicating value PROPER_ETAG - body containing - dnsRuleId indicating value DNS_RULE_NAME, - ipAddress indicating value SOME_IP_ADDRESS - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.13.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_DNS_003_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.13.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a dns_rules containing - rule_id indicating value DNS_RULE_ID - ; - } - - // MEC 011, clause 5.2.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/dns_rules/{DNS_RULE_ID}", - if_match indicating value INVALID_ETAG - body containing - dnsRuleId indicating value DNS_RULE_NAME, - ipAddress indicating value SOME_IP_ADDRESS - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.13.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 b/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 deleted file mode 100644 index d3de355..0000000 --- a/Test Purposes/SRV/Notifications/PlatAppSubscriptions.tplan2 +++ /dev/null @@ -1,387 +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_SRV_APPSUB { - - import all from MEC_Common; - - - /* - * Application Subscriptions (APPSUB) - */ - Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_001_OK" - - Test objective - "Check that the IUT responds with a list of subscriptions for notifications - on services availability when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/Mp1SubscriptionLinkList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - SubscriptionLinkList set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_001_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_002_OK" - - Test objective - "Check that the IUT acknowledges the subscription by a MEC Application - to notifications on service availability events" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" - body containing - AppTerminationNotificationSubscription containing - subscriptionType indicating value "AppTerminationNotificationSubscription", - callbackReference indicating value some_uri - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - AppTerminationNotificationSubscription containing - subscriptionType set to "AppTerminationNotificationSubscription", - callbackReference set to some_uri - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_002_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.6.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions" - body containing - AppTerminationNotificationSubscription containing - // Unknown value should trigger an error response. - subscriptionType indicating value INVALID_SUBSCRIPTION, - callbackReference indicating value some_uri - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_003_OK" - - Test objective - "Check that the IUT responds with the information on a specific subscription - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - AppTerminationNotificationSubscription containing - subscriptionType set to "AppTerminationNotificationSubscription" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a subscriptions containing - subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_004_OK" - - Test objective - "Check that the IUT acknowledges the unsubscribe from service availability event notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_004_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.5.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 b/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 deleted file mode 100644 index ecae0de..0000000 --- a/Test Purposes/SRV/Notifications/PlatSrvSubscriptions.tplan2 +++ /dev/null @@ -1,387 +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_SRV_SRVSUB { - - import all from MEC_Common; - - - /* - * Service Subscriptions (SRVSUB) - */ - Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_001_OK" - - Test objective - "Check that the IUT responds with a list of subscriptions for notifications - on services availability when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause7.2.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/Mp1SubscriptionLinkList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.2.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - SubscriptionLinkList set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_001_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_002_OK" - - Test objective - "Check that the IUT acknowledges the subscription by a MEC Application - to notifications on service availability events" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" - body containing - SerAvailabilityNotificationSubscription containing - subscriptionType indicating value "SerAvailabilityNotificationSubscription", - callbackReference indicating value some_uri - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - SerAvailabilityNotificationSubscription containing - subscriptionType set to "SerAvailabilityNotificationSubscription", - callbackReference set to some_uri - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_002_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.6.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.6.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions" - body containing - SerAvailabilityNotificationSubscription containing - // Unknown value should trigger an error response. - subscriptionType indicating value INVALID_SUBSCRIPTION, - callbackReference indicating value some_uri - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.6.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_003_OK" - - Test objective - "Check that the IUT responds with the information on a specific subscription - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - SerAvailabilityNotificationSubscription containing - subscriptionType set to "SerAvailabilityNotificationSubscription" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a subscriptions containing - subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_004_OK" - - Test objective - "Check that the IUT acknowledges the unsubscribe from service availability event notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_004_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.4, clause 7.5.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID - ; - } - - // MEC 011, clause 5.2.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 b/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 deleted file mode 100644 index 2e2d737..0000000 --- a/Test Purposes/SRV/RadioNode/PlatRadioNodeLocation.tplan2 +++ /dev/null @@ -1,109 +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_SRV_RLOC { - - import all from MEC_Common; - - - /* - * Radio Node Location Lookup (RLOC) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_RLOC_001_OK" - - Test objective - "Check that the IUT responds with the list of radio nodes currently associated with the MEC host and the location of each radio node - when queried by a MEC Application" - - Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.7", - "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/AccessPointList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a ue_location containing - zoneId indicating value ZONE_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "location/v2/zones/{ZONE_ID}/accessPoints" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.7 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - accessPointList containing - zoneId set to ZONE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_RLOC_001_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V1.5.0, clause 7.3.7", - "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/AccessPointList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a ue_location containing - zoneId indicating value NON_EXISTENT_ZONE_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "location/v2/zones/{NON_EXISTENT_ZONE_ID}/accessPoints" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.7 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 b/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 deleted file mode 100644 index cdceb2a..0000000 --- a/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 +++ /dev/null @@ -1,571 +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_SRV_APPSAQ { - - import all from MEC_Common; - - - /* - * Application Service Availability Query (APPSAQ) - */ - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_001_OK" - - Test objective - "Check that the IUT responds with a list of available MEC services - for a given application instance when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.15.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfoList containing - ServiceInfo set to any_value - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" - query_parameters containing - // Wrong parameter name should trigger an error response. - instance_id indicating value any_value - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.15.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_002_OK" - - Test objective - "Check that the IUT notifies the authorised relevant (subscribed) application - instances when a new service for a given application instance is registered" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", - body containing - ServiceInfo containing - serName indicating value SERVICE_NAME - ; - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.15.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - ServiceInfo containing - serName set to SERVICE_NAME - ; - ; - ; - to the MEC_APP_Registrant entity - and - // MEC 011, clause 6.4.2 - the IUT entity sends a notification_message containing - body containing - notificationType set to "SerAvailabilityNotification", - services containing - serName set to SERVICE_NAME - _links containing - subscription set to MP1_SUBSCRIPTION_A - ; - ; - ; - ; - to the MEC_APP_Subscriber entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_002_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", - body containing - ServiceInfo containing - // Wrong parameter name should trigger an error response. - Name indicating value SERVICE_NAME - ; - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.15.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP_Registrant entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/services", - body containing - ServiceInfo containing - serName indicating value SERVICE_NAME - ; - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.15.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP_Registrant entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_003_OK" - - Test objective - "Check that the IUT responds with the information on a specific service - for a given application instance when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfo containing - serInstanceId set to SERVICE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a services_running containing - service_id indicating value NON_EXISTENT_SERVICE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_004_OK" - - Test objective - "Check that the IUT updates a service information for a given - application instance when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value PROPER_ETAG, - body containing - ServiceInfo containing - version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfo containing - version set to NEW_VERSION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_004_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value PROPER_ETAG, - body containing - ServiceInfo containing - // Wrong parameter name should trigger an error response. - a_version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_004_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a services_running containing - service_id indicating value NON_EXISTENT_SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}", - if_match indicating value PROPER_ETAG, - body containing - ServiceInfo containing - version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_004_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value INVALID_ETAG, - body containing - ServiceInfo containing - version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/Timing/PlatTiming.tplan2 b/Test Purposes/SRV/Timing/PlatTiming.tplan2 deleted file mode 100644 index e32bb02..0000000 --- a/Test Purposes/SRV/Timing/PlatTiming.tplan2 +++ /dev/null @@ -1,178 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package plat_timing { - - import all from MEC_Common; - - - /* - * Timing capabilities (TIME) - */ - Test Purpose { - TP Id "TP_MEC_PLAT_TIME_001_OK" - - Test objective - "Check that the IUT responds with timing capabilities - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.7.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TimingCaps" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/timing/timing_caps" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.7.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - TimingCaps set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_TIME_002_OK" - - Test objective - "Check that the IUT responds with current time - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/CurrentTime" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/timing/current_time" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.8.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - CurrentTime set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_TIME_001_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.7.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_app_support/v1/timing/timing_caps" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.7.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_TIME_002_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.8.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "mec_app_support/v1/timing/current_time" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.8.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 b/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 deleted file mode 100644 index 245cf7e..0000000 --- a/Test Purposes/SRV/TrafficRules/PlatTrafficRules.tplan2 +++ /dev/null @@ -1,361 +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_SRV_TRAF { - - import all from MEC_Common; - - - /* - * Traffic rules (TRAF) - */ - Test Purpose { - TP Id "TP_MEC_SRV_TRAF_001_OK" - - Test objective - "Check that the IUT responds with a list of available traffic rules - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.10.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.10.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - TrafficRuleList containing - TrafficRule set to any_value - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_TRAF_001_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.10.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/traffic_rules" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.10.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_TRAF_002_OK" - - Test objective - "Check that the IUT responds with the information on a specific traffic rule - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a traffic_rules containing - rule_id indicating value TRAFFIC_RULE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.11.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - TrafficRule containing - trafficRuleId set to TRAFFIC_RULE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_TRAF_003_OK" - - Test objective - "Check that the IUT updates a specific traffic rule - when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a traffic_rules containing - rule_id indicating value TRAFFIC_RULE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - if_match indicating value PROPER_ETAG - body containing - TrafficRule containing - action indicating value "DROP" - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.11.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - TrafficRule containing - trafficRuleId set to TRAFFIC_RULE_ID, - action set to "DROP" - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_TRAF_003_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a traffic_rules containing - rule_id indicating value TRAFFIC_RULE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - if_match indicating value PROPER_ETAG - body containing - TrafficRule containing - // Invalid parameter value should trigger an error response. - action indicating value UNKNOWN_VALUE - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.11.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_TRAF_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a traffic_rules containing - rule_id indicating value NON_EXISTENT_TRAFFIC_RULE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{NON_EXISTENT_TRAFFIC_RULE_ID}", - if_match indicating value PROPER_ETAG - body containing - TrafficRule containing - action indicating value "DROP" - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.11.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_TRAF_003_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.11.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a traffic_rules containing - rule_id indicating value TRAFFIC_RULE_ID - ; - } - - // MEC 011, clause 5.2.7 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - if_match indicating value INVALID_ETAG - body containing - TrafficRule containing - action indicating value "DROP" - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.11.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/Transport/PlatTransport.tplan2 b/Test Purposes/SRV/Transport/PlatTransport.tplan2 deleted file mode 100644 index c8bcda9..0000000 --- a/Test Purposes/SRV/Transport/PlatTransport.tplan2 +++ /dev/null @@ -1,104 +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_SRV_TIME { - - import all from MEC_Common; - - - /* - * Timing capabilities (TIME) - */ - Test Purpose { - TP Id "TP_MEC_SRV_TIME_001_OK" - - Test objective - "Check that the IUT responds with timing capabilities - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.7.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TimingCaps" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/timing/timing_caps" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.7.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - TimingCaps set to any_value - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_TIME_002_OK" - - Test objective - "Check that the IUT responds with current time - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/CurrentTime" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.10.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_app_support/v1/timing/current_time" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.8.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - CurrentTime set to any_value - ; - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 b/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 deleted file mode 100644 index 832752e..0000000 --- a/Test Purposes/SRV/UeAreaSubscription/PlatUeAreaSubscription.tplan2 +++ /dev/null @@ -1,213 +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_SRV_UEAREASUB { - - import all from MEC_Common; - - - /* - * UE Area Subscribe (UEAREASUB) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_001_OK" - - Test objective - "Check that the IUT acknowledges the UE area change subscription request when - commanded by a MEC Application and notifies it when the UE enters the specified circle" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.11" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.11 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/area/circle", - body containing - circleNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.11.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created" - body containing - circleNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - to the MEC_APP entity - and - // MEC 013, clause 7.3.11.3 - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URL, - body containing - subscriptionNotification containing - terminalLocation containing - address set to IP_ADDRESS - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.11" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.11 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/area/circle", - body containing - circleNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - // Wrong name should trigger an error response. - callback indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.11.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bar Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_002_OK" - - Test objective - "Check that the IUT acknowledges the cancellation of UE area change notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/area/circle/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.6 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing - subscriptionId indicating value NON_EXISTING_SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/area/circle/{NON_EXISTING_SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.6 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 b/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 deleted file mode 100644 index 4f0bbf5..0000000 --- a/Test Purposes/SRV/UeDistanceLookup/PlatUeDistanceLookup.tplan2 +++ /dev/null @@ -1,65 +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_SRV_TRANS { - - import all from MEC_Common; - - - /* - * Transport (TRANS) - */ - Test Purpose { - TP Id "TP_MEC_SRV_TRANS_001_OK" - - Test objective - "Check that the IUT responds with a list of available transports - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.9, clause 7.9.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TransportInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011, clause 5.2.9 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_service_mgmt/v1/transports" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.9.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - TransportInfoList containing - TransportInfo set to any_value - ; - ; - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 b/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 deleted file mode 100644 index b801a74..0000000 --- a/Test Purposes/SRV/UeDistanceSubscription/PlatUeDistanceSubscription.tplan2 +++ /dev/null @@ -1,216 +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_SRV_UEDISTSUB { - - import all from MEC_Common; - - - /* - * UE Distance Subscribe (UEDISTSUB) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_UEDISTSUB_001_OK" - - Test objective - "Check that the IUT acknowledges the UE distance subscription request when commanded by a - MEC Application and notifies it when (all) the requested UE(s) is (are) within the specified distance" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.10" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.10 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/distance", - body containing - distanceNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - monitoredAddress indicating value MONITORED_IP_ADDRESS, - referenceAddress indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.10.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created" - body containing - distanceNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - monitoredAddress indicating value MONITORED_IP_ADDRESS, - referenceAddress indicating value IP_ADDRESS - ; - ; - ; - to the MEC_APP entity - and - // MEC 013, clause 7.3.10.3 - the IUT entity sends a vPOST containing - Uri set to CALLBACK_URL - body containing - subscriptionNotification containing - terminalLocation containing - address set to IP_ADDRESS - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEDISTSUB_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.10" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.10 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/distance", - body containing - distanceNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - monitoredAddress indicating value MONITORED_IP_ADDRESS, - // Wrong name should trigger an error response. - reference indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.10.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEDISTSUB_002_OK" - - Test objective - "Check that the IUT acknowledges the cancellation of UE distance notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/distance/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEDISTSUB_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing - subscriptionId indicating value NON_EXISTING_SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/distance/{NON_EXISTING_SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 b/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 deleted file mode 100644 index 1507ac0..0000000 --- a/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 +++ /dev/null @@ -1,375 +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_SRV_UETAG { - - import all from MEC_Common; - - - /* - * UE Identity tag (UETAG) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_UETAG_001_OK" - - Test objective - "Check that the IUT responds with the information on a UE Identity tag - when queried by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - query_parameters containing - ueIdentityTag indicating value UE_IDENTITY_TAG - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - UeIdentityTagInfo containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG - ; - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UETAG_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - query_parameters containing - // Wrong parameter name should trigger an error response. - ueTag indicating value UE_IDENTITY_TAG - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UETAG_001_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity "not" having a app_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "ui/v1/{NON_EXISTENT_APP_INSTANCE_ID}/ue_identity_tag_info", - query_parameters containing - ueIdentityTag indicating value UE_IDENTITY_TAG - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UETAG_002_OK" - - Test objective - "Check that the IUT registers a tag (representing a UE) or a list of tags - when commanded by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - UeIdentityTagInfo containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - - Test Purpose { - TP Id "TP_MEC_SRV_UETAG_002_BR" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", -x if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to INVALID_STATE - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UETAG_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity "not" having a app_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{NON_EXISTENT_APP_INSTANCE_ID}/ue_identity_tag_info", -x if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UETAG_002_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", -x if_match indicating value INVALID_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to UNREGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 b/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 deleted file mode 100644 index 9264f53..0000000 --- a/Test Purposes/SRV/UeInformationLookup/PlatUeInformationLookup.tplan2 +++ /dev/null @@ -1,72 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package plat_ue_information_lookup { - - import all from MEC_Common; - - - /* - * UE Information Lookup (INFLOOK) - */ - - Test Purpose { - TP Id "TP_MEC_PLAT_INFLOOK_001_OK" - - Test objective - "Check that the IUT responds with the information pertaining to one or more UEs in a particular location - when queried by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.3", - "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a ue_location containing - zoneId indicating value ZONE_ID - ; - } - - - // MEC 013, clause 5.3.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "location/v2/users", - query_parameters containing - zoneId indicating value ZONE_ID - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - userList set to any_value - ; - ; - to the MEC_APP entity - } - } - } - -} diff --git a/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 b/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 deleted file mode 100644 index d0e24c3..0000000 --- a/Test Purposes/SRV/UeInformationSubscription/PlatUeInformationSubscription.tplan2 +++ /dev/null @@ -1,213 +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_SRV_UEINFSUB { - - import all from MEC_Common; - - /* - * UE Information Subscription (UEINFSUB) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_UEINFSUB_001_OK" - - Test objective - "Check that the IUT acknowledges the UE information change subscription request - when commanded by a MEC Application and notifies it when the location changes" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.5", - "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/zonalTrafficSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/zonalTraffic" - body containing - zonalTrafficSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - zoneId indicating value ZONE_ID - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.5.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created" - body containing - zonalTrafficSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - zoneId indicating value ZONE_ID - ; - ; - ; - to the MEC_APP entity - and - // MEC 013, clause 7.3.5.3 - the IUT entity sends a vPOST containing - Uri set to CALLBACK_URL - body containing - zonalPresenceNotification containing - clientCorrelator set to CLIENT_ID, - zoneId indicating value ZONE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEINFSUB_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.5", - "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/zonalTrafficSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/zonalTraffic" - body containing - zonalTrafficSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - // Wrong name should trigger an error response. - zone indicating value ZONE_ID - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.5.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEINFSUB_002_OK" - - Test objective - "Check that the IUT acknowledges the cancellation of UE information change notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/zonalTraffic/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UEINFSUB_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing - subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/zonalTraffic/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 b/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 deleted file mode 100644 index 0cd290c..0000000 --- a/Test Purposes/SRV/UeLocationLookup/PlatUeLocationLookup.tplan2 +++ /dev/null @@ -1,72 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package plat_ue_location_lookup { - - import all from MEC_Common; - - /* - * UE Location Lookup (LOC) - */ - - Test Purpose { - TP Id "TP_MEC_PLAT_LOC_001_OK" - - Test objective - "Check that the IUT responds with a list for the location of User Equipments - when queried by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.2", - "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a ue_location containing - zoneId indicating value ZONE_ID - ; - } - - // MEC 013, clause 5.3.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "location/v2/users", - query_parameters containing - zoneId indicating value ZONE_ID - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - userInfo containing - zoneId set to ZONE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - -} diff --git a/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 b/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 deleted file mode 100644 index 29290f1..0000000 --- a/Test Purposes/SRV/UeLocationSubscription/PlatUeLocationSubscription.tplan2 +++ /dev/null @@ -1,214 +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_SRV_UELOCSUB { - - import all from MEC_Common; - - /* - * UE Location Subscription (UELOCSUB) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_UELOCSUB_001_OK" - - Test objective - "Check that the IUT acknowledges the UE location change subscription request - when commanded by a MEC Application and notifies it when the location changes" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4", - "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserTrackingSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/userTracking" - body containing - userTrackingSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.4.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created" - body containing - userTrackingSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - to the MEC_APP entity - and - // MEC 013, clause 7.3.4.3 - the IUT entity sends a vPOST containing - Uri set to CALLBACK_URL - body containing - zonalPresenceNotification containing - clientCorrelator set to CLIENT_ID, - address set to IP_ADDRESS - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UELOCSUB_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4", - "https://forge.etsi.org/gitlab/mec/gs013-location-api/blob/master/LocationAPI.yaml#/definitions/UserTrackingSubscription" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/userTracking" - body containing - userTrackingSubscription containing - // Wrong name should trigger an error response. - client indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.4.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UELOCSUB_002_OK" - - Test objective - "Check that the IUT acknowledges the cancellation of UE location change notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/userTracking/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UELOCSUB_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing - subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/userTracking/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - -} diff --git a/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 b/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 deleted file mode 100644 index edbd12b..0000000 --- a/Test Purposes/SRV/UeTrackingSubscription/PlatUeTrackingSubscription.tplan2 +++ /dev/null @@ -1,214 +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_SRV_UETRACKSUB { - - import all from MEC_Common; - - - /* - * UE Tracking Subscribe (UETRACKSUB) - */ - - - Test Purpose { - TP Id "TP_MEC_SRV_UETRACKSUB_001_OK" - - Test objective - "Check that the IUT acknowledges the UE location change subscription request - when commanded by a MEC Application and notifies it when the UE changes location" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/periodic" - body containing - periodicNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.8.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created" - body containing - periodicNotificationSubscription containing - clientCorrelator indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - to the MEC_APP entity - and - // MEC 013, clause 7.3.8.3 - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URL - body containing - subscriptionNotification containing - terminalLocation containing - address set to IP_ADDRESS - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UETRACKSUB_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 013, clause 5.3.8 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "location/v2/subscriptions/periodic" - body containing - periodicNotificationSubscription containing - // Wrong name should trigger an error response. - client indicating value CLIENT_ID, - callbackReference indicating value CALLBACK_URL, - address indicating value IP_ADDRESS - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.8.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UETRACKSUB_002_OK" - - Test objective - "Check that the IUT acknowledges the cancellation of UE tracking notifications - when commanded by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a subscriptions containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/periodic/{SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_UETRACKSUB_002_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 013 V2.0.3, clause 7.3.6" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing - subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - // MEC 013, clause 5.3.6 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "location/v2/subscriptions/periodic/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 013, clause 7.3.6.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } -} -- GitLab