From ce7743f11ffef200584d0540eb65af8bed941302 Mon Sep 17 00:00:00 2001 From: Elian Kraja Date: Sun, 2 Jun 2019 19:29:11 +0200 Subject: [PATCH 01/19] Update Test Purposes for MEC010-2 v2.0.9 --- .../AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 | 1397 +++++++++++++++++ .../Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 | 799 ++++++++++ .../AppInstanceMgmt_notifications.tplan2 | 94 ++ .../AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 | 208 --- .../Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 | 1166 ++++++++++++++ .../Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 | 368 ++++- .../Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 | 867 ++++++++++ .../Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 | 431 +++++ Test Purposes/mec-common.tplan2 | 10 + 9 files changed, 5099 insertions(+), 241 deletions(-) create mode 100644 Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 create mode 100644 Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 create mode 100644 Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 delete mode 100644 Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 create mode 100644 Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 create mode 100644 Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 create mode 100644 Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 diff --git a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 new file mode 100644 index 0000000..57559a4 --- /dev/null +++ b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 @@ -0,0 +1,1397 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ +Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_001" + + Test objective + "Check that MEO fails on creation of a new App Instance 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/app_instances", + body containing + CreateAppInstanceRequest containing + appDDDId set to APP_D_ID + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_002" // No token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + 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 "/alcmi/v1/app_instances", + "not" authorization, //Token is mandatory + body containing + CreateAppInstanceRequest containing + appDId set to APP_D_ID + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_003" // Wrong token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/alcmi/v1/app_instances", + body containing + CreateAppInstanceRequest containing + appDId set to APP_D_ID + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_004" // No token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/alcmi/v1/app_instances", + "not" authorization //Token is mandatory + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_005" // Wrong token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/alcmi/v1/app_instances" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_006" // No token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_007" // Wrong token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_008" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/app_instances/{WRONG_APP_INSTANCE_ID}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_009" // No token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_010" // Wrong token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_011" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/alcmi/v1/app_instances/{WRONG_APP_INSTANCE_ID}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_012" + + Test objective + "Check that MEO service fails to instantiate 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value NOT_INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/instantiate", + body containing + InstantiateAppRequest containing + appERRORId set to APP_INSTANCE_ID + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad request" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_013" // No token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value NOT_INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/instantiate", + "not" authorization, //Token is mandatory + body containing + InstantiateAppRequest containing + appInstanceId set to APP_INSTANCE_ID, + selectedMECHostInfoList containing + selectedMECHostInfo containing + hostId set to HOST_ID + ; + ; + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_014" // Wrong token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value NOT_INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/instantiate", + body containing + InstantiateAppRequest containing + appInstanceId set to APP_INSTANCE_ID, + selectedMECHostInfoList containing + selectedMECHostInfo containing + hostId set to HOST_ID + ; + ; + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_015" + + Test objective + "Check that MEO service fails to terminate 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/terminate", + body containing + TerminateAppRequest containing + terminationERRORType set to GRACEFULL + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad request" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_016" // No token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/terminate", + "not" authorization, //Token is mandatory + body containing + TerminateAppRequest containing + terminationType set to GRACEFULL + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_017" // Wrong token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/terminate", + body containing + TerminateAppRequest containing + terminationType set to GRACEFULL + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_018" + + Test objective + "Check that MEO service fails to operate on an App Instance when requested" + + 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED, + operationalState indicating value STARTED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/operate", + body containing + OperateAppRequest containing + changeERRORStateTo set to STOPPED + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad request" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_019" // No token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED, + operationalState indicating value STARTED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/operate", + "not" authorization, //Token is mandatory + body containing + OperateAppRequest containing + changeStateTo set to STOPPED + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_020" // Wrong token + + Test objective + "Check that MEO fails 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED, + operationalState indicating value STARTED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/operate", + body containing + OperateAppRequest containing + changeStateTo set to STOPPED + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_021" + + Test objective + "Check that MEO service 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_022" + + Test objective + "Check that MEO service 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_023" + + Test objective + "Check that MEO service 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Lcm_Op_Occ containing + appLcmOpOccId indicating value APP_LCM_OP_OCC_ID + ; + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_024" + + Test objective + "Check that MEO service 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Lcm_Op_Occ containing + appLcmOpOccId indicating value APP_LCM_OP_OCC_ID + ; + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_025" + + Test objective + "Check that MEO service failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using wrong lcm id" + + 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Lcm_Op_Occ containing + appLcmOpOccId indicating value APP_LCM_OP_OCC_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/app_lcm_op_occs/{WRONG_APP_LCM_OP_OCC_ID}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_026" + + Test objective + "Check that MEO service fails to send a LCM Subscription for AppInstSubscriptionRequest event when requested" + + 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 + + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/subscriptions" + body containing + AppInstSubscriptionRequest containing + callbackERRORUri set to CALLBACK_URI, + subscriptionType set to "AppInstanceStateChangeSubscription" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_027" + + Test objective + "Check that MEO service fails to send a LCM Subscription for AppLcmOpOccSubscriptionInfo when requested" + + 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.16.2-1" // AppLcmOpOccSubscriptionInfo + + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/subscriptions" + body containing + AppLcmOpOccSubscriptionInfo containing + callbackERRORUri set to CALLBACK_URI, + subscriptionType set to "AppLcmOpOccStateChangeSubscription" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_028" + + Test objective + "Check that MEO service 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" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/alcmi/v1/subscriptions", + "not" authorization //Token is mandatory + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_029" + + Test objective + "Check that MEO service 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" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/alcmi/v1/subscriptions", + headers set to vHeadersInvalidToken //wrong token + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_030" + + Test objective + "Check that MEO service 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" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/alcmi/v1/subscriptions", + "not" authorization //Token is mandatory + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_031" + + Test objective + "Check that MEO service 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" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/alcmi/v1/subscriptions", + headers set to vHeadersInvalidToken //wrong token + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_032" + + Test objective + "Check that MEO service 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" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId set to SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}", + "not" authorization //Token is mandatory + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_033" + + Test objective + "Check that MEO service 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" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId set to SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_034" + + Test objective + "Check that MEO service fails to retrieve a LCM Subscription when requested using wrong subscription ID" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId set to SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_034" + + Test objective + "Check that MEO service 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" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId set to SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}", + "not" authorization //Token is mandatory + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_035" + + Test objective + "Check that MEO service 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" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId set to SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_036" + + Test objective + "Check that MEO service fails to delete a LCM Subscription when requested using wrong subscription ID" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.3.3.2" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId set to SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + +} diff --git a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 new file mode 100644 index 0000000..73b6b43 --- /dev/null +++ b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 @@ -0,0 +1,799 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ +Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { + + import all from MEC_Common; + + //All APP packages + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_001" + + Test objective + "Check that MEO 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/app_instances", + body containing + CreateAppInstanceRequest containing + appDId set to APP_D_ID + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + AppInstanceInfo containing + appInstanceId set to APP_INSTANCE_ID, + appDId set to APP_D_ID, + appProvider set to APP_PROVIDER, + appName set to APP_NAME, + appSoftVersion set to APP_SOFT_VERSION, + appDVersion set to APP_D_VEERSION, + appPkgId set to APP_PKG_ID, + instantiationState set to NOT_INSTANTIATED, + _links containing + self set to any_value + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_002" + + Test objective + "Check that MEO 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/app_instances" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppInstanceInfoList containing // Definition of AppInstanceInfoList is missing. How to handle with arrays? + AppInstanceInfo containing + appInstanceId set to APP_INSTANCE_ID, + appDId set to APP_D_ID, + appProvider set to APP_PROVIDER, + appName set to APP_NAME, + appSoftVersion set to APP_SOFT_VERSION, + appDVersion set to APP_D_VEERSION, + appPkgId set to APP_PKG_ID, + instantiationState set to NOT_INSTANTIATED, + _links containing + self set to any_value + ; + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_003" + + Test objective + "Check that MEO 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppInstanceInfo containing + appInstanceId set to APP_INSTANCE_ID, + appDId set to APP_D_ID, + appProvider set to APP_PROVIDER, + appName set to APP_NAME, + appSoftVersion set to APP_SOFT_VERSION, + appDVersion set to APP_D_VEERSION, + appPkgId set to APP_PKG_ID, + instantiationState set to NOT_INSTANTIATED, + _links containing + self set to any_value + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_004" + + Test objective + "Check that MEO service delete an App Instance when requested" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.2.3.4" + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_005" + + Test objective + "Check that MEO 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value NOT_INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/instantiate", + body containing + InstantiateAppRequest containing + appInstanceId set to APP_INSTANCE_ID, + selectedMECHostInfoList containing + selectedMECHostInfo containing + hostId set to HOST_ID + ; + ; + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "202 Accepted", + headers containing + Location set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}" + ; + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_006" + + Test objective + "Check that MEO 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/terminate", + body containing + TerminateAppRequest containing + terminationType set to GRACEFULL + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "202 Accepted", + headers containing + Location set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}" + ; + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_007" + + Test objective + "Check that MEO service operates an App Instance when requested" + + 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED, + operationalState indicating value STARTED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/operate", + body containing + OperateAppRequest containing + changeStateTo set to STOPPED + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "202 Accepted", + headers containing + Location set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}" + ; + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_008" + + Test objective + "Check that MEO service retrieves info from LCM Operation Occurrency on an App Instance 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/app_lcm_op_occs" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppLcmOpOccList containing + AppInstanceLcmOpOcc containing + appLcmOpOccId set to APP_LCM_OP_OCC_ID, + operationState set to any_value, + stateEnteredTime set to TIME, + startTime set to TIME, + lcmOperation set to any_value, + _links containing + self set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}", + appInstance set to APP_INSTANCE_LINK + ; + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_009" + + Test objective + "Check that MEO service retrieves info from 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Lcm_Op_Occ containing + appLcmOpOccId indicating value APP_LCM_OP_OCC_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppLcmOpOccList containing + AppInstanceLcmOpOcc containing + appLcmOpOccId set to APP_LCM_OP_OCC_ID, + operationState set to any_value, + stateEnteredTime set to TIME, + startTime set to TIME, + lcmOperation set to any_value, + _links containing + self set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}", + appInstance set to APP_INSTANCE_LINK + ; + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_SUB_001_v1" + + Test objective + "Check that MEO service sends a LCM Subscription for AppInstSubscriptionRequest event when requested" + + 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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/subscriptions" + body containing + AppInstSubscriptionRequest containing + callbackUri set to CALLBACK_URI, + subscriptionType set to "AppInstanceStateChangeSubscription" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + AppInstSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "AppInstanceStateChangeSubscription", + callbackUri set to URI, + notificationType set to "NOT_INSTANTIATED", + _links containing + self set to "/alcmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_SUB_001_v2" + + Test objective + "Check that MEO service sends a LCM Subscription for AppLcmOpOccSubscriptionInfo when requested" + + 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.15.2-1", // AppLcmOpOccSubscriptionRequest + "ETSI GS MEC 010-2 2.0.9, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/subscriptions" + body containing + AppLcmOpOccSubscriptionInfo containing + callbackUri set to CALLBACK_URI, + subscriptionType set to "AppLcmOpOccStateChangeSubscription" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + AppLcmOpOccSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "AppLcmOpOccStateChangeSubscription", + callbackUri set to URI, + notificationType set to "NOT_INSTANTIATED", + _links containing + self set to "/alcmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_SUB_002" + + Test objective + "Check that MEO service requests 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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/subscriptions" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + SubscriptionInfo containing // HOW SHOULD DIFFERENCIATE FROM THE TWO CHOISES? + AppInstSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "AppInstanceStateChangeSubscription", + callbackUri set to URI, + notificationType set to "NOT_INSTANTIATED", + _links containing + self set to "/alcmi/v1/subscriptions/{subscriptionId}" + ; + ;, + AppLcmOpOccSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "AppLcmOpOccStateChangeSubscription", + callbackUri set to URI, + notificationType set to "NOT_INSTANTIATED", + _links containing + self set to "/alcmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_SUB_003_v1" + + Test objective + "Check that MEO service requests a LCM Subscription for AppInstSubscriptionRequest 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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId indicating value SUBCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppInstSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "AppInstanceStateChangeSubscription", + callbackUri set to URI, + notificationType set to "NOT_INSTANTIATED", + _links containing + self set to "/alcmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_SUB_003_v2" + + Test objective + "Check that MEO service requests a LCM Subscription for AppLcmOpOccSubscriptionRequest 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.16.2-1" // AppLcmOpOccSubscriptionInfo + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId indicating value SUBCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppLcmOpOccSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "AppLcmOpOccStateChangeSubscription", + callbackUri set to URI, + notificationType set to "NOT_INSTANTIATED", + _links containing + self set to "/alcmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_SUB_004" + + Test objective + "Check that MEO service delete a LCM Subscription when requested" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; + to the MEC_OSS entity + } + } + } + + + + Test Purpose { + + TP Id "TP_MEC_MEO_MM1_INSM_WORKFLOW" + + Test objective + "Check that MEO instantiates a new application when requested" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.1" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/app_instances", + body containing + CreateAppInstanceRequest containing + appDId set to APPD_ID + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a vPOST containing + uri indicating value "/alcmi/v1/app_instances", + body containing + CreateAppInstanceRequest containing //Info model not yet defined + appDId set to APPD_ID + ; + ; + ; to the MEPM entity + and + the IUT entity receives a HTTP_RESPONSE containing + status set to "201 Created", // REST API not yet defined. Response should be 201, but should be checked when REST API is ready + body containing + INSTANCE_ID_TBD set to INSTANCE_ID + ; + ; from the MEPM entity + and + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created" + body containing + AppInstanceInfo containing + appInstanceId set to any_value, + appDId set to APP_D_ID, + appPkgId set to any_value, + instantiationState set to NOT_INSTANTIATED + + ; + ; + ; to the MEC_OSS entity + } + } + } +} diff --git a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 new file mode 100644 index 0000000..95da748 --- /dev/null +++ b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 @@ -0,0 +1,94 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ +Package MEC010_2_MEO_MM1_LCM_NOTIF { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_LCM_NOTIF_001_v1" + + Test objective + "Check that the MEO sends an AppLcmOpOccNotification to the subscriber when the App Instance is enabled" + + 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.17.2-1", // AppLcmOpOccSubscriptionLinkList + "ETSI GS MEC 010-2 2.0.9, table 6.2.2.4.2-1" // AppInstanceInfo + + Config Id Config_MEC_3 + PICS Selection PIC_APP_LCM and PIC_APP_LCM_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId set to APP_INSTANCE_ID, + appDId set to APP_D_ID, + appProvider set to APP_PROVIDER, + appName set to APP_NAME, + appSoftVersion set to APP_SOFT_VERSION, + appDVersion set to APP_D_VEERSION, + appPkgId set to APP_PKG_ID, + instantiationState set to NOT_INSTANTIATED, + _links containing + self set to any_value + ; + ; + and the IUT entity having a App_Package_subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "AppLcmOpOccStateChangeSubscription", + callbackUri set to URI, + notificationType set to "NOT_INSTANTIATED", + _links containing + self set to "/alcmi/v1/subscriptions/{subscriptionId}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + notificationId set to any_value, + notificationType set to "STARTING", + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to TIMESTAMP, + appLcmOpOccId set to APP_LCM_OP_OCC_ID, + appInstanceId set to APP_INSTANCE_ID, + AppLcmOpOccSubscriptionLinkList containing + _links containing + self set to "/alcmi/v1/subscriptions/{subscriptionId}", + href set to "/alcmi/v1/app_instances/{appInstanceId}", + rel set to "STARTING" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + AppLcmOpOccNotification containing + notificationId indicating value any_value, + notificationType indicating value "STARTING", + subscriptionId indicating value SUBSCRIPTION_ID, + appInstanceId set to APP_INSTANCE_ID + ; + ; + ; to the MEC_SUB entity + } + } + } + +} diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 deleted file mode 100644 index 2c607ae..0000000 --- a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt2_BO-BI.tplan2 +++ /dev/null @@ -1,208 +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_MM1_PKGM_BO_BI { - - import all from MEC_Common; - - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_A" //Negative case 400 Bad request - - Test objective - "Check that MEO responds with an error when it receives - a malformed request for creating a new App Package" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - "not" appPkgName //mandatory attribute - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_B" //Negative case 401 Unauthorized - no token - - Test objective - "Check that MEO responds with an error when it receives - a request for creating a new App Package without credentials" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/apmi/v1/app_packages", - "not" authorization, //Token is mandatory - body containing - AppPkg containing - appPkgName set to any_value - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_C" //Negative case 401 Unauthorized - wrong token - - Test objective - "Check that MEO responds with an error when it receives - a request for creating a new App Package with wrong credentials" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a HttpMsg containing - headers set to vHeadersInvalidToken, //wrong token - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - appPkgName set to any_value - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_D" //Negative case 404 Not found - - Test objective - "Check that MEO responds with an error when it receives - a request for creating a new App Package to a wrong URI" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/appPackages", //wrong URI - body containing - AppPkg containing - appPkgName set to any_value - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_OSS entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004_NEG_A" //Negative case: 403 FORBIDDEN (operation not allowed due to the current status of the resource) - - Test objective - "Check that MEO responds with an error when it receives - a request to enable an App Package that is already enabled" - - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "ENABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", - uri_parameter appPkgOperation indicating value "ENABLE"; //Wrong since the app package is already enabled - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "403 Forbidden", - body containing - problemDetails containing - status set to 403, - detail set to any_value - ; - ; - ; - to the MEC_OSS entity - } - } - } -} diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 new file mode 100644 index 0000000..6eac84e --- /dev/null +++ b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 @@ -0,0 +1,1166 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ +Package MEC010_2_MEO_MM1_PKGM_BO_BI { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_A" //Negative case 400 Bad request + + Test objective + "Check that MEO responds with an error when it receives + a malformed request for creating a new App Package" + + Reference "ETSI GS MEC 010-2 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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/apmi/v1/app_packages", + body containing + AppPkg containing + "not" appPkgName //mandatory attribute + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_B" //Negative case 401 Unauthorized - no token + + Test objective + "Check that MEO responds with an error when it receives + a request for creating a new App Package without credentials" + + Reference "ETSI GS MEC 010-2 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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/apmi/v1/app_packages", + "not" authorization, //Token is mandatory + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_C" //Negative case 401 Unauthorized - wrong token + + Test objective + "Check that MEO responds with an error when it receives + a request for creating a new App Package with wrong credentials" + + Reference "ETSI GS MEC 010-2 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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/apmi/v1/app_packages", + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_D" //Negative case 404 Not found + + Test objective + "Check that MEO responds with an error when it receives + a request for 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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}" //wrong AppPackageID + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_E" //Negative case 400 Bad request + + Test objective + "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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a 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 MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_F" //Negative case 401 Unauthorized - no token + + Test objective + "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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/app_packages", + "not" authorization //Token is mandatory + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_G" //Negative case 401 Unauthorized - wrong token + + Test objective + "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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing // Not clear what method is received. Should contain in in HttpMsg definition in mec-common. + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/apmi/v1/app_packages" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_H" //Negative case 400 Bad request + + Test objective + "Check that MEO responds with an error when it receives + a malformed request for retrieving an existing App Package" + + 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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages", + query_parameters containing + operationalStatus indicating value ENABLED // the query parameter should be operationalState not operationalStatus + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_I" //Negative case 401 Unauthorized - no token + + Test objective + "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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + "not" authorization, //Token is mandatory + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_J" //Negative case 401 Unauthorized - wrong token + + Test objective + "Check that MEO responds with an error when it receives + a request for creating a new App Package with wrong credentials" + + Reference "ETSI GS MEC 010-2 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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_K" //Negative case 401 Unauthorized - no token + + Test objective + "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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + "not" authorization, //Token is mandatory + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_L" //Negative case 401 Unauthorized - wrong token + + Test objective + "Check that MEO responds with an error when it receives + a request for creating a new App Package with wrong credentials" + + Reference "ETSI GS MEC 010-2 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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_M" //Negative case 404 Not found + + Test objective + "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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}" //wrong AppPackageID + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_N" + + Test objective + "Check that MEO fails to disable an App Package already in disable status when requested" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + operationalState set to "DISABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + uri_parameter appPkgOperation indicating value "DISABLE"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request"; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_O" //Negative case 401 Unauthorized - no token + + Test objective + "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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PUT containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + uri_parameter appPkgOperation indicating value "ENABLED", + "not" authorization //Token is mandatory + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_P" //Negative case 401 Unauthorized - wrong token + + Test objective + "Check that MEO responds with an error when it receives + a request for creating a new App Package with wrong credentials" + + Reference "ETSI GS MEC 010-2 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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + uri_parameter appPkgOperation indicating value "ENABLED" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_Q" //Negative case 404 Not found + + Test objective + "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 + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}", //wrong AppPackageID + uri_parameter appPkgOperation indicating value "ENABLED" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_R" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/appDId" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized"; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_S" //Negative case 401 Unauthorized - wrong token + + Test objective + "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 + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/appDId" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_A" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/subscriptions" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_B" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/subscriptions" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_C" + + Test objective + "Check that MEO service fails creating new Subscription on AppPackages when requested using incorrect parameters" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.1" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/apmi/v1/subscriptions", + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ONBOARDING" // Enum should be "ON-BOARDING" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_D" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/apmi/v1/subscriptions", + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ON_BOARDING" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_E" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/subscriptions", + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ON_BOARDING" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_F" + + Test objective + "Check that MEO service fails 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + subscriptionId indicating value SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_G" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + subscriptionId indicating value SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_H" + + Test objective + "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using wrong identifier" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions/{WRONG_SUBSCRIPTION_ID}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEC_OSS entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_I" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + subscriptionId indicating value SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_J" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + subscriptionId indicating value SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_K" + + Test objective + "Check that MEO service fails deleting a specific subscription on AppPackages when requested using wrong identifier" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/apmi/v1/subscriptions/{WRONG_SUBSCRIPTION_ID}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_NOTIF_NEG_01" + + Test objective + "Check that the MEO service fails to send a application package notification + if the MEO service has an associated subscription and the event is generated, without using token" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.5.1" + + Config Id Config_MEC_1 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a MEO_subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a on_boarding_event containing + subscriptionId set to SUBSCRIPTION_ID; + } + then { + the IUT entity sends a POST containing + uri indicating value CALLBACK_URI, + body containing + notificationId set to NOTIFICATION_ID, + notificationType indicating value "ON_BOARDING", + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to DATE_TIME, + appPkgId set to APP_PKG_ID, + appDId set to APPD_ID, + _links containing + self set to "/apmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; to the MEC_SUB entity + } + } + } + +} diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 index 2e439f5..af5f594 100644 --- a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 +++ b/Test Purposes/App/Mm1/AppPackageMgmt/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 1.2.2, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1", //OnboardedAppPkgInfo - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.2.2-1" //AppPkg + 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 Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT @@ -43,7 +43,6 @@ Package MEC010_2_MEO_MM1_PKGM_BV { AppPkg containing appPkgName set to APP_PKG_NAME, appPkgVersion set to APP_PKG_VERSION, - appProvider set to APP_PROVIDER, checksum set to CHECKSUM, appPkgPath set to APP_PKG_PATH ; @@ -52,17 +51,29 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", //TODO: it should return 201 - specification to be updated + status set to "201 Created", body containing OnboardedAppPkgInfoList containing OnboardedAppPkgInfo containing - appPkgName set to APP_PKG_NAME, - appPkgVersion set to APP_PKG_VERSION, - appProvider set to APP_PROVIDER, + 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" + 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? + ; ; ; ; @@ -77,8 +88,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 1.2.2, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + 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 Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT @@ -101,9 +112,26 @@ Package MEC010_2_MEO_MM1_PKGM_BV { status set to "200 OK", body containing OnboardedAppPkgInfoList containing - OnboardedAppPkgInfo containing - appPkgId set to ON_BOARDED_APP_PKG_ID, - appDId set to APPD_ID + 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? + ; ; ; ; @@ -120,8 +148,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 1.2.2, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + 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 Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT @@ -136,17 +164,34 @@ Package MEC010_2_MEO_MM1_PKGM_BV { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; + uri indicating value "/apmi/v1/app_packages/{appPkgId}"; from the MEC_OSS entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "200 OK", body containing - OnboardedAppPkgInfo containing - appPkgId set to ON_BOARDED_APP_PKG_ID, - appDId set to APPD_ID - ; + 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? + ; + ; ; ; to the MEC_OSS entity } @@ -159,7 +204,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 1.2.2, clause 7.3.2.3.4" + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.4" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT @@ -173,24 +218,24 @@ Package MEC010_2_MEO_MM1_PKGM_BV { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; + uri indicating value "/apmi/v1/app_packages/{appPkgId}"; from the MEC_OSS entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK" //TODO: it should return 204 - specification to be updated + status set to "204 No Content" ; to the MEC_OSS entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004" + TP Id "TP_MEC_MEO_MM1_PKGM_004a" Test objective "Check that MEO enables an App Package when requested" - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT @@ -205,7 +250,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { ensure that { when { the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri indicating value "/apmi/v1/app_packages/{appPkgId}", uri_parameter appPkgOperation indicating value "ENABLE"; from the MEC_OSS entity } @@ -219,12 +264,12 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_005" + TP Id "TP_MEC_MEO_MM1_PKGM_004b" Test objective "Check that MEO disables an App Package when requested" - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT @@ -239,7 +284,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { ensure that { when { the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri indicating value "/apmi/v1/app_packages/{appPkgId}", uri_parameter appPkgOperation indicating value "DISABLE"; from the MEC_OSS entity } @@ -252,12 +297,12 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEO_MEC25_MM1_PKGM_001" + TP Id "TP_MEC_MEO_MM1_PKGM_004c" Test objective "Check that MEO aborts an App Package deletion operation when requested" - Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.2.3.3" + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT @@ -272,7 +317,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { ensure that { when { the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri indicating value "/apmi/v1/app_packages/{appPkgId}", uri_parameter appPkgOperation indicating value "ABORT"; from the MEC_OSS entity } @@ -283,4 +328,261 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } } } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_005" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/appDId" + ; + from the MEC_OSS 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? + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/apmi/v1/subscriptions" + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ON_BOARDING" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + AppPkgSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to URI, + _links containing + self set to "/apmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_002" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionInfoList containing + AppPkgSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI, + _links containing + self set to "/apmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + subscriptionId indicating value SUBCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS 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", + callbackUri set to CALLBACK_URI, + _links containing + self set to uri + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + subscriptionId indicating value SUBCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_NOTIF_01" + + 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" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.5.1" + + Config Id Config_MEC_1 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a MEO_subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a on_boarding_event containing + subscriptionId set to SUBSCRIPTION_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", + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to DATE_TIME, + appPkgId set to APP_PKG_ID, + appDId set to APPD_ID, + _links containing + self set to "/apmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; to the MEC_SUB entity + } + } + } } diff --git a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 new file mode 100644 index 0000000..6d0f96c --- /dev/null +++ b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 @@ -0,0 +1,867 @@ +/* +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_BI { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_D" //Negative case 404 Not found + + Test objective + "Check that MEPM responds with an error when it receives + a request for returning a App Package referred with a wrong ID" + + 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 + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}" //wrong AppPackageID + ; 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_001_NEG_E" //Negative case 400 Bad request + + Test objective + "Check that MEPM responds with an error when it receives + a malformed request for requesting the list of existing App Packages" + + 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 + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a 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 "400 Bad Request" + ; to the MEO entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_F" //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 + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/app_packages", + "not" authorization //Token is mandatory + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_G" //Negative case 401 Unauthorized - wrong token + + Test objective + "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 + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing // Not clear what method is received. Should contain in in HttpMsg definition in mec-common. + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/apmi/v1/app_packages" + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_H" //Negative case 400 Bad request + + Test objective + "Check that MEPM responds with an error when it receives + a malformed request for requesting an existing App Package" + + 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 + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + 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 "400 Bad Request" + ; to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_I" //Negative case 401 Unauthorized - no token + + Test objective + "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 + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + "not" authorization, //Token is mandatory + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_J" //Negative case 401 Unauthorized - wrong token + + Test objective + "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 + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + headers set to vHeadersInvalidToken, //wrong token + uri indicating value "/apmi/v1/app_packages/{appPkgId}", + body containing + AppPkg containing + appPkgName set to any_value + ; + ; + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEO entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_R" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/app_descriptor" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized"; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_S" //Negative case 401 Unauthorized - wrong token + + Test objective + "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 + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/app_descriptor" + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_T" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/appPkgContent" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized"; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_U" //Negative case 401 Unauthorized - wrong token + + Test objective + "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 + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/appPkgContent" + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_A" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/subscriptions" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_B" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/subscriptions" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_C" + + Test objective + "Check that MEPM service fails creating new Subscription on AppPackages when requested using incorrect parameters" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/apmi/v1/subscriptions", + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ONBOARDING" // Enum should be "ON-BOARDING" + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_D" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/apmi/v1/subscriptions", + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ON_BOARDING" + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_E" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/subscriptions", + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ON_BOARDING" + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_F" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + subscriptionId indicating value SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_G" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + subscriptionId indicating value SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_H" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions/{WRONG_SUBSCRIPTION_ID}" + ; + 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_NEG_I" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + subscriptionId indicating value SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_J" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + subscriptionId indicating value SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpMsg containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_K" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/apmi/v1/subscriptions/{WRONG_SUBSCRIPTION_ID}" + ; + 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_NOTIF_NEG_01" + + Test objective + "Check that the MEO service fails to send a application package notification + if the MEO service has an associated subscription and the event is generated, without using token" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.1" + + Config Id Config_MEC_1 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a MEPM_subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a on_boarding_event containing + subscriptionId set to SUBSCRIPTION_ID; + } + then { + the IUT entity sends a POST containing + uri indicating value CALLBACK_URI, + body containing + notificationId set to NOTIFICATION_ID, + notificationType indicating value "ON_BOARDING", + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to DATE_TIME, + appPkgId set to APP_PKG_ID, + appDId set to APPD_ID, + _links containing + self set to "/apmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; to the MEC_SUB entity + } + } + } + +} diff --git a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 new file mode 100644 index 0000000..4f9d53a --- /dev/null +++ b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 @@ -0,0 +1,431 @@ +/* +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_MEPM_MM3_PKGM_BV { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_002a" + + 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 + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages"; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + OnboardedAppPkgInfoList 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? + ; + ; + ; + ; + ; to the MEO entity + } + } + } + + //Individual APP packages + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_002b" + + 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 + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + appDId indicating value APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}"; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + 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? + ; + ; + ; + ; to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_005" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/app_descriptor" + ; + 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? + ; + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_006" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{appPkgId}/appPkgContent" + ; + 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? + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001" + + Test objective + "Check that MEPM service sends a Application Package Subscription when requested" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/apmi/v1/subscriptions" + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ON_BOARDING" + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + AppPkgSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to URI, + _links containing + self set to "/apmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_002" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionInfoList containing + AppPkgSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI, + _links containing + self set to "/apmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; + ; + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_004" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + subscriptionId indicating value SUBCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEO 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", + callbackUri set to CALLBACK_URI, + _links containing + self set to uri + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_003" + + 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" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + subscriptionId indicating value SUBCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_MM3_PKGM_NOTIF_01" + + 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" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.7.3.1" + + Config Id Config_MEC_1 + PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a MEPM_subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a on_boarding_event containing + subscriptionId set to SUBSCRIPTION_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", + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to DATE_TIME, + appPkgId set to APP_PKG_ID, + appDId set to APPD_ID, + _links containing + self set to "/apmi/v1/subscriptions/{subscriptionId}" + ; + ; + ; to the MEC_SUB entity + } + } + } +} diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 123145b..9ba8b21 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -15,6 +15,9 @@ Package MEC_Common { - PIC_RNIS_ALL_SUBSCRIPTIONS // MEC025, table 7.5.2-2 - PIC_RNIS_SPECIFIC_SUBSCRIPTION // MEC025, table 7.5.2-3 - PIC_RNIS_NOTIFICATIONS // MEC025, table 7.5.2-4 + - PIC_APP_LCM // MEC032, table xxxxx + - PIC_APP_LCM_MANAGEMENT // MEC032, table xxxxy + - PIC_APP_LCM_NOTIFICATIONS // MEC032, table xxxxz ; entities: - MEC_OSS @@ -30,6 +33,7 @@ Package MEC_Common { - MEC_SUB - RNIS_CLIENT - RNIS_SERVER + - MEPM ; events: - services_running // services available in the IUT @@ -202,5 +206,11 @@ Package MEC_Common { connection between UE_App.p and IUT.p ; + Test Configuration Config_MEC_5 containing + Tester component MecOrchestrator of type MecOrchestrator + SUT component IUT of type MEC_Platform_Manager + connection between MEO.p and IUT.p + ; + } } -- GitLab From 47e52ee63050804320519af89280211088e11b3f Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Thu, 6 Jun 2019 17:01:52 +0200 Subject: [PATCH 02/19] RNIS notifications --- .../Notifications/RnisNotifications.tplan2 | 67 +++++++++++++++---- Test Purposes/mec-common.tplan2 | 1 + 2 files changed, 54 insertions(+), 14 deletions(-) diff --git a/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 b/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 index 991817d..1d7c4d7 100644 --- a/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 +++ b/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 @@ -24,7 +24,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { "Check that the RNIS service sends an RNIS notification about cell change if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.2", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS @@ -67,7 +67,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { "Check that the RNIS service sends an RNIS notification about RAB establishment if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.3", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.3", "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_NOTIFICATIONS @@ -114,7 +114,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { "Check that the RNIS service sends an RNIS notification about RAB modification if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.4", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS @@ -157,7 +157,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { "Check that the RNIS service sends an RNIS notification about RAB release if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.5", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS @@ -198,10 +198,10 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_05" Test objective - "Check that the RNIS service sends an RNIS notification about measurement report + "Check that the RNIS service sends an RNIS notification about UE measurement report if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.6", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.6", "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_NOTIFICATIONS @@ -241,10 +241,10 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_06" Test objective - "Check that the RNIS service sends an RNIS notification about timing advance + "Check that the RNIS service sends an RNIS notification about UE timing advance if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.7", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.7", "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_NOTIFICATIONS @@ -285,10 +285,10 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_07" Test objective - "Check that the RNIS service sends an RNIS notification about carrier aggregation reconfiguration + "Check that the RNIS service sends an RNIS notification about UE carrier aggregation reconfiguration if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.8", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.8", "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_NOTIFICATIONS @@ -329,10 +329,10 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_08" Test objective - "Check that the RNIS service sends an RNIS notification about S1 bearer + "Check that the RNIS service sends an RNIS notification about S1-U bearer if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.9", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.10", "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_NOTIFICATIONS @@ -367,16 +367,55 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { ; to the MEC_SUB entity } } + } + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_09" + + Test objective + "Check that the RNIS service sends an RNIS notification about 5G NR UE measurement report + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.11", + "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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "NrMeasRepUeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaNrMrs indicating value FILTER_CRITERIA //the attributes of filterCriteriaNrMrs are FFS - ref. clause 6.3.11 + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a nr_measurement_repost_event containing + associateId set to ASSOCIATE_ID; //TBD - how to link this with the filter criteria + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "NrMeasRepUeNotification" + ; + ; to the MEC_SUB entity + } + } } Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_SUBSCRIPTION_02" + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_10" Test objective "Check that the RNIS service sends an RNIS notification on subscription expiration if the RNIS service has an associated subscription and the event is generated" - Reference "ETSI GS MEC 012 2.0.3, clause 6.4.7", + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.9", "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_NOTIFICATIONS diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 9ba8b21..7f07c84 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -65,6 +65,7 @@ Package MEC_Common { - timing_advance_event - carrier_aggregation_reconfiguration_event - S1_bearer_event + - nr_measurement_repost_event - expiry_notification_event ; } -- GitLab From b8936897c517eaea90947faf66f87ea8dec356f5 Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Thu, 6 Jun 2019 17:15:49 +0200 Subject: [PATCH 03/19] fix --- Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 b/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 index 1d7c4d7..bee0fc7 100644 --- a/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 +++ b/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 @@ -51,7 +51,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { the IUT entity sends a vPOST containing uri indicating value CALLBACK_URI, body containing - notificationType indicating value "CellChangeSubscription", + notificationType indicating value "CellChangeNotification", associateId set to ASSOCIATE_ID ; ; to the MEC_SUB entity @@ -446,7 +446,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { the IUT entity sends a vPOST containing uri indicating value CALLBACK_URI, body containing - notificationType indicating value "ExpiryNotification", + notificationType indicating value "ExpiryNotification", //this field is not in the spec. - ref. clause 6.4.9 _link containing self set to SUBSCRIPTION_HREF_VALUE ;, -- GitLab From 0c64d833ec5d0d0ea8b75e70d51df66858c8a0dc Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Fri, 7 Jun 2019 13:30:25 +0200 Subject: [PATCH 04/19] RNIS - subscriptions resource --- .../Rnis/RnisAllSubscriptions_BO_BI.tplan2 | 377 +++++++++--------- .../Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 | 31 +- 2 files changed, 203 insertions(+), 205 deletions(-) diff --git a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 index 9b51145..03da147 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 @@ -18,19 +18,19 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_A" // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType) + TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_A" // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType) Test objective - "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" + "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions with a wrong subscription type" - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + 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, + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, subscriptionType indicating value "CellChangeSubscription" ; } @@ -41,7 +41,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { the IUT entity receives a vGET containing uri indicating value "/rni/v1/subscriptions", query_parameters containing - subscriptionType indicating value "wrongSubscriptionType" + subscriptionType indicating value "wrongSubscriptionType" //wrong subscription type ; ; from the MEC_SUB entity } @@ -55,13 +55,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_B" // Negative test: Trying to get a 401 Unauthorized (Client did not submit credentials) + 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" + "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 1.1.1, clause 7.6.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.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 @@ -94,13 +94,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_C" // Negative test: Trying to get a 401 Unauthorized (Invalid token) + 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" + "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 1.1.1, clause 7.6.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.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 @@ -131,81 +131,83 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { } } - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_D" // Negative test: 404 Not found - - Test objective - "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" - - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - } +//Removed since not related to an individual resource +// Test Purpose { +// TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_D" // Negative test: 404 Not found +// +// Test objective +// "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type, " +// +// 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 vGET containing - uri indicating value "/rni/v1/subscrition", // Wrong URI - query_parameters containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_SUB entity - } - } - } +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a vGET containing +// uri indicating value "/rni/v1/subscrition", // Wrong URI +// query_parameters containing +// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, +// subscriptionType indicating value "CellChangeSubscription" +// ; +// ; from the MEC_SUB entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "404 Not Found" +// ; to the MEC_SUB entity +// } +// } +// } - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_E" // Negative test: 406 Not acceptable. Using Accept header as application/octet-stream - - Test objective - "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" - - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - } - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/subscriptions", - headers set to vHeadersAcceptKO, - query_parameters containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "406 Not Acceptable" - ; to the MEC_SUB entity - } - } - } +//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_05_NEG_E" // Negative test: 406 Not acceptable. Using Accept header as application/octet-stream +// +// Test objective +// "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" +// +// Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", +// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" +// Config Id Config_MEC_1 +// PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS +// +// Initial conditions with { +// the IUT entity having a RNIS_subscription containing +// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, +// subscriptionType indicating value "CellChangeSubscription" +// ; +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a vGET containing +// uri indicating value "/rni/v1/subscriptions", +// headers set to vHeadersAcceptKO, +// query_parameters containing +// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, +// subscriptionType indicating value "CellChangeSubscription" +// ; +// ; from the MEC_SUB entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "406 Not Acceptable" +// ; to the MEC_SUB entity +// } +// } +// } // Test Purpose { // TP Id "TP_MEC025_RNI_SUBSCRIPTION_05_NEG_F" // Negative test: 403 Forbidden. @@ -254,12 +256,12 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_A" // 400 Bad Request + TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_A" // 400 Bad Request Test objective - "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" + "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong format" - Reference "ETSI GS MEC 012 1.1.1, 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 @@ -275,10 +277,10 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { uri indicating value "/rni/v1/subscriptions", body containing CellChangeSubscription containing - subscritionType indicating value "CelCangeSubscription", + subscritionType indicating value "CelCangeSubscription", //wrong subscription type callbackReference indicating value CALLBACK_URI, filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, + appInstanceId set to APP_INS_ID, associateId set to ASSOCIATE_ID_LIST, ecgi set to ECGI, hoStatus set to HO_STATUS @@ -298,13 +300,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_B" // 401 Unauthorized (No Token) + 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 a request to create a new RNIS subscription is done" + "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 1.1.1, clause 7.6.3.4", - "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.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 @@ -323,7 +325,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, + appInstanceId set to APP_INS_ID, associateId set to ASSOCIATE_ID_LIST, ecgi set to ECGI, hoStatus set to HO_STATUS @@ -343,13 +345,13 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_C" // 401 Unauthorized (Wrong token) + 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 a request to create a new RNIS subscription is done" + "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 1.1.1, clause 7.6.3.4", - "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.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 @@ -368,7 +370,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, + appInstanceId set to APP_INS_ID, associateId set to ASSOCIATE_ID_LIST, ecgi set to ECGI, hoStatus set to HO_STATUS @@ -386,92 +388,93 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { } } - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_C" // 404 not Found (Wrong URI) - - Test objective - "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" - - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/rnis/v1/subscription", // wrong URI - body containing - CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, - associateId set to ASSOCIATE_ID_LIST, - ecgi set to ECGI, - hoStatus set to HO_STATUS - ;, - expiryDeadline set to EXPIRY_DEADLINE - ; - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_D" // 406 not acceptable (client accepts only application/octet-stream content format) - - Test objective - "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" - - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity being_in idle_state - } +//Removed since not related to an individual resource +// Test Purpose { +// TP Id "TP_MEC025_RNI_SUBSCRIPTION_01_NEG_C" // 404 not Found (Wrong URI) +// +// Test objective +// "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" +// +// Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", +// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" +// Config Id Config_MEC_1 +// PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS +// +// Initial conditions with { +// the IUT entity being_in idle_state +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a vPOST containing +// uri indicating value "/rnis/v1/subscription", // wrong URI +// body containing +// CellChangeSubscription containing +// subscriptionType indicating value "CellChangeSubscription", +// callbackReference indicating value CALLBACK_URI, +// filterCriteriaAssocHo containing +// appInsId set to APP_INS_ID, +// associateId set to ASSOCIATE_ID_LIST, +// ecgi set to ECGI, +// hoStatus set to HO_STATUS +// ;, +// expiryDeadline set to EXPIRY_DEADLINE +// ; +// ; +// ; from the MEC_SUB entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "404 Not Found" +// ; to the MEC_SUB entity +// } +// } +// } - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/rni/v1/subscriptions", - headers set to vHeadersAcceptKO, - body containing - CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, - associateId set to ASSOCIATE_ID_LIST, - ecgi set to ECGI, - hoStatus set to HO_STATUS - ;, - expiryDeadline set to EXPIRY_DEADLINE - ; - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "406 Not Acceptable" - ; to the MEC_SUB entity - } - } - } +//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_01_NEG_D" // 406 not acceptable (client accepts only application/octet-stream content format) +// +// Test objective +// "Check that the RNIS service responds with an error when a request to create a new RNIS subscription is done" +// +// Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", +// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" +// Config Id Config_MEC_1 +// PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS +// +// Initial conditions with { +// the IUT entity being_in idle_state +// } +// +// Expected behaviour +// ensure that { +// when { +// the IUT entity receives a vPOST containing +// uri indicating value "/rni/v1/subscriptions", +// headers set to vHeadersAcceptKO, +// body containing +// CellChangeSubscription containing +// subscriptionType indicating value "CellChangeSubscription", +// callbackReference indicating value CALLBACK_URI, +// filterCriteriaAssocHo containing +// appInsId set to APP_INS_ID, +// associateId set to ASSOCIATE_ID_LIST, +// ecgi set to ECGI, +// hoStatus set to HO_STATUS +// ;, +// expiryDeadline set to EXPIRY_DEADLINE +// ; +// ; +// ; from the MEC_SUB entity +// } +// then { +// the IUT entity sends a HTTP_RESPONSE containing +// status set to "406 Not Acceptable" +// ; to the MEC_SUB entity +// } +// } +// } } diff --git a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 index 0a15316..efda3d0 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 @@ -18,20 +18,20 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_05" + TP Id "TP_MEC_RNI_SUBSCRIPTION_01" Test objective - "Check that the RNIS service sends all RNIS subscriptions when requested" + "Check that the RNIS service sends the list of links to the relevant RNIS subscriptions when requested" - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" + 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 Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" + subscriptionType indicating value "CellChangeSubscription" //shall we have a TP for each type of subscription? ; } @@ -41,7 +41,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 "CellChangeSubscription" + subscriptionType indicating value "cell_change" ; ; from the MEC_SUB entity } @@ -50,12 +50,9 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { status set to "200 OK", body containing subscriptionLinkList containing - _links containing - self set to SUBSCRIPTION_HREF_VALUE - ;, - CellChangeSubscription containing + subscription containing href indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" + subscriptionType indicating value "CELL_CHANGE" ; ; ; @@ -63,16 +60,14 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { } } } - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_01" + TP Id "TP_MEC_RNI_SUBSCRIPTION_02" Test objective "Check that the RNIS service creates a new RNIS subscription" - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.4", + 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 @@ -88,10 +83,10 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { uri indicating value "/rni/v1/subscriptions", body containing CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", + subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? callbackReference indicating value CALLBACK_URI, filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, + appInstanceId set to APP_INS_ID, associateId set to ASSOCIATE_ID_LIST, ecgi set to ECGI, hoStatus set to HO_STATUS @@ -112,7 +107,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { self set to SUBSCRIPTION_HREF_VALUE ;, filterCriteriaAssocHo containing - appInsId set to APP_INS_ID, + appInstanceId set to APP_INS_ID, associateId set to ASSOCIATE_ID_LIST, ecgi set to ECGI, hoStatus set to HO_STATUS -- GitLab From ed37f07fcfc3717efd3cd2c115c0a3aa9b9d0e8e Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Fri, 7 Jun 2019 14:22:31 +0200 Subject: [PATCH 05/19] RNIS individual subscriptions --- .../RnisSpecificSubscription_BO_BI.tplan2 | 304 ++++++++++++++++-- .../Rnis/RnisSpecificSubscription_BV.tplan2 | 25 +- 2 files changed, 297 insertions(+), 32 deletions(-) diff --git a/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 index f4f8268..b2cd3f6 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 @@ -15,15 +15,16 @@ 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_MEC025_RNI_SUBSCRIPTION_06_NEG_A" // Negative test: 401 Unauthorized (No token) + 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 RNIS subscription is requested" + "Check that the RNIS service responds with error when a given RNIS subscription is requested without credentials" - Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", + 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 @@ -57,12 +58,12 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_B" // Negative test: 401 Unauthorized (Invalid token) + 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 RNIS subscription is requested" + "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.3, clause 7.8.3.1", + 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 @@ -96,21 +97,19 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_06_NEG_C" // Negative test: 404 Not Found (Invalid token) + 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 RNIS subscription is requested" + "Check that the RNIS service responds with error when a not existing 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" + 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 having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, + the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; @@ -120,7 +119,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } @@ -132,7 +131,9 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { } } - + +//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) @@ -169,5 +170,272 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { ; to the MEC_SUB entity } } - } -} \ No newline at end of file + } +*/ + + 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 PUT 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 PUT 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 DELETE 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/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 index 522bab0..be510e6 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 @@ -18,12 +18,12 @@ Package MEC012_APP_MP1_RNI_SUB_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_06" + TP Id "TP_MEC_RNI_SUBSCRIPTION_03" Test objective "Check that the RNIS service sends a RNIS subscription when requested" - Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", + 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 @@ -31,7 +31,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Initial conditions with { the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", + subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -65,19 +65,19 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_03" + TP Id "TP_MEC_RNI_SUBSCRIPTION_04" Test objective "Check that the RNIS service modifies a RNIS subscription when requested" - Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.2", + 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", + subscriptionType indicating value "CellChangeSubscription", //shall we have a TP for each type of subscription? callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -89,10 +89,9 @@ Package MEC012_APP_MP1_RNI_SUB_BV { ensure that { when { the IUT entity receives a vPUT containing - uri indicating value SUBSCRIPTION_HREF_VALUE, + uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", body containing subscription containing - subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value NEW_CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -106,7 +105,6 @@ Package MEC012_APP_MP1_RNI_SUB_BV { status set to "200 OK", body containing subscription containing - subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value NEW_CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -121,19 +119,18 @@ Package MEC012_APP_MP1_RNI_SUB_BV { Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_04" + TP Id "TP_MEC_RNI_SUBSCRIPTION_05" Test objective "Check that the RNIS service deletes a RNIS subscription when requested" - Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.5", + 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 - subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -145,7 +142,7 @@ Package MEC012_APP_MP1_RNI_SUB_BV { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value SUBSCRIPTION_HREF_VALUE + uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } then { @@ -155,4 +152,4 @@ Package MEC012_APP_MP1_RNI_SUB_BV { } } } -} \ No newline at end of file +} -- GitLab From b2d730b48cdff21b0069630f1667bc8c39853463 Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Fri, 7 Jun 2019 15:33:52 +0200 Subject: [PATCH 06/19] RNIS queries --- .../App/Mp1/Rnis/RnisQuery_BO_BI.tplan2 | 681 ++++++++++++++++++ ...RabQuery_BV.tplan2 => RnisQuery_BV.tplan2} | 42 +- .../App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 | 207 ------ 3 files changed, 703 insertions(+), 227 deletions(-) create mode 100644 Test Purposes/App/Mp1/Rnis/RnisQuery_BO_BI.tplan2 rename Test Purposes/App/Mp1/Rnis/{RnisRabQuery_BV.tplan2 => RnisQuery_BV.tplan2} (83%) delete mode 100644 Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 diff --git a/Test Purposes/App/Mp1/Rnis/RnisQuery_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisQuery_BO_BI.tplan2 new file mode 100644 index 0000000..0a46e64 --- /dev/null +++ b/Test Purposes/App/Mp1/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_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 GET 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 GET 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 GET 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 GET 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 GET 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 GET 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 GET 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 GET 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 + } + } + } + +} \ No newline at end of file diff --git a/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BV.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisQuery_BV.tplan2 similarity index 83% rename from Test Purposes/App/Mp1/Rnis/RnisRabQuery_BV.tplan2 rename to Test Purposes/App/Mp1/Rnis/RnisQuery_BV.tplan2 index fcf7f95..13499b4 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BV.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisQuery_BV.tplan2 @@ -18,12 +18,12 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_01" + TP Id "TP_MEC_RNI_QUERY_01" Test objective "Check that the RNIS service returns the RAB information when requested" - Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", + 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 @@ -31,17 +31,19 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Initial conditions with { the IUT entity having a RabInfo containing - cellId indicating value CELL_USER_INFO + cellUserInfo containing + ecgi indicating value CELL_ID + ; ; } Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/queries/rab_info", query_parameters containing - cellId indicating value CELL_ID + cell_id indicating value CELL_ID ; ; from the RNIS_CLIENT entity } @@ -52,7 +54,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { RabInfo containing cellUserInfo containing ecgi indicating value CELL_ID - ; + ; ; ; ; to the RNIS_CLIENT entity @@ -62,12 +64,12 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_02" + TP Id "TP_MEC_RNI_QUERY_02" Test objective "Check that the RNIS service returns the PLMN information when requested" - Reference "ETSI GS MEC 012 2.0.3, clause 7.4.3.1", + 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 @@ -75,17 +77,17 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Initial conditions with { the IUT entity having a PlmnInfo containing - appInsId indicating value APP_INSTANCE_INFO + appInstanceId indicating value APP_INSTANCE_INFO ; } Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/queries/plmn_info", query_parameters containing - appInsId indicating value APP_INS_ID + app_ins_id indicating value APP_INS_ID ; ; from the RNIS_CLIENT entity } @@ -94,7 +96,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { status set to "200 OK", body containing PlmnInfo containing - appInsId indicating value APP_INS_ID + appInstanceId indicating value APP_INS_ID ; ; ; to the RNIS_CLIENT entity @@ -103,12 +105,12 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { } Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_03" + TP Id "TP_MEC_RNI_QUERY_03" Test objective "Check that the RNIS service returns the S1 bearer information" - Reference "ETSI GS MEC 012 2.0.3, clause 7.5.3.1", + 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 @@ -125,10 +127,10 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/queries/s1_bearer_info", query_parameters containing - cellId indicating value CELL_ID + cell_id indicating value CELL_ID ; ; from the RNIS_CLIENT entity } @@ -151,7 +153,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Test objective "Check that the RNIS service returns the L2 measurements information" - Reference "ETSI GS MEC 012 2.0.3, clause 7.5a.3.1", + 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 @@ -168,10 +170,10 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/queries/layer2_meas", query_parameters containing - cellId indicating value CELL_ID + cell_id indicating value CELL_ID ; ; from the RNIS_CLIENT entity } @@ -189,4 +191,4 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { } } } -} \ No newline at end of file +} diff --git a/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 deleted file mode 100644 index 10def08..0000000 --- a/Test Purposes/App/Mp1/Rnis/RnisRabQuery_BO_BI.tplan2 +++ /dev/null @@ -1,207 +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_MEC025_RNI_QUERY_01_NEG_A" // Negative test: 400 Bad request - - Test objective - "Check that the RNIS service returns an error when the RAB information when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellId indicating value CELL_USER_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/queries/rab_info", - query_parameters containing - cId indicating value C_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the RNIS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_01_NEG_B" // Negative test: 401 Unauthorized (No token provided) - - Test objective - "Check that the RNIS service returns an error when the RAB information when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellId indicating value CELL_USER_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/rab_info", - "not" authorization, - query_parameters containing - cellId indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_01_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) - - Test objective - "Check that the RNIS service returns an error when the RAB information when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellId indicating value CELL_USER_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/rab_info", - headers set to vHeadersInvalidToken, - query_parameters containing - cellId indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_01_NEG_D" // Negative test: 404 Not found - - Test objective - "Check that the RNIS service returns an error when the RAB information when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellId indicating value CELL_USER_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rnis/v1/query/rab_info", - headers set to vHeadersInvalidToken, - query_parameters containing - cellId indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the RNIS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC025_RNI_QUERY_01_NEG_E" // Negative test: 406 Not Acceptable - - Test objective - "Check that the RNIS service returns an error when the RAB information when requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellId indicating value CELL_USER_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/queries/rab_info", - headers set to vHeadersAcceptKO, - query_parameters containing - cellId indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "406 Not Acceptable" - ; to the RNIS_CLIENT entity - } - } - } -} \ No newline at end of file -- GitLab From edaa5b4ddc6fd413a9cad2bd6c5c41390aa81e43 Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Fri, 7 Jun 2019 18:05:29 +0200 Subject: [PATCH 07/19] AMS positive cases --- Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 | 318 ++++++++++++++++++ .../Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 | 4 +- Test Purposes/mec-common.tplan2 | 4 + 3 files changed, 324 insertions(+), 2 deletions(-) create mode 100644 Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 diff --git a/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 b/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 new file mode 100644 index 0000000..44fb977 --- /dev/null +++ b/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 @@ -0,0 +1,318 @@ +/* +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" + + Test objective + "Check that the AMS service returns information about the registered application mobility services when requested" + + 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", + query_parameters containing + appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID + ; + ; from the AMS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppMobilityServiceInfo containing + appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID + ; + ; + ; to the AMS_CLIENT entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_AMS_02" + + Test objective + "Check that the AMS service creates a new application mobility services when requested" + + 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", + 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 + appInstanceId set to APP_INS_ID + ; + ; + ; + ; from the AMS_CLIENT entity + } + 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 + ; + ; + ; + ; to the AMS_CLIENT entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_AMS_03" + + Test objective + "Check that the AMS service returns information about the available subscriptions when requested" + + 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" //shall we have a TP for each type of subscription? + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/amsi/v1/subscriptions/", + query_parameters containing + subscriptionType indicating value "MobilityProcedureSubscription" + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + SubscriptionLinkList containing + subscription containing + href indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "MobilityProcedureSubscription" + ; + ; + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_AMS_04" + + Test objective + "Check that the AMS service creates a notification subscriptions when requested" + + 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/", + body containing + MobilityProcedureSubscription containing + subscriptionType indicating value "MobilityProcedureSubscription", //shall we have a TP for each type of subscription? + callbackReference indicating value CALLBACK_REFERENCE + ; + ; + ; from the AMS_CLIENT entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 CREATED", + body containing + MobilityProcedureSubscription containing + subscriptionType indicating value "MobilityProcedureSubscription", + callbackReference indicating value CALLBACK_REFERENCE + ; + ; + ; to the AMS_CLIENT entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_AMS_05" + + Test objective + "Check that the AMS service returns information about a given subscription when requested" + + 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" //shall we have a TP for each type of subscription? + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value SUBSCRIPTION_HREF_VALUE + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + MobilityProcedureSubscription containing + subscriptionType indicating value "MobilityProcedureSubscription", + callbackReference indicating value CALLBACK_REFERENCE + ; + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_AMS_06" + + Test objective + "Check that the AMS service deletes a given subscription when requested" + + 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" //shall we have a TP for each type of subscription? + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a DELETE containing + uri indicating value SUBSCRIPTION_HREF_VALUE + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_AMS_06" + + Test objective + "Check that the AMS service modifies a given subscription when requested" + + 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" //shall we have a TP for each type of subscription? + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a PUT 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? + callbackReference indicating value NEW_CALLBACK_REFERENCE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + MobilityProcedureSubscription containing + subscriptionType indicating value "MobilityProcedureSubscription", + callbackReference indicating value NEW_CALLBACK_REFERENCE + ; + ; + ; to the MEC_SUB entity + } + } + } + +} diff --git a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 index efda3d0..3836dd0 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 +++ b/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 @@ -38,7 +38,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing + the IUT entity receives a GET containing uri indicating value "/rni/v1/subscriptions", query_parameters containing subscriptionType indicating value "cell_change" @@ -79,7 +79,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { Expected behaviour ensure that { when { - the IUT entity receives a vPOST containing + the IUT entity receives a POST containing uri indicating value "/rni/v1/subscriptions", body containing CellChangeSubscription containing diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 7f07c84..ce8b6d8 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -18,6 +18,8 @@ Package MEC_Common { - PIC_APP_LCM // MEC032, table xxxxx - PIC_APP_LCM_MANAGEMENT // MEC032, table xxxxy - PIC_APP_LCM_NOTIFICATIONS // MEC032, table xxxxz + - PIC_AMS + - PIC_AMS_NOTIFICATIONS ; entities: - MEC_OSS @@ -34,6 +36,8 @@ Package MEC_Common { - RNIS_CLIENT - RNIS_SERVER - MEPM + - AMS_CLIENT + - AMS_SERVER ; events: - services_running // services available in the IUT -- GitLab From 8f405a78e26ed98a0fc82a226cb5a16c0b73ccfa Mon Sep 17 00:00:00 2001 From: Elian Kraja Date: Mon, 10 Jun 2019 11:17:55 +0200 Subject: [PATCH 08/19] Fix on TP names --- .../AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 | 74 ++++----- .../Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 | 4 +- .../Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 | 141 ++++-------------- .../Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 | 126 +++------------- 4 files changed, 89 insertions(+), 256 deletions(-) diff --git a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 index 57559a4..820c113 100644 --- a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 +++ b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 @@ -17,7 +17,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_001" + TP Id "TP_MEC_MEO_MM1_LCM_001_BO_BI_001" Test objective "Check that MEO fails on creation of a new App Instance when requested" @@ -56,7 +56,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_002" // No token + TP Id "TP_MEC_MEO_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" @@ -95,7 +95,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_003" // Wrong token + TP Id "TP_MEC_MEO_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" @@ -137,7 +137,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_004" // No token + TP Id "TP_MEC_MEO_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" @@ -170,7 +170,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_005" // Wrong token + TP Id "TP_MEC_MEO_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" @@ -203,7 +203,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_006" // No token + TP Id "TP_MEC_MEO_MM1_LCM_003_BO_BI_001" // No token Test objective "Check that MEO fails on retrieving an App Instance when requested using no token" @@ -237,7 +237,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_007" // Wrong token + TP Id "TP_MEC_MEO_MM1_LCM_003_BO_BI_002" // Wrong token Test objective "Check that MEO fails on retrieving an App Instance when requested using wrong token" @@ -271,7 +271,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_008" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEO_MM1_LCM_003_BO_BI_003" // Wrong APP_INSTANCE_ID Test objective "Check that MEO fails on retrieving an App Instance when requested using wrong appInstanceId" @@ -305,7 +305,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_009" // No token + TP Id "TP_MEC_MEO_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" @@ -339,7 +339,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_010" // Wrong token + TP Id "TP_MEC_MEO_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" @@ -373,7 +373,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_011" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEO_MM1_LCM_004_BO_BI_003" // Wrong APP_INSTANCE_ID Test objective "Check that MEO fails on deletion of an App Instance when requested using wrong appInstanceId" @@ -407,7 +407,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_012" + TP Id "TP_MEC_MEO_MM1_LCM_005_BO_BI_001" Test objective "Check that MEO service fails to instantiate an App Instance when requested" @@ -448,7 +448,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_013" // No token + TP Id "TP_MEC_MEO_MM1_LCM_005_BO_BI_002" // No token Test objective "Check that MEO fails on instantiating an App Instance when requested using no token" @@ -494,7 +494,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_014" // Wrong token + TP Id "TP_MEC_MEO_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" @@ -541,7 +541,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_015" + TP Id "TP_MEC_MEO_MM1_LCM_006_BO_BI_001" Test objective "Check that MEO service fails to terminate an App Instance when requested" @@ -582,7 +582,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_016" // No token + TP Id "TP_MEC_MEO_MM1_LCM_006_BO_BI_002" // No token Test objective "Check that MEO fails to terminate an App Instance when requested using no token" @@ -623,7 +623,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_017" // Wrong token + TP Id "TP_MEC_MEO_MM1_LCM_006_BO_BI_003" // Wrong token Test objective "Check that MEO fails to terminate an App Instance when requested using wrong token" @@ -665,7 +665,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_018" + TP Id "TP_MEC_MEO_MM1_LCM_007_BO_BI_001" Test objective "Check that MEO service fails to operate on an App Instance when requested" @@ -707,7 +707,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_019" // No token + TP Id "TP_MEC_MEO_MM1_LCM_007_BO_BI_002" // No token Test objective "Check that MEO fails to terminate an App Instance when requested using no token" @@ -749,7 +749,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_020" // Wrong token + TP Id "TP_MEC_MEO_MM1_LCM_007_BO_BI_003" // Wrong token Test objective "Check that MEO fails to terminate an App Instance when requested using wrong token" @@ -793,7 +793,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_021" + TP Id "TP_MEC_MEO_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" @@ -828,7 +828,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_022" + TP Id "TP_MEC_MEO_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" @@ -867,7 +867,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_023" + TP Id "TP_MEC_MEO_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" @@ -904,7 +904,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_024" + TP Id "TP_MEC_MEO_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" @@ -939,7 +939,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_025" + TP Id "TP_MEC_MEO_MM1_LCM_009_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 lcm id" @@ -974,7 +974,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_026" + TP Id "TP_MEC_MEO_MM1_LCM_001a_BO_BI_001" Test objective "Check that MEO service fails to send a LCM Subscription for AppInstSubscriptionRequest event when requested" @@ -1015,7 +1015,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_027" + TP Id "TP_MEC_MEO_MM1_LCM_001b_BO_BI_001" Test objective "Check that MEO service fails to send a LCM Subscription for AppLcmOpOccSubscriptionInfo when requested" @@ -1055,7 +1055,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_028" + TP Id "TP_MEC_MEO_MM1_LCM_001a_BO_BI_002" Test objective "Check that MEO service fails to send a LCM Subscription when requested using no token" @@ -1089,7 +1089,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_029" + TP Id "TP_MEC_MEO_MM1_LCM_001b_BO_BI_002" Test objective "Check that MEO service fails to send a LCM Subscription when requested using wrong token" @@ -1121,7 +1121,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_030" + TP Id "TP_MEC_MEO_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" @@ -1155,7 +1155,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_031" + TP Id "TP_MEC_MEO_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" @@ -1188,7 +1188,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_032" + TP Id "TP_MEC_MEO_MM1_LCM_SUB_003a_BO_BI_001" Test objective "Check that MEO service fails to retrieve a LCM Subscription when requested using no token" @@ -1224,7 +1224,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_033" + TP Id "TP_MEC_MEO_MM1_LCM_SUB_003b_BO_BI_001" Test objective "Check that MEO service fails to retrieve a LCM Subscription when requested using wrong token" @@ -1258,7 +1258,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_034" + TP Id "TP_MEC_MEO_MM1_LCM_SUB_003a_BO_BI_002" Test objective "Check that MEO service fails to retrieve a LCM Subscription when requested using wrong subscription ID" @@ -1292,7 +1292,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_034" + TP Id "TP_MEC_MEO_MM1_LCM_SUB_004_BO_BI_001" Test objective "Check that MEO service fails to delete a LCM Subscription when requested using no token" @@ -1328,7 +1328,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_035" + TP Id "TP_MEC_MEO_MM1_LCM_SUB_004_BO_BI_002" Test objective "Check that MEO service fails to delete a LCM Subscription when requested using wrong token" @@ -1362,7 +1362,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_BO_BI_036" + TP Id "TP_MEC_MEO_MM1_LCM_SUB_004_BO_BI_003" Test objective "Check that MEO service fails to delete a LCM Subscription when requested using wrong subscription ID" diff --git a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 index 73b6b43..a9c6fa5 100644 --- a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 +++ b/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 @@ -444,7 +444,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_001_v1" + TP Id "TP_MEC_MEO_MM1_LCM_SUB_001a" Test objective "Check that MEO service sends a LCM Subscription for AppInstSubscriptionRequest event when requested" @@ -496,7 +496,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_001_v2" + TP Id "TP_MEC_MEO_MM1_LCM_SUB_001b" Test objective "Check that MEO service sends a LCM Subscription for AppLcmOpOccSubscriptionInfo when requested" diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 index 6eac84e..00caae1 100644 --- a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 @@ -18,7 +18,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_A" //Negative case 400 Bad request + TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_001" //Negative case 400 Bad request Test objective "Check that MEO responds with an error when it receives @@ -54,7 +54,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_B" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_002" //Negative case 401 Unauthorized - no token Test objective "Check that MEO responds with an error when it receives @@ -92,7 +92,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_C" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_003" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEO responds with an error when it receives @@ -129,7 +129,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_D" //Negative case 404 Not found + TP Id "TP_MEC_MEO_MM1_PKGM_002b_BO_BI_003" //Negative case 404 Not found Test objective "Check that MEO responds with an error when it receives @@ -164,7 +164,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_E" //Negative case 400 Bad request + TP Id "TP_MEC_MEO_MM1_PKGM_002a_BO_BI_001" //Negative case 400 Bad request Test objective "Check that MEO responds with an error when it receives @@ -200,7 +200,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_F" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEO_MM1_PKGM_002a_BO_BI_002" //Negative case 401 Unauthorized - no token Test objective "Check that MEO responds with an error when it receives @@ -233,7 +233,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_G" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEO_MM1_PKGM_002a_BO_BI_003" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEO responds with an error when it receives @@ -265,46 +265,10 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_H" //Negative case 400 Bad request - - Test objective - "Check that MEO responds with an error when it receives - a malformed request for retrieving an existing App Package" - - 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 - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages", - query_parameters containing - operationalStatus indicating value ENABLED // the query parameter should be operationalState not operationalStatus - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the MEC_OSS entity - } - } - } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_I" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEO_MM1_PKGM_002b_BO_BI_001" //Negative case 401 Unauthorized - no token Test objective "Check that MEO responds with an error when it receives @@ -345,7 +309,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_J" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEO_MM1_PKGM_002b_BO_BI_002" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEO responds with an error when it receives @@ -386,7 +350,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_K" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEO_MM1_PKGM_003_BO_BI_001" //Negative case 401 Unauthorized - no token Test objective "Check that MEO responds with an error when it receives @@ -427,7 +391,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_L" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEO_MM1_PKGM_003_BO_BI_002" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEO responds with an error when it receives @@ -467,7 +431,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_M" //Negative case 404 Not found + TP Id "TP_MEC_MEO_MM1_PKGM_003_BO_BI_003" //Negative case 404 Not found Test objective "Check that MEO responds with an error when it receives @@ -501,7 +465,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_N" + TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_001" Test objective "Check that MEO fails to disable an App Package already in disable status when requested" @@ -534,7 +498,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_O" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_002" //Negative case 401 Unauthorized - no token Test objective "Check that MEO responds with an error when it receives @@ -571,7 +535,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_P" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_003" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEO responds with an error when it receives @@ -607,7 +571,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_Q" //Negative case 404 Not found + TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_004" //Negative case 404 Not found Test objective "Check that MEO responds with an error when it receives @@ -642,7 +606,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_R" + TP Id "TP_MEC_MEO_MM1_PKGM_005_BO_BI_001" Test objective "Check that MEO fails to retrieve the AppD from an App Package when requested" @@ -675,7 +639,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_NEG_S" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEO_MM1_PKGM_005_BO_BI_002" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEO responds with an error when it receives @@ -710,7 +674,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_A" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_002_BO_BI_001" Test objective "Check that MEO service fails retrieving Subscriptions on AppPackages when requested using no token" @@ -743,7 +707,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_B" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_002_BO_BI_002" Test objective "Check that MEO service fails retrieving Subscriptions on AppPackages when requested using wrong token" @@ -777,7 +741,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_C" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001_BO_BI_001" Test objective "Check that MEO service fails creating new Subscription on AppPackages when requested using incorrect parameters" @@ -819,7 +783,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_D" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001_BO_BI_002" Test objective "Check that MEO service fails creating new Subscription on AppPackages when requested using no token" @@ -861,7 +825,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_E" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001_BO_BI_003" Test objective "Check that MEO service fails creating new Subscription on AppPackages when requested using wrong token" @@ -902,7 +866,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_F" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004_BO_BI_001" Test objective "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using no token" @@ -939,7 +903,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_G" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004_BO_BI_002" Test objective "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using wrong token" @@ -976,7 +940,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_H" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004_BO_BI_003" Test objective "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using wrong identifier" @@ -1011,7 +975,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_I" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003_BO_BI_001" Test objective "Check that MEO service fails deleting a specific subscription on AppPackages when requested using no token" @@ -1048,7 +1012,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_J" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003_BO_BI_002" Test objective "Check that MEO service fails deleting a specific subscription on AppPackages when requested using wrong token" @@ -1085,7 +1049,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_NEG_K" + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003_BO_BI_003" Test objective "Check that MEO service fails deleting a specific subscription on AppPackages when requested using wrong identifier" @@ -1116,51 +1080,4 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } } - - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_NOTIF_NEG_01" - - Test objective - "Check that the MEO service fails to send a application package notification - if the MEO service has an associated subscription and the event is generated, without using token" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.5.1" - - Config Id Config_MEC_1 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a MEO_subscription containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity generates a on_boarding_event containing - subscriptionId set to SUBSCRIPTION_ID; - } - then { - the IUT entity sends a POST containing - uri indicating value CALLBACK_URI, - body containing - notificationId set to NOTIFICATION_ID, - notificationType indicating value "ON_BOARDING", - subscriptionId set to SUBSCRIPTION_ID, - timeStamp set to DATE_TIME, - appPkgId set to APP_PKG_ID, - appDId set to APPD_ID, - _links containing - self set to "/apmi/v1/subscriptions/{subscriptionId}" - ; - ; - ; to the MEC_SUB entity - } - } - } - } diff --git a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 index 6d0f96c..4c8d363 100644 --- a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 @@ -17,7 +17,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_D" //Negative case 404 Not found + TP Id "TP_MEC_MEPM_MM3_PKGM_002b_BO_BI_004" //Negative case 404 Not found Test objective "Check that MEPM responds with an error when it receives @@ -52,7 +52,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_E" //Negative case 400 Bad request + TP Id "TP_MEC_MEPM_MM3_PKGM_002a_BO_BI_001" //Negative case 400 Bad request Test objective "Check that MEPM responds with an error when it receives @@ -88,7 +88,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_F" //Negative case 401 Unauthorized - no token + 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 @@ -121,7 +121,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_G" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEPM_MM3_PKGM_002a_BO_BI_003" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEPM responds with an error when it receives @@ -152,47 +152,10 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } } } - - Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_H" //Negative case 400 Bad request - - Test objective - "Check that MEPM responds with an error when it receives - a malformed request for requesting an existing App Package" - - 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 - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}", - 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 "400 Bad Request" - ; to the MEO entity - } - } - } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_I" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEPM_MM3_PKGM_002b_BO_BI_002" //Negative case 401 Unauthorized - no token Test objective "Check that MEPM responds with an error when it receives @@ -233,7 +196,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_J" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEPM_MM3_PKGM_002b_BO_BI_003" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEPM responds with an error when it receives @@ -275,7 +238,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_R" + TP Id "TP_MEC_MEPM_MM3_PKGM_005_BO_BI_001" Test objective "Check that MEPM fails to retrieve the AppD from an App Package when requested" @@ -308,7 +271,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_S" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEPM_MM3_PKGM_005_BO_BI_002" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEPM responds with an error when it receives @@ -343,7 +306,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_T" + TP Id "TP_MEC_MEPM_MM3_PKGM_006_BO_BI_001" Test objective "Check that MEPM fails to retrieve the Package Content from an App Package when requested" @@ -376,7 +339,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_001_NEG_U" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEPM_MM3_PKGM_006_BO_BI_002" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEPM responds with an error when it receives @@ -411,7 +374,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_A" + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_002_BO_BI_001" Test objective "Check that MEPM service fails retrieving Subscriptions on AppPackages when requested using no token" @@ -444,7 +407,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_B" + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_002_BO_BI_002" Test objective "Check that MEPM service fails retrieving Subscriptions on AppPackages when requested using wrong token" @@ -478,7 +441,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_C" + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001_BO_BI_001" Test objective "Check that MEPM service fails creating new Subscription on AppPackages when requested using incorrect parameters" @@ -520,7 +483,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_D" + 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" @@ -562,7 +525,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_E" + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001_BO_BI_003" Test objective "Check that MEPM service fails creating new Subscription on AppPackages when requested using wrong token" @@ -603,7 +566,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_F" + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_004_BO_BI_001" Test objective "Check that MEPM service fails retrieving a specific subscription on AppPackages when requested using no token" @@ -640,7 +603,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_G" + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_004_BO_BI_002" Test objective "Check that MEPM service fails retrieving a specific subscription on AppPackages when requested using wrong token" @@ -677,7 +640,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_H" + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_004_BO_BI_003" Test objective "Check that MEPM service fails retrieving a specific subscription on AppPackages when requested using wrong identifier" @@ -712,7 +675,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_I" + 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" @@ -749,7 +712,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_J" + TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_003_BO_BI_002" Test objective "Check that MEPM service fails deleting a specific subscription on AppPackages when requested using wrong token" @@ -786,7 +749,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_NEG_K" + 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 wrong identifier" @@ -817,51 +780,4 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { } } } - - - Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_NOTIF_NEG_01" - - Test objective - "Check that the MEO service fails to send a application package notification - if the MEO service has an associated subscription and the event is generated, without using token" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.1" - - Config Id Config_MEC_1 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a MEPM_subscription containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity generates a on_boarding_event containing - subscriptionId set to SUBSCRIPTION_ID; - } - then { - the IUT entity sends a POST containing - uri indicating value CALLBACK_URI, - body containing - notificationId set to NOTIFICATION_ID, - notificationType indicating value "ON_BOARDING", - subscriptionId set to SUBSCRIPTION_ID, - timeStamp set to DATE_TIME, - appPkgId set to APP_PKG_ID, - appDId set to APPD_ID, - _links containing - self set to "/apmi/v1/subscriptions/{subscriptionId}" - ; - ; - ; to the MEC_SUB entity - } - } - } - } -- GitLab From 207c8b93f0b45a6b50d0f6d66f44f65084a39c8f Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Mon, 10 Jun 2019 11:52:32 +0200 Subject: [PATCH 09/19] AMS negative cases --- Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 | 796 +++++++++++++++++++++ Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 | 2 +- 2 files changed, 797 insertions(+), 1 deletion(-) create mode 100644 Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 diff --git a/Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 b/Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 new file mode 100644 index 0000000..4a2b7df --- /dev/null +++ b/Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 @@ -0,0 +1,796 @@ +/* +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 GET 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 POST 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 GET 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 POST 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 GET 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 DELETE 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 PUT 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 PUT 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/App/Mp1/Ams/Ams_BV.tplan2 b/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 index 44fb977..84f1f0a 100644 --- a/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 +++ b/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 @@ -268,7 +268,7 @@ Package MEC021_APP_MP1_AMS_BV { } Test Purpose { - TP Id "TP_MEC_AMS_06" + TP Id "TP_MEC_AMS_07" Test objective "Check that the AMS service modifies a given subscription when requested" -- GitLab From e362f750e8fa29ef932ac4f0b33b6fb8f063b042 Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Tue, 11 Jun 2019 17:06:10 +0200 Subject: [PATCH 10/19] AMS update --- Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 | 16 ++++++++-------- Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 | 14 +++++++------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 b/Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 index 4a2b7df..6b81023 100644 --- a/Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 +++ b/Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 @@ -37,7 +37,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + 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 @@ -136,7 +136,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + 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. @@ -240,7 +240,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + 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 @@ -345,7 +345,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + the IUT entity receives a vPOST containing uri indicating value "/amsi/v1/subscriptions/", body containing MobilityProcedureSubscription containing @@ -521,7 +521,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value SUBSCRIPTION_HREF_VALUE ; from the MEC_SUB entity } @@ -631,7 +631,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a DELETE containing + the IUT entity receives a vDELETE containing uri indicating value SUBSCRIPTION_HREF_VALUE ; from the MEC_SUB entity } @@ -667,7 +667,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value SUBSCRIPTION_HREF_VALUE, body containing MobilityProcedureSubscription containing @@ -781,7 +781,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value SUBSCRIPTION_HREF_VALUE ; from the MEC_SUB entity } diff --git a/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 b/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 index 84f1f0a..d6b7a00 100644 --- a/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 +++ b/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 @@ -37,7 +37,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/amsi/v1/appMobilityServices", query_parameters containing appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID @@ -75,7 +75,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + 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. @@ -124,7 +124,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/amsi/v1/subscriptions/", query_parameters containing subscriptionType indicating value "MobilityProcedureSubscription" @@ -165,7 +165,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + the IUT entity receives a vPOST containing uri indicating value "/amsi/v1/subscriptions/", body containing MobilityProcedureSubscription containing @@ -213,7 +213,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value SUBSCRIPTION_HREF_VALUE ; from the MEC_SUB entity } @@ -255,7 +255,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a DELETE containing + the IUT entity receives a vDELETE containing uri indicating value SUBSCRIPTION_HREF_VALUE ; from the MEC_SUB entity } @@ -291,7 +291,7 @@ Package MEC021_APP_MP1_AMS_BV { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value SUBSCRIPTION_HREF_VALUE, body containing MobilityProcedureSubscription containing -- GitLab From bb16835b7aabd017622f30ec4057b8edfd4007d2 Mon Sep 17 00:00:00 2001 From: Elian Kraja Date: Tue, 11 Jun 2019 17:35:31 +0200 Subject: [PATCH 11/19] Fixing naming, PICS and commons --- .../AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 | 0 .../Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 | 0 .../AppInstanceMgmt_notifications.tplan2 | 0 .../Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 | 121 +- .../Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 | 1087 ++++++++--------- .../Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 | 42 +- .../Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 | 18 +- .../AppPkgMgt_notifications.tplan2 | 2 +- .../AppPkgMgt_subscriptions.tplan2 | 8 +- .../{App => SRV}/Mp1/Ams/Ams_BO_BI.tplan2 | 0 .../{App => SRV}/Mp1/Ams/Ams_BV.tplan2 | 0 .../Rnis/RnisAllSubscriptions_BO_BI.tplan2 | 0 .../Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 | 0 .../Mp1/Rnis}/RnisNotifications.tplan2 | 918 +++++++------- .../Mp1/Rnis/RnisQuery_BO_BI.tplan2 | 0 .../{App => SRV}/Mp1/Rnis/RnisQuery_BV.tplan2 | 0 .../RnisSpecificSubscription_BO_BI.tplan2 | 882 ++++++------- .../Rnis/RnisSpecificSubscription_BV.tplan2 | 0 Test Purposes/mec-common.tplan2 | 45 +- 19 files changed, 1524 insertions(+), 1599 deletions(-) rename Test Purposes/{App => MEO}/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 (100%) rename Test Purposes/{App => MEO}/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 (100%) rename Test Purposes/{App => MEO}/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 (100%) rename Test Purposes/{App => MEO}/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 (87%) rename Test Purposes/{App => MEO}/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 (54%) rename Test Purposes/{App => MEPM}/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 (94%) rename Test Purposes/{App => MEPM}/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 (95%) rename Test Purposes/{App => MEPM}/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 (97%) rename Test Purposes/{App => MEPM}/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 (95%) rename Test Purposes/{App => SRV}/Mp1/Ams/Ams_BO_BI.tplan2 (100%) rename Test Purposes/{App => SRV}/Mp1/Ams/Ams_BV.tplan2 (100%) rename Test Purposes/{App => SRV}/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 (100%) rename Test Purposes/{App => SRV}/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 (100%) rename Test Purposes/{App/Mp1/Notifications => SRV/Mp1/Rnis}/RnisNotifications.tplan2 (97%) rename Test Purposes/{App => SRV}/Mp1/Rnis/RnisQuery_BO_BI.tplan2 (100%) rename Test Purposes/{App => SRV}/Mp1/Rnis/RnisQuery_BV.tplan2 (100%) rename Test Purposes/{App => SRV}/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 (97%) rename Test Purposes/{App => SRV}/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 (100%) diff --git a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 similarity index 100% rename from Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 rename to Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 diff --git a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 similarity index 100% rename from Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 rename to Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 diff --git a/Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 similarity index 100% rename from Test Purposes/App/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 rename to Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 similarity index 87% rename from Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 rename to Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 index 00caae1..790c349 100644 --- a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 @@ -27,7 +27,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -64,7 +64,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1" //AppPkg Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -73,14 +73,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a POST containing - uri indicating value "/apmi/v1/app_packages", - "not" authorization, //Token is mandatory - body containing - AppPkg containing - appPkgName set to any_value - ; - ; + the IUT entity receives a ntPOST containing + uri indicating value "/apmi/v1/app_packages" ; from the MEC_OSS entity } then { @@ -101,7 +95,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -110,14 +104,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a HttpMsg containing - headers set to vHeadersInvalidToken, //wrong token - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - appPkgName set to any_value - ; - ; + the IUT entity receives a iPOST containing + uri indicating value "/apmi/v1/app_packages" ; from the MEC_OSS entity } then { @@ -138,12 +126,11 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + 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 "not" having a App_Package containing //TODO + appPkgId indicating value WRONG_APP_PKG_ID ; } @@ -162,7 +149,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } - + //TODO check and change TP IDs Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_002a_BO_BI_001" //Negative case 400 Bad request @@ -173,7 +160,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -185,7 +172,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 + operationalStatus indicating value any_value // the query parameter should be operationalState not operationalStatus ; ; from the MEC_OSS entity } @@ -210,7 +197,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -219,9 +206,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing - uri indicating value "/apmi/v1/app_packages", - "not" authorization //Token is mandatory + the IUT entity receives a ntGET containing + uri indicating value "/apmi/v1/app_packages" ; from the MEC_OSS entity } then { @@ -243,7 +229,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -252,8 +238,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a HttpMsg containing // Not clear what method is received. Should contain in in HttpMsg definition in mec-common. - headers set to vHeadersInvalidToken, //wrong token + the IUT entity receives a iGET containing uri indicating value "/apmi/v1/app_packages" ; from the MEC_OSS entity } @@ -278,26 +263,19 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + 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 GET containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}", - "not" authorization, //Token is mandatory - body containing - AppPkg containing - appPkgName set to any_value - ; - ; + the IUT entity receives a ntGET containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}" ; from the MEC_OSS entity } then { @@ -318,26 +296,19 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + 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 HttpMsg containing - headers set to vHeadersInvalidToken, //wrong token - uri indicating value "/apmi/v1/app_packages/{appPkgId}", - body containing - AppPkg containing - appPkgName set to any_value - ; - ; + the IUT entity receives a iGET containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}" ; from the MEC_OSS entity } then { @@ -360,7 +331,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -400,7 +371,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -440,7 +411,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -473,7 +444,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -508,7 +479,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -544,7 +515,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -580,7 +551,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -614,7 +585,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.6.3.2" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -649,7 +620,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -682,7 +653,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.2" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -715,7 +686,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.2" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -749,7 +720,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.1" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -791,7 +762,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.1" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -833,7 +804,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.3.3.1" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -874,7 +845,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -911,7 +882,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -948,7 +919,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -983,7 +954,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -1020,7 +991,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -1057,7 +1028,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state diff --git a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 similarity index 54% rename from Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 rename to Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 index af5f594..d71f7ab 100644 --- a/Test Purposes/App/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 +++ b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 @@ -1,588 +1,499 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_MEO_MM1_PKGM_BV { - - import all from MEC_Common; - - //All APP packages - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001" - - Test objective - "Check that MEO creates a new App Package when requested" - - Reference "ETSI GS MEC 010-2 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 - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - appPkgName set to APP_PKG_NAME, - appPkgVersion set to APP_PKG_VERSION, - checksum set to CHECKSUM, - appPkgPath set to APP_PKG_PATH - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "201 Created", - body containing - OnboardedAppPkgInfoList 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? - ; - ; - ; - ; - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002a" - - Test objective - "Check that MEO returns the list of App Packages when requested" - - Reference "ETSI GS MEC 010-2 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 - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - OnboardedAppPkgInfoList containing - OnboardedAppPkgInfo containing - appPkgId set to 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? - ; - ; - ; - ; - ; to the MEC_OSS entity - } - } - } - - //Individual APP packages - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002b" - - Test objective - "Check that MEO returns the an App Package when requested" - - Reference "ETSI GS MEC 010-2 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 - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - OnboardedAppPkgInfo containing - appPkgId set to 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? - ; - ; - ; - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_003" - - Test objective - "Check that MEO deletes an App Package when requested" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.4" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "204 No Content" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004a" - - Test objective - "Check that MEO enables an App Package when requested" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "DISABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}", - uri_parameter appPkgOperation indicating value "ENABLE"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK"; - to the MEC_OSS entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004b" - - Test objective - "Check that MEO disables an App Package when requested" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "ENABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}", - uri_parameter appPkgOperation indicating value "DISABLE"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK"; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004c" - - Test objective - "Check that MEO aborts an App Package deletion operation when requested" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "DELETION_PENDING"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}", - uri_parameter appPkgOperation indicating value "ABORT"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK"; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_005" - - 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" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}/appDId" - ; - from the MEC_OSS 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? - ; - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001" - - 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" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/subscriptions" - body containing - AppPkgSubscription containing - callbackUri set to URI, - subscriptionType set to "ON_BOARDING" - ; - ; - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "201 Created", - body containing - AppPkgSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to URI, - _links containing - self set to "/apmi/v1/subscriptions/{subscriptionId}" - ; - ; - ; - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_002" - - 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" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions" - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - AppPkgSubscriptionInfoList containing - AppPkgSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI, - _links containing - self set to "/apmi/v1/subscriptions/{subscriptionId}" - ; - ; - ; - ; - ; - to the MEC_OSS entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004" - - 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" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - subscriptionId indicating value SUBCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" - ; - from the MEC_OSS 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", - callbackUri set to CALLBACK_URI, - _links containing - self set to uri - ; - ; - ; - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003" - - 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" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - subscriptionId indicating value SUBCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/subscriptions/{subscriptionId}" - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "204 No Content" - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_NOTIF_01" - - 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" - - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.5.1" - - Config Id Config_MEC_1 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a MEO_subscription containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity generates a on_boarding_event containing - subscriptionId set to SUBSCRIPTION_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", - subscriptionId set to SUBSCRIPTION_ID, - timeStamp set to DATE_TIME, - appPkgId set to APP_PKG_ID, - appDId set to APPD_ID, - _links containing - self set to "/apmi/v1/subscriptions/{subscriptionId}" - ; - ; - ; to the MEC_SUB entity - } - } - } -} +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ +Package MEC010_2_MEO_MM1_PKGM_BV { + + import all from MEC_Common; + + //All APP packages + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_001" + + Test objective + "Check that MEO creates a new App Package when requested" + + Reference "ETSI GS MEC 010-2 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 + + Config Id Config_MEC_2 + 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/app_packages", + body containing + AppPkg containing + appPkgName set to APP_PKG_NAME, + appPkgVersion set to APP_PKG_VERSION, + checksum set to CHECKSUM, + appPkgPath set to APP_PKG_PATH + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + OnboardedAppPkgInfoList containing //TODO Check if cardinality is 0..N or 1 + OnboardedAppPkgInfo containing + appPkgId set to any_value, + appDId set to any_value, + appName set to APP_PKG_NAME, + appSoftwareVersion set to any_value, + appDVersion set to APP_PKG_VERSION, + checksum set to CHECKSUM, + attribute softwareImagesList, + appPkgPath set to APP_PKG_PATH, + operationalState set to "ENABLED", + usageState set to "NOT_IN_USE", + attribute _links + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_002a" + + Test objective + "Check that MEO returns the list of App Packages when requested" + + Reference "ETSI GS MEC 010-2 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 + + 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, + appDId indicating value APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + OnboardedAppPkgInfoList containing + OnboardedAppPkgInfo containing + appPkgId set to ON_BOARDED_APP_PKG_ID, + appDId set to APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + attribute softwareImagesList, + appPkgPath set to any_value, + operationalState set to any_value, + usageState set to any_value, + attribute _links + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + //Individual APP packages + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_002b" + + Test objective + "Check that MEO returns the an App Package when requested" + + Reference "ETSI GS MEC 010-2 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 + + 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, + appDId indicating value APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + OnboardedAppPkgInfo containing + appPkgId set to ON_BOARDED_APP_PKG_ID, + appDId set to APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + attribute softwareImagesList, + appPkgPath set to any_value, + operationalState set to any_value, + usageState set to any_value, + attribute _links + ; + ; + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_003" + + Test objective + "Check that MEO deletes an App Package when requested" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.4" + + 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; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; to the MEC_OSS entity + } + } + } + + //TODO FIX SPACES + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_004" + + Test objective + "Check that MEO changes the status of an App Package from INITIAL_STATUS to OPERATION_VALUE when requested, with the following possible combinations: + - ENABLED, DISABLE + - DISABLED, ENABLE + - DELETION_PENDING, ABORT + " + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.3" + + 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, + operationalState set to INITIAL_OP_STATE; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri_parameter appPkgOperation indicating value OPERATION_VALUE; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK"; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_005" + + Test objective + "Check that MEO 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" + + 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 + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a GET containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}/appDId", + accept set to ACCEPTED_CONTENT_TYPE + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE_ANY_CONTENT containing + status set to "200 OK", + content_type set to ACCEPTED_CONTENT_TYPE, + body set to FILE + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001" + + 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" + + Config Id Config_MEC_2 + 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 + callbackUri set to URI, + subscriptionType set to "ON_BOARDING" + ; + ; + ; + from the MEC_OSS 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 URI, + attribute _links + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_002" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionInfoList containing + AppPkgSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to any_value, + callbackUri set to any_value, + _links containing + self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value SUBCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions/{SUBCRIPTION_ID}" + ; + from the MEC_OSS 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 any_value, + callbackUri set to any_value, + _links containing + self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003" + + 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" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value 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_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_MM1_PKGM_NOTIF_01" + + 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" + + Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.5.1" + + Config Id Config_MEC_1 + PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a Subscriptions containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to "ON_BOARDING", + callbackUri set to CALLBACK_URI + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a on_boarding_event containing + subscriptionId set to SUBSCRIPTION_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationId set to any_value, + notificationType indicating value "ON_BOARDING", + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to any_value, + appPkgId set to any_value, + appDId set to any_value, + _links containing + self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; to the MEC_SUB entity + } + } + } +} diff --git a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 similarity index 94% rename from Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 rename to Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 index 4c8d363..48628e3 100644 --- a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 @@ -26,7 +26,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { 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 Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -61,7 +61,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { 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 Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -98,7 +98,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -131,7 +131,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -165,7 +165,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -205,7 +205,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { 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 Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -246,7 +246,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.4.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -281,7 +281,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -314,7 +314,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.3.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -349,7 +349,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -382,7 +382,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -415,7 +415,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -449,7 +449,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -491,7 +491,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -533,7 +533,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -574,7 +574,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -611,7 +611,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -648,7 +648,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -683,7 +683,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.4" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -720,7 +720,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.4" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -757,7 +757,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO_BI { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.4" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state diff --git a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 similarity index 95% rename from Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 rename to Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 index 4f9d53a..146966d 100644 --- a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 +++ b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_BV.tplan2 @@ -27,7 +27,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -87,7 +87,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -143,7 +143,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.4.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -181,7 +181,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.3.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -218,7 +218,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.1" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -268,7 +268,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.5.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -315,7 +315,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.2" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -359,7 +359,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.6.3.4" Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -394,7 +394,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BV { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.4.7.3.1" Config Id Config_MEC_1 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS + PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS Initial conditions with { the IUT entity having a MEPM_subscription containing diff --git a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 similarity index 97% rename from Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 rename to Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 index 1fd1c0d..29b92d0 100644 --- a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 +++ b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_notifications.tplan2 @@ -27,7 +27,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO { "ETSI GS MEC 010-2 1.2.2, table Table 6.2.3.8.2-1" //AppPkgNotification Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_NOTIFICATIONS + PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS Initial conditions with { the IUT entity having a App_Package containing diff --git a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 similarity index 95% rename from Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 rename to Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 index 19895e0..e02bbf9 100644 --- a/Test Purposes/App/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 +++ b/Test Purposes/MEPM/Mm3/AppPackageMgmt/AppPkgMgt_subscriptions.tplan2 @@ -27,7 +27,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO { "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.6.2-1" //AppPkgSubscriptionInfo Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -71,7 +71,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO { "ETSI GS MEC 010-2 1.2.2, Table 6.2.3.7.2-1" //AppPkgSubscriptionLinkList Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package_subscription containing @@ -114,7 +114,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO { Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package_subscription containing @@ -152,7 +152,7 @@ Package MEC010_2_MEO_MM3_PKGM_BO { Reference "ETSI GS MEC 010-2 1.2.2, clause 7.3.4.3.4" Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE and PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package_subscription containing diff --git a/Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Ams/Ams_BO_BI.tplan2 similarity index 100% rename from Test Purposes/App/Mp1/Ams/Ams_BO_BI.tplan2 rename to Test Purposes/SRV/Mp1/Ams/Ams_BO_BI.tplan2 diff --git a/Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 b/Test Purposes/SRV/Mp1/Ams/Ams_BV.tplan2 similarity index 100% rename from Test Purposes/App/Mp1/Ams/Ams_BV.tplan2 rename to Test Purposes/SRV/Mp1/Ams/Ams_BV.tplan2 diff --git a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 similarity index 100% rename from Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 rename to Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 diff --git a/Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 similarity index 100% rename from Test Purposes/App/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 rename to Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 diff --git a/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 similarity index 97% rename from Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 rename to Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 index bee0fc7..9d33204 100644 --- a/Test Purposes/App/Mp1/Notifications/RnisNotifications.tplan2 +++ b/Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 @@ -1,459 +1,459 @@ -/* -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_NOTIF_BV { - - import all from MEC_Common; - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_01" - - Test objective - "Check that the RNIS service sends an RNIS notification about cell change - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - associateIdList containing - associateId set to ASSOCIATE_ID - ; - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity generates a cell_change_event containing - associateId set to ASSOCIATE_ID; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "CellChangeNotification", - associateId set to ASSOCIATE_ID - ; - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_02" - - Test objective - "Check that the RNIS service sends an RNIS notification about RAB establishment - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.3", - "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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "RabEstSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaQci containing - qci set to QCI - ; - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a rab_establish_event containing - erabQosParameters containing - qci set to QCI; - ; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "RabEstNotification", - erabQosParameters containing - qci set to QCI - ; - ; - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_03" - - Test objective - "Check that the RNIS service sends an RNIS notification about RAB modification - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "RabModSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaQci containing - erabId set to E_RAB_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a rab_modification_event containing - erabId set to E_RAB_ID; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "RabModNotification", - erabId set to E_RAB_ID - ; - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_04" - - Test objective - "Check that the RNIS service sends an RNIS notification about RAB release - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "RabRelSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaQci containing - erabId set to E_RAB_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a rab_release_event containing - erabId set to E_RAB_ID; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "RabRelNotification", - erabReleaseInfo containing - erabId set to E_RAB_ID - ; - ; - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_05" - - Test objective - "Check that the RNIS service sends an RNIS notification about UE measurement report - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.6", - "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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "MeasRepUeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocTri containing - ecgi set to ECGI - ; - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a measurement_repost_event containing - ecgi set to ECGI; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "MeasRepUeNotification", - ecgi set to ECGI - ; - ; to the MEC_SUB entity - - } - } - } - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_06" - - Test objective - "Check that the RNIS service sends an RNIS notification about UE timing advance - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.7", - "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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "MeasTaSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssoc containing - ecgi set to ECGI - ; - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a timing_advance_event containing - ecgi set to ECGI; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "MeasTaNotification", - ecgi set to ECGI - ; - ; to the MEC_SUB entity - - } - } - } - - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_07" - - Test objective - "Check that the RNIS service sends an RNIS notification about UE carrier aggregation reconfiguration - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.8", - "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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CaReconfSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssoc containing - associateId set to ASSOCIATE_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a carrier_aggregation_reconfiguration_event containing - associateId set to ASSOCIATE_ID; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "CaReConfNotification", - associateId set to ASSOCIATE_ID - ; - ; to the MEC_SUB entity - - } - } - } - - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_08" - - Test objective - "Check that the RNIS service sends an RNIS notification about S1-U bearer - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.10", - "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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "S1BearerSubscription", - callbackReference indicating value CALLBACK_URI, - s1BearerSubscriptionCriteria containing - associateId set to ASSOCIATE_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a S1_bearer_event containing - associateId set to ASSOCIATE_ID; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "S1BearerNotification", - s1UeInfo containing - associateId set to ASSOCIATE_ID - ; - ; - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_09" - - Test objective - "Check that the RNIS service sends an RNIS notification about 5G NR UE measurement report - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.11", - "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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "NrMeasRepUeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaNrMrs indicating value FILTER_CRITERIA //the attributes of filterCriteriaNrMrs are FFS - ref. clause 6.3.11 - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a nr_measurement_repost_event containing - associateId set to ASSOCIATE_ID; //TBD - how to link this with the filter criteria - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationType indicating value "NrMeasRepUeNotification" - ; - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_10" - - Test objective - "Check that the RNIS service sends an RNIS notification on subscription expiration - if the RNIS service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 012 2.0.4, clause 6.4.9", - "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_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a RNIS_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 - ;, - s1BearerSubscriptionCriteria containing - associateId set to ASSOCIATE_ID - ;, - expiryDeadline set to EXPIRY_DEADLINE - ; - } - - Expected behaviour - ensure that { - when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events - the IUT entity generates a expiry_notification_event containing - associateId set to ASSOCIATE_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. - ref. clause 6.4.9 - _link containing - self set to SUBSCRIPTION_HREF_VALUE - ;, - expiryDeadline set to EXPIRY_DEADLINE - ; - ; to the MEC_SUB entity - } - } - } -} +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ + +Package MEC012_APP_MP1_RNI_NOTIF_BV { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_01" + + Test objective + "Check that the RNIS service sends an RNIS notification about cell change + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + associateIdList containing + associateId set to ASSOCIATE_ID + ; + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a cell_change_event containing + associateId set to ASSOCIATE_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "CellChangeNotification", + associateId set to ASSOCIATE_ID + ; + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_02" + + Test objective + "Check that the RNIS service sends an RNIS notification about RAB establishment + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.3", + "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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "RabEstSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaQci containing + qci set to QCI + ; + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a rab_establish_event containing + erabQosParameters containing + qci set to QCI; + ; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "RabEstNotification", + erabQosParameters containing + qci set to QCI + ; + ; + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_03" + + Test objective + "Check that the RNIS service sends an RNIS notification about RAB modification + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "RabModSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaQci containing + erabId set to E_RAB_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a rab_modification_event containing + erabId set to E_RAB_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "RabModNotification", + erabId set to E_RAB_ID + ; + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_04" + + Test objective + "Check that the RNIS service sends an RNIS notification about RAB release + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "RabRelSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaQci containing + erabId set to E_RAB_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a rab_release_event containing + erabId set to E_RAB_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "RabRelNotification", + erabReleaseInfo containing + erabId set to E_RAB_ID + ; + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_05" + + Test objective + "Check that the RNIS service sends an RNIS notification about UE measurement report + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.6", + "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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "MeasRepUeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocTri containing + ecgi set to ECGI + ; + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a measurement_repost_event containing + ecgi set to ECGI; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "MeasRepUeNotification", + ecgi set to ECGI + ; + ; to the MEC_SUB entity + + } + } + } + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_06" + + Test objective + "Check that the RNIS service sends an RNIS notification about UE timing advance + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.7", + "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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "MeasTaSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssoc containing + ecgi set to ECGI + ; + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a timing_advance_event containing + ecgi set to ECGI; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "MeasTaNotification", + ecgi set to ECGI + ; + ; to the MEC_SUB entity + + } + } + } + + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_07" + + Test objective + "Check that the RNIS service sends an RNIS notification about UE carrier aggregation reconfiguration + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.8", + "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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "CaReconfSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssoc containing + associateId set to ASSOCIATE_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a carrier_aggregation_reconfiguration_event containing + associateId set to ASSOCIATE_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "CaReConfNotification", + associateId set to ASSOCIATE_ID + ; + ; to the MEC_SUB entity + + } + } + } + + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_08" + + Test objective + "Check that the RNIS service sends an RNIS notification about S1-U bearer + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.10", + "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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "S1BearerSubscription", + callbackReference indicating value CALLBACK_URI, + s1BearerSubscriptionCriteria containing + associateId set to ASSOCIATE_ID + ; + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a S1_bearer_event containing + associateId set to ASSOCIATE_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "S1BearerNotification", + s1UeInfo containing + associateId set to ASSOCIATE_ID + ; + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_09" + + Test objective + "Check that the RNIS service sends an RNIS notification about 5G NR UE measurement report + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.11", + "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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionType indicating value "NrMeasRepUeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaNrMrs indicating value FILTER_CRITERIA //the attributes of filterCriteriaNrMrs are FFS - ref. clause 6.3.11 + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a nr_measurement_repost_event containing + associateId set to ASSOCIATE_ID; //TBD - how to link this with the filter criteria + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "NrMeasRepUeNotification" + ; + ; to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_10" + + Test objective + "Check that the RNIS service sends an RNIS notification on subscription expiration + if the RNIS service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 012 2.0.4, clause 6.4.9", + "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_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a RNIS_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 + ;, + s1BearerSubscriptionCriteria containing + associateId set to ASSOCIATE_ID + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + } + + Expected behaviour + ensure that { + when { + // TODO: Check whether this could be triggered by the tester of document otherwise + // with a reference describing this type of events + the IUT entity generates a expiry_notification_event containing + associateId set to ASSOCIATE_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. - ref. clause 6.4.9 + _link containing + self set to SUBSCRIPTION_HREF_VALUE + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; to the MEC_SUB entity + } + } + } +} diff --git a/Test Purposes/App/Mp1/Rnis/RnisQuery_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 similarity index 100% rename from Test Purposes/App/Mp1/Rnis/RnisQuery_BO_BI.tplan2 rename to Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 diff --git a/Test Purposes/App/Mp1/Rnis/RnisQuery_BV.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 similarity index 100% rename from Test Purposes/App/Mp1/Rnis/RnisQuery_BV.tplan2 rename to Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 diff --git a/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 similarity index 97% rename from Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 rename to Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 index b2cd3f6..4091c10 100644 --- a/Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 +++ b/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 @@ -1,441 +1,441 @@ -/** -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 GET 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 PUT 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 PUT 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 DELETE 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 - } - } - } - -} +/** +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 GET 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 PUT 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 PUT 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 DELETE 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/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 similarity index 100% rename from Test Purposes/App/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 rename to Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BV.tplan2 diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index ce8b6d8..9634522 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -7,7 +7,6 @@ Package MEC_Common { - PIC_MEC_SYSTEM // FUT is a MEC System (MEC025, Table 7.9.1-1) - PIC_SERVICES // Implements services - PIC_NOTIFICATIONS // Implements notifications - - PIC_APP_PACKAGE // MEC025, clause 7.3.2 - PIC_APP_PACKAGE_MANAGEMENT // MEC025, table 7.3.2-1 - PIC_APP_PACKAGE_NOTIFICATIONS // MEC025, table 7.3.2-2 - PIC_RNIS // MEC025, clause 7.5.2 @@ -173,6 +172,50 @@ Package MEC_Common { headers set to vHeadersResponse ; + + + HttpHeaders ntHeaders containing + "not" authorization + ; + + + HttpMsg ntPOST containing + headers set to ntHeaders, + body set to any_value + ; + + HttpMsg ntGET containing + headers set to ntHeaders + + ; + + + + + HttpHeaders iHeaders containing + accept set to CONTENT_JSON, + content_type set to CONTENT_JSON, + authorization set to NOT_VALID_TOKEN + ; + + + HttpHeaders iHeadersGet containing + accept set to "application/json", + authorization set to NOT_VALID_TOKEN + ; + + + + HttpMsg iPOST containing + headers set to iHeaders + ; + + HttpMsg iGET containing + headers set to iHeadersGet + ; + + + } Configuration { -- GitLab From fc1b943c2ac309a691b2c4b1b695d0f13425df95 Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Tue, 11 Jun 2019 19:48:24 +0200 Subject: [PATCH 12/19] Update Rnis --- .../Rnis/RnisAllSubscriptions_BO_BI.tplan2 | 4 +-- .../Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 | 4 +-- .../SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 | 26 ++++++++--------- .../SRV/Mp1/Rnis/RnisQuery_BV.tplan2 | 16 +++++------ .../RnisSpecificSubscription_BO_BI.tplan2 | 28 +++++++++---------- 5 files changed, 39 insertions(+), 39 deletions(-) diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 index 03da147..7a653fb 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 +++ b/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BO_BI.tplan2 @@ -317,7 +317,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vPOST containing + the IUT entity receives a POST containing uri indicating value "/rni/v1/subscriptions", "not" authorized, body containing @@ -362,7 +362,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vPOST containing + the IUT entity receives a POST containing uri indicating value "/rni/v1/subscriptions", headers set to vHeadersInvalidToken, // wrong token body containing diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 index 3836dd0..efda3d0 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 +++ b/Test Purposes/SRV/Mp1/Rnis/RnisAllSubscriptions_BV.tplan2 @@ -38,7 +38,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rni/v1/subscriptions", query_parameters containing subscriptionType indicating value "cell_change" @@ -79,7 +79,7 @@ Package MEC012_APP_MP1_RNI_SUBS_BV { Expected behaviour ensure that { when { - the IUT entity receives a POST containing + the IUT entity receives a vPOST containing uri indicating value "/rni/v1/subscriptions", body containing CellChangeSubscription containing diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 index 0a46e64..dec7278 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 +++ b/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BO_BI.tplan2 @@ -40,7 +40,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + 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 @@ -148,7 +148,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_QUERY - Initial conditions with { + Initial conditions with { the IUT entity "not" having a RabInfo containing cellUserInfo containing ecgi indicating value CELL_ID @@ -159,7 +159,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rnis/v1/query/rab_info", query_parameters containing cell_id indicating value CELL_ID @@ -236,7 +236,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + 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 @@ -349,7 +349,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rnis/v1/query/plmn_info", query_parameters containing appInstanceId indicating value APP_INSTANCE_INFO @@ -387,7 +387,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + 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 @@ -455,7 +455,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_QUERY - Initial conditions with { + Initial conditions with { the IUT entity having a S1BearerInfo containing s1UeInfo containing ecgi indicating value CELL_ID @@ -506,7 +506,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + 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 @@ -533,7 +533,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_QUERY - Initial conditions with { + Initial conditions with { the IUT entity having a L2_Meas_information containing cellInfo containing ecgi indicating value CELL_ID @@ -544,7 +544,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + 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 @@ -652,7 +652,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_QUERY - Initial conditions with { + Initial conditions with { the IUT entity "not" having a L2_Meas_information containing cellInfo containing ecgi indicating value CELL_ID @@ -663,7 +663,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rnis/v1/query/layer2_meas", query_parameters containing cell_id indicating value CELL_ID @@ -678,4 +678,4 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { } } -} \ No newline at end of file +} diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 index 13499b4..a8ee86f 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 +++ b/Test Purposes/SRV/Mp1/Rnis/RnisQuery_BV.tplan2 @@ -29,7 +29,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_QUERY - Initial conditions with { + Initial conditions with { the IUT entity having a RabInfo containing cellUserInfo containing ecgi indicating value CELL_ID @@ -40,7 +40,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rni/v1/queries/rab_info", query_parameters containing cell_id indicating value CELL_ID @@ -75,7 +75,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_QUERY - Initial conditions with { + Initial conditions with { the IUT entity having a PlmnInfo containing appInstanceId indicating value APP_INSTANCE_INFO ; @@ -84,7 +84,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rni/v1/queries/plmn_info", query_parameters containing app_ins_id indicating value APP_INS_ID @@ -116,7 +116,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_QUERY - Initial conditions with { + Initial conditions with { the IUT entity having a S1BearerInfo containing s1UeInfo containing ecgi indicating value CELL_ID @@ -127,7 +127,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rni/v1/queries/s1_bearer_info", query_parameters containing cell_id indicating value CELL_ID @@ -159,7 +159,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_QUERY - Initial conditions with { + Initial conditions with { the IUT entity having a L2_Meas_information containing cellInfo containing ecgi indicating value CELL_ID @@ -170,7 +170,7 @@ Package MEC012_APP_MP1_RNI_QUERY_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rni/v1/queries/layer2_meas", query_parameters containing cell_id indicating value CELL_ID diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 index 4091c10..a66234e 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 +++ b/Test Purposes/SRV/Mp1/Rnis/RnisSpecificSubscription_BO_BI.tplan2 @@ -30,7 +30,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, @@ -69,7 +69,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, @@ -108,7 +108,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -119,7 +119,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } @@ -184,7 +184,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, @@ -197,7 +197,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", body containing subscription containing @@ -229,7 +229,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, @@ -268,7 +268,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity having a RNIS_subscription containing subscriptionType indicating value "CellChangeSubscription", callbackReference indicating value CALLBACK_URI, @@ -307,7 +307,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -319,7 +319,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { ensure that { when { - the IUT entity receives a PUT containing + the IUT entity receives a vPUT containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } @@ -342,7 +342,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity having a RNIS_subscription containing callbackReference indicating value CALLBACK_URI, _links containing @@ -378,7 +378,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity having a RNIS_subscription containing callbackReference indicating value CALLBACK_URI, _links containing @@ -415,7 +415,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Config Id Config_MEC_1 PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - Initial conditions with { + Initial conditions with { the IUT entity "not" having a RNIS_subscription containing _links containing self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" @@ -426,7 +426,7 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a DELETE containing + the IUT entity receives a vDELETE containing uri indicating value "/rni/v1/subscription/{SUBSCRIPTION_ID}" ; from the MEC_SUB entity } -- GitLab From e4f9c83abcca892ba8a233f5420da14378d4e12a Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Wed, 12 Jun 2019 14:19:22 +0200 Subject: [PATCH 13/19] Generic 401 --- .../Common/CommonUnauthFailure_BI.tplan2 | 83 +++++++++++++++++++ Test Purposes/mec-common.tplan2 | 14 ++++ 2 files changed, 97 insertions(+) create mode 100644 Test Purposes/Common/CommonUnauthFailure_BI.tplan2 diff --git a/Test Purposes/Common/CommonUnauthFailure_BI.tplan2 b/Test Purposes/Common/CommonUnauthFailure_BI.tplan2 new file mode 100644 index 0000000..6038a4a --- /dev/null +++ b/Test Purposes/Common/CommonUnauthFailure_BI.tplan2 @@ -0,0 +1,83 @@ +/* +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_COMMON_BI { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_COMMON_001_NT" //Negative case 401 Unauthorized - no token + + Test objective + "Check that a MEC API provider responds with an error when it receives + a request without token" + + Reference "ETSI GS MEC 009 1.1.1, clause 6.16.1" + + Config Id Config_MEC_6 + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpRequest containing + uri indicating value ACCEPTABLE_URI, + "not" authorization + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_COMMON_001_WT" //Negative case 401 Unauthorized - wrong token + + Test objective + "Check that a MEC API provider responds with an error when it receives + a request with a wrong token" + + Reference "ETSI GS MEC 009 1.1.1, clause 6.16.1" + + Config Id Config_MEC_6 + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a HttpRequest containing + uri indicating value ACCEPTABLE_URI, + headers set to vHeadersInvalidToken + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_CONSUMER entity + } + } + } + + +} diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 9634522..003f94d 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -37,6 +37,8 @@ Package MEC_Common { - MEPM - AMS_CLIENT - AMS_SERVER + - MEC_PROVIDER + - MEC_CONSUMER ; events: - services_running // services available in the IUT @@ -85,6 +87,10 @@ Package MEC_Common { authorization of type STRING, accept of type STRING ; + + type HttpRequest with + uri of type STRING + ; type HttpMsg with uri of type STRING, @@ -229,6 +235,8 @@ Package MEC_Common { Component Type MecPlatformManager with gate p of type myPort; Component Type UeAppComponent with gate p of type myPort; Component Type MecSystemComponent with gate p of type myPort; + Component Type MecGenericProvider with gate p of type myPort; + Component Type MecGenericConsumer with gate p of type myPort; Test Configuration Config_MEC_1 containing Tester component MEC_App of type MecAppComponent @@ -260,5 +268,11 @@ Package MEC_Common { connection between MEO.p and IUT.p ; + Test Configuration Config_MEC_6 containing + Tester component Mec_Consumer of type MecGenericConsumer + SUT component IUT of type MecGenericProvider + connection between Mec_Consumer.p and IUT.p + ; + } } -- GitLab From a6db919c4abcfff34d858020d618dcbc18d65ac4 Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Wed, 12 Jun 2019 14:19:49 +0200 Subject: [PATCH 14/19] Update AppPkgMgt --- .../Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 | 41 +++++++++---------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 index d71f7ab..e2daae6 100644 --- a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 +++ b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BV.tplan2 @@ -19,7 +19,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { //All APP packages Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001" + TP Id "TP_MEC_MEO_PKGM_001_OK" Test objective "Check that MEO creates a new App Package when requested" @@ -54,7 +54,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { the IUT entity sends a HTTP_RESPONSE containing status set to "201 Created", body containing - OnboardedAppPkgInfoList containing //TODO Check if cardinality is 0..N or 1 + OnboardedAppPkgInfoList containing OnboardedAppPkgInfo containing appPkgId set to any_value, appDId set to any_value, @@ -62,8 +62,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { appSoftwareVersion set to any_value, appDVersion set to APP_PKG_VERSION, checksum set to CHECKSUM, - attribute softwareImagesList, - appPkgPath set to APP_PKG_PATH, + attribute softwareImages, operationalState set to "ENABLED", usageState set to "NOT_IN_USE", attribute _links @@ -76,7 +75,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002a" + TP Id "TP_MEC_MEO_PKGM_002_OK" Test objective "Check that MEO returns the list of App Packages when requested" @@ -112,8 +111,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { appSoftwareVersion set to any_value, appDVersion set to any_value, checksum set to any_value, - attribute softwareImagesList, - appPkgPath set to any_value, + attribute softwareImages, operationalState set to any_value, usageState set to any_value, attribute _links @@ -128,7 +126,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { //Individual APP packages Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002b" + TP Id "TP_MEC_MEO_PKGM_003_OK" Test objective "Check that MEO returns the an App Package when requested" @@ -163,8 +161,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { appSoftwareVersion set to any_value, appDVersion set to any_value, checksum set to any_value, - attribute softwareImagesList, - appPkgPath set to any_value, + attribute softwareImages, operationalState set to any_value, usageState set to any_value, attribute _links @@ -176,7 +173,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_003" + TP Id "TP_MEC_MEO_PKGM_004_OK" Test objective "Check that MEO deletes an App Package when requested" @@ -208,10 +205,10 @@ Package MEC010_2_MEO_MM1_PKGM_BV { //TODO FIX SPACES Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004" + TP Id "TP_MEC_MEO_PKGM_005_OK" Test objective - "Check that MEO changes the status of an App Package from INITIAL_STATUS to OPERATION_VALUE when requested, with the following possible combinations: + "Check that MEO changes the status of an App Package from INITIAL_OP_STATE with an operation of type OPERATION_VALUE when requested, with the following possible combinations: - ENABLED, DISABLE - DISABLED, ENABLE - DELETION_PENDING, ABORT @@ -245,7 +242,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_005" + TP Id "TP_MEC_MEO_PKGM_006_OK" Test objective "Check that MEO returns the Application Descriptor contained on a on-boarded Application Package when requested" @@ -264,7 +261,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Expected behaviour ensure that { when { - the IUT entity receives a GET containing + the IUT entity receives a vGET containing uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}/appDId", accept set to ACCEPTED_CONTENT_TYPE ; @@ -282,7 +279,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001" + TP Id "TP_MEC_MEO_PKGM_007_OK" Test objective "Check that MEO service sends a Application Package Subscription when requested" @@ -328,7 +325,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_002" + TP Id "TP_MEC_MEO_PKGM_008_OK" Test objective "Check that MEO service returns the list of Application Package Subscriptions when requested" @@ -375,7 +372,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004" + TP Id "TP_MEC_MEO_PKGM_009_OK" Test objective "Check that MEO service returns an Application Package Subscription when requested" @@ -387,7 +384,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { Initial conditions with { the IUT entity having a Subscription containing - subscriptionId indicating value SUBCRIPTION_ID + subscriptionId indicating value SUBSCRIPTION_ID ; } @@ -395,7 +392,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{SUBCRIPTION_ID}" + uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_OSS entity } @@ -419,7 +416,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003" + TP Id "TP_MEC_MEO_PKGM_010_OK" Test objective "Check that MEO service deletes an Application Package Subscription when requested" @@ -453,7 +450,7 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_NOTIF_01" + TP Id "TP_MEC_MEO_PKGM_011_OK" Test objective "Check that the MEO service sends a application package notification -- GitLab From 402194748dc4d13b70dc5f2cb0ac6f5aee1486fb Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Wed, 12 Jun 2019 14:43:21 +0200 Subject: [PATCH 15/19] fix --- .../Common/CommonUnauthFailure_BI.tplan2 | 8 +++++--- .../Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 | 17 ++++++++++------- Test Purposes/mec-common.tplan2 | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/Test Purposes/Common/CommonUnauthFailure_BI.tplan2 b/Test Purposes/Common/CommonUnauthFailure_BI.tplan2 index 6038a4a..7fb33dd 100644 --- a/Test Purposes/Common/CommonUnauthFailure_BI.tplan2 +++ b/Test Purposes/Common/CommonUnauthFailure_BI.tplan2 @@ -35,7 +35,7 @@ Package MEC_COMMON_BI { Expected behaviour ensure that { when { - the IUT entity receives a HttpRequest containing + the IUT entity receives a HTTP_REQUEST containing uri indicating value ACCEPTABLE_URI, "not" authorization ; from the MEC_CONSUMER entity @@ -66,9 +66,11 @@ Package MEC_COMMON_BI { Expected behaviour ensure that { when { - the IUT entity receives a HttpRequest containing + the IUT entity receives a HTTP_REQUEST containing uri indicating value ACCEPTABLE_URI, - headers set to vHeadersInvalidToken + headers containing + authorization set to NOT_VALID_TOKEN + ; ; from the MEC_CONSUMER entity } then { diff --git a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 index 790c349..379e506 100644 --- a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 @@ -18,7 +18,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_001" //Negative case 400 Bad request + TP Id "TP_MEC_MEO_PKGM_001_BR" //Negative case 400 Bad request Test objective "Check that MEO responds with an error when it receives @@ -53,6 +53,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_002" //Negative case 401 Unauthorized - no token @@ -115,9 +116,10 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } } +*/ Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002b_BO_BI_003" //Negative case 404 Not found + TP Id "TP_MEC_MEO_PKGM_001_NF" //Negative case 404 Not found Test objective "Check that MEO responds with an error when it receives @@ -129,8 +131,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity "not" having a App_Package containing //TODO - appPkgId indicating value WRONG_APP_PKG_ID + the IUT entity "not" having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID ; } @@ -149,9 +151,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } - //TODO check and change TP IDs Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002a_BO_BI_001" //Negative case 400 Bad request + TP Id "TP_MEC_MEO_PKGM_002_BR" //Negative case 400 Bad request Test objective "Check that MEO responds with an error when it receives @@ -185,7 +186,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } - +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_002a_BO_BI_002" //Negative case 401 Unauthorized - no token @@ -400,6 +401,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } } + +*/ Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_003_BO_BI_003" //Negative case 404 Not found diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 003f94d..0e015d4 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -88,7 +88,7 @@ Package MEC_Common { accept of type STRING ; - type HttpRequest with + type HTTP_REQUEST with uri of type STRING ; -- GitLab From dcdf3e7bda8f2f5b494d3448bff1b1eaeacb55eb Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Wed, 12 Jun 2019 15:33:54 +0200 Subject: [PATCH 16/19] Update negative cases for App Package Mgt --- .../Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 | 185 +++++++++++------- 1 file changed, 118 insertions(+), 67 deletions(-) diff --git a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 index 379e506..5a0b561 100644 --- a/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEO/Mm1/AppPackageMgmt/AppPkgMgt_BO-BI.tplan2 @@ -52,18 +52,16 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } } - -/* + Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_002" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEO_PKGM_002_BR" //Negative case 400 Bad request Test objective "Check that MEO responds with an error when it receives - a request for creating a new App Package without credentials" + 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.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.9, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -74,27 +72,32 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a ntPOST containing - uri indicating value "/apmi/v1/app_packages" + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/app_packages", + query_parameters containing + operationalStatus indicating value any_value // the query parameter should be operationalState not operationalStatus + ; ; from the MEC_OSS entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" + status set to "400 Bad Request" ; to the MEC_OSS entity } } } +/* Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_003" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_002" //Negative case 401 Unauthorized - no token Test objective "Check that MEO responds with an error when it receives - a request for creating a new App Package with wrong credentials" + 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 + Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -105,7 +108,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a iPOST containing + the IUT entity receives a ntPOST containing uri indicating value "/apmi/v1/app_packages" ; from the MEC_OSS entity } @@ -116,76 +119,75 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } } -*/ Test Purpose { - TP Id "TP_MEC_MEO_PKGM_001_NF" //Negative case 404 Not found + TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_003" //Negative case 401 Unauthorized - wrong token Test objective "Check that MEO responds with an error when it receives - a request for retrieving a App Package referred with a wrong ID" + 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.9, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1" //AppPkg Config Id Config_MEC_2 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 - ; + 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 iPOST containing + uri indicating value "/apmi/v1/app_packages" ; from the MEC_OSS entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" + status set to "401 Unauthorized" ; to the MEC_OSS entity } } } +*/ Test Purpose { - TP Id "TP_MEC_MEO_PKGM_002_BR" //Negative case 400 Bad request + TP Id "TP_MEC_MEO_PKGM_003_NF" //Negative case 404 Not found Test objective "Check that MEO responds with an error when it receives - a malformed request for retrieving the list of existing App Packages" + a request for retrieving a App Package referred with a wrong ID" - Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.2", + 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 Config Id Config_MEC_2 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 any_value // 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}" //wrong AppPackageID ; from the MEC_OSS entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" + status set to "404 Not Found" ; to the MEC_OSS entity } } } + + /* Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_002a_BO_BI_002" //Negative case 401 Unauthorized - no token @@ -405,7 +407,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { */ Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_003_BO_BI_003" //Negative case 404 Not found + TP Id "TP_MEC_MEO_PKGM_004_NF" //Negative case 404 Not found Test objective "Check that MEO responds with an error when it receives @@ -417,9 +419,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 "not" having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID ; } @@ -427,7 +428,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}" //wrong AppPackageID + uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" //wrong AppPackageID ; from the MEC_OSS entity } then { @@ -439,10 +440,11 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_001" + TP Id "TP_MEC_MEO_PKGM_005_BR" Test objective - "Check that MEO fails to disable an App Package already in disable status when requested" + "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" @@ -451,16 +453,16 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Initial conditions with { the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to "DISABLED"; //Ref. Table 6.2.3.3.2-1 MEC 010-2 + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; } Expected behaviour ensure that { when { the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}", - uri_parameter appPkgOperation indicating value "DISABLE"; + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri_parameter appPkgOperation indicating value "DISABL"; //it should be DISABLE from the MEC_OSS entity } then { @@ -471,6 +473,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_002" //Negative case 401 Unauthorized - no token @@ -543,9 +546,10 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } } +*/ Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_004" //Negative case 404 Not found + TP Id "TP_MEC_MEO_PKGM_005_NF" //Negative case 404 Not found Test objective "Check that MEO responds with an error when it receives @@ -557,9 +561,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 "not" having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID ; } @@ -567,8 +570,41 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { ensure that { when { the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}", //wrong AppPackageID - uri_parameter appPkgOperation indicating value "ENABLED" + uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}", //wrong AppPackageID + uri_parameter appPkgOperation indicating value "ENABLE" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_PKGM_006_NF" //Negative case 404 Not found + + Test objective + "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 + Config Id Config_MEC_2 + 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 vPUT containing + uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appDId" ; from the MEC_OSS entity } then { @@ -579,11 +615,12 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_005_BO_BI_001" Test objective - "Check that MEO fails to retrieve the AppD from an App Package when requested" + "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" @@ -711,14 +748,16 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { to the MEC_OSS entity } } - } + } +*/ Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001_BO_BI_001" + TP Id "TP_MEC_MEO_PKGM_007_BR" Test objective - "Check that MEO service fails creating new Subscription on AppPackages when requested using incorrect parameters" + "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" @@ -729,7 +768,6 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { the IUT entity having a App_Package containing appPkgId indicating value ON_BOARDED_APP_PKG_ID ; - } Expected behaviour @@ -755,6 +793,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001_BO_BI_002" @@ -838,12 +877,14 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } } + + Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004_BO_BI_001" + TP Id "TP_MEC_MEO_PKGM_007_NF" Test objective - "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using no token" + "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" @@ -912,12 +953,15 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } +*/ + Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004_BO_BI_003" + TP Id "TP_MEC_MEO_PKGM_009_NF" Test objective - "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using wrong identifier" + "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" @@ -925,7 +969,9 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 + ; } @@ -933,7 +979,7 @@ Package MEC010_2_MEO_MM1_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 MEC_OSS entity } @@ -947,6 +993,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003_BO_BI_001" @@ -1021,12 +1068,15 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } +*/ + Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003_BO_BI_003" + TP Id "TP_MEC_MEO_PKGM_010_NF" Test objective - "Check that MEO service fails deleting a specific subscription on AppPackages when requested using wrong identifier" + "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" @@ -1034,15 +1084,16 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { 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 + ; } Expected behaviour 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 MEC_OSS entity } -- GitLab From dd453f07fc8a3c3b18ac4e57cb88162dc5dfea6f Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Wed, 12 Jun 2019 17:10:09 +0200 Subject: [PATCH 17/19] Update App LCM --- .../AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 | 276 +++++++++----- .../Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 | 356 ++++++------------ .../AppInstanceMgmt_notifications.tplan2 | 2 +- Test Purposes/mec-common.tplan2 | 1 - 4 files changed, 301 insertions(+), 334 deletions(-) diff --git a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 index 820c113..86b9d9c 100644 --- a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 +++ b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BO-BI.tplan2 @@ -17,10 +17,10 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_001_BO_BI_001" + TP Id "TP_MEC_MEO_LCM_001_BR" Test objective - "Check that MEO fails on creation of a new App Instance when requested" + "Check that MEO sends 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 @@ -28,7 +28,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -54,7 +54,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } - +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_LCM_001_BO_BI_002" // No token @@ -270,8 +270,10 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } + * */ + Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_003_BO_BI_003" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEO_LCM_003_NF" // Wrong APP_INSTANCE_ID Test objective "Check that MEO fails on retrieving an App Instance when requested using wrong appInstanceId" @@ -281,18 +283,18 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity having a App_Instance containing - appInstanceId indicating value APP_INSTANCE_ID; + the IUT entity "not" having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; } Expected behaviour ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_instances/{WRONG_APP_INSTANCE_ID}" + uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" ; from the MEC_OSS entity } then { @@ -303,7 +305,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } - +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_LCM_004_BO_BI_001" // No token @@ -371,9 +373,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } } + * + * + */ Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_004_BO_BI_003" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEO_LCM_004_NF" // Wrong APP_INSTANCE_ID Test objective "Check that MEO fails on deletion of an App Instance when requested using wrong appInstanceId" @@ -383,18 +388,18 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity having a App_Instance containing - appInstanceId indicating value APP_INSTANCE_ID; + the IUT entity "not" having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; } Expected behaviour ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/app_instances/{WRONG_APP_INSTANCE_ID}" + uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" ; from the MEC_OSS entity } then { @@ -407,17 +412,17 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_005_BO_BI_001" + TP Id "TP_MEC_MEO_LCM_005_BR" Test objective - "Check that MEO service fails to instantiate an App Instance when requested" + "Check that MEO service 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Instance containing @@ -430,10 +435,10 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/instantiate", + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/instantiate", body containing InstantiateAppRequest containing - appERRORId set to APP_INSTANCE_ID + appERRORId set to APP_INSTANCE_ID //wrong name of the parameter ; ; ; from the MEC_OSS entity @@ -446,7 +451,41 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } + Test Purpose { + TP Id "TP_MEC_MEO_LCM_005_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEO service 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity "not" having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_LCM_005_BO_BI_002" // No token @@ -538,20 +577,20 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } } - + */ Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_006_BO_BI_001" + TP Id "TP_MEC_MEO_LCM_006_BR" Test objective - "Check that MEO service fails to terminate an App Instance when requested" + "Check that MEO service 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Instance containing @@ -564,10 +603,10 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/terminate", + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/terminate", body containing TerminateAppRequest containing - terminationERRORType set to GRACEFULL + terminationERRORType set to GRACEFULL //wrong parameter ; ; ; from the MEC_OSS entity @@ -579,8 +618,42 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } } + + Test Purpose { + TP Id "TP_MEC_MEO_LCM_006_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEO service 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM_MANAGEMENT + Initial conditions with { + the IUT entity "not" having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; + } + Expected behaviour + ensure that { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_LCM_006_BO_BI_002" // No token @@ -662,26 +735,27 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } } + * + * + */ Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_007_BO_BI_001" + TP Id "TP_MEC_MEO_LCM_007_BR" Test objective - "Check that MEO service fails to operate on an App Instance when requested" + "Check that MEO service 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Instance containing - appInstanceId indicating value APP_INSTANCE_ID, - instantiationState indicating value INSTANTIATED, - operationalState indicating value STARTED + appInstanceId indicating value APP_INSTANCE_ID ; } @@ -689,10 +763,10 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/operate", + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/operate", body containing OperateAppRequest containing - changeERRORStateTo set to STOPPED + changeERRORStateTo set to any_value //wrong parameter ; ; ; from the MEC_OSS entity @@ -704,8 +778,42 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } } + + Test Purpose { + TP Id "TP_MEC_MEO_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 + 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 + + Config Id Config_MEC_2 + + PICS Selection PIC_APP_LCM_MANAGEMENT + Initial conditions with { + the IUT entity "not" having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; + } + Expected behaviour + ensure that { + 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 + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + +/* Test Purpose { TP Id "TP_MEC_MEO_MM1_LCM_007_BO_BI_002" // No token @@ -938,22 +1046,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } + * + * + */ + Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_009_BO_BI_002" + TP Id "TP_MEC_MEO_LCM_009_NF" Test objective - "Check that MEO service failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using wrong lcm id" + "Check that MEO service 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity having a App_Lcm_Op_Occ containing - appLcmOpOccId indicating value APP_LCM_OP_OCC_ID + the IUT entity "not" having a App_Lcm_Op_Occ containing + appLcmOpOccId indicating value NON_EXISTENT_APP_LCM_OP_OCC_ID ; } @@ -961,7 +1073,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_lcm_op_occs/{WRONG_APP_LCM_OP_OCC_ID}" + uri indicating value "/alcmi/v1/app_lcm_op_occs/{NON_EXISTENT_APP_LCM_OP_OCC_ID}" ; from the MEC_OSS entity } then { @@ -974,17 +1086,18 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_001a_BO_BI_001" + TP Id "TP_MEC_MEO_LCM_010_BR" Test objective - "Check that MEO service fails to send a LCM Subscription for AppInstSubscriptionRequest event when requested" + "Check that MEO service 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.13.2-1", // AppInstSubscriptionRequest + "ETSI GS MEC 010-2 2.0.9, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -997,8 +1110,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { uri indicating value "/alcmi/v1/subscriptions" body containing AppInstSubscriptionRequest containing - callbackERRORUri set to CALLBACK_URI, - subscriptionType set to "AppInstanceStateChangeSubscription" + callbackERRORUri set to CALLBACK_URI //wrong parameter ; ; ; @@ -1014,45 +1126,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } - Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_001b_BO_BI_001" - - Test objective - "Check that MEO service fails to send a LCM Subscription for AppLcmOpOccSubscriptionInfo when requested" - - 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.16.2-1" // AppLcmOpOccSubscriptionInfo - - - Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/subscriptions" - body containing - AppLcmOpOccSubscriptionInfo containing - callbackERRORUri set to CALLBACK_URI, - subscriptionType set to "AppLcmOpOccStateChangeSubscription" - ; - ; - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; - to the MEC_OSS entity - } - } - } + /* Test Purpose { TP Id "TP_MEC_MEO_MM1_LCM_001a_BO_BI_002" @@ -1256,22 +1330,24 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } } + * + */ Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_003a_BO_BI_002" + TP Id "TP_MEC_MEO_LCM_012_NF" Test objective - "Check that MEO service fails to retrieve a LCM Subscription when requested using wrong subscription ID" + "Check that MEO service 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" Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity having a App_Instance_Subscription containing - subscriptionId set to SUBSCRIPTION_ID + the IUT entity "not" having a App_Instance_Subscription containing + subscriptionId set to NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -1279,7 +1355,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEC_OSS entity } then { @@ -1290,7 +1366,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { } } - + /* Test Purpose { TP Id "TP_MEC_MEO_MM1_LCM_SUB_004_BO_BI_001" @@ -1359,23 +1435,25 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ; to the MEC_OSS entity } } - } + } + * + */ Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_004_BO_BI_003" + TP Id "TP_MEC_MEO_LCM_013_NF" Test objective - "Check that MEO service fails to delete a LCM Subscription when requested using wrong subscription ID" + "Check that MEO service 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" Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity having a App_Instance_Subscription containing - subscriptionId set to SUBSCRIPTION_ID + the IUT entity "not" having a App_Instance_Subscription containing + subscriptionId set to NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -1383,7 +1461,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM_BO_BI { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEC_OSS entity } then { diff --git a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 index a9c6fa5..2aad776 100644 --- a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 +++ b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_BV.tplan2 @@ -20,7 +20,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_001" + TP Id "TP_MEC_MEO_LCM_001_OK" Test objective "Check that MEO creates a new App Package when requested" @@ -31,7 +31,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -54,17 +54,15 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { status set to "201 Created", body containing AppInstanceInfo containing - appInstanceId set to APP_INSTANCE_ID, + appInstanceId set to any_value, appDId set to APP_D_ID, - appProvider set to APP_PROVIDER, - appName set to APP_NAME, - appSoftVersion set to APP_SOFT_VERSION, - appDVersion set to APP_D_VEERSION, - appPkgId set to APP_PKG_ID, + appProvider set to any_value, + appName set to any_value, + appSoftVersion set to any_value, + appDVersion set to any_value, + appPkgId set to any_value, instantiationState set to NOT_INSTANTIATED, - _links containing - self set to any_value - ; + attribute _links ; ; ; to the MEC_OSS entity @@ -74,7 +72,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_002" + TP Id "TP_MEC_MEO_LCM_002_OK" Test objective "Check that MEO retrieves the list of App instances when requested" @@ -84,10 +82,11 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity being_in idle_state + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID; } Expected behaviour @@ -104,16 +103,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { AppInstanceInfoList containing // Definition of AppInstanceInfoList is missing. How to handle with arrays? AppInstanceInfo containing appInstanceId set to APP_INSTANCE_ID, - appDId set to APP_D_ID, - appProvider set to APP_PROVIDER, - appName set to APP_NAME, - appSoftVersion set to APP_SOFT_VERSION, - appDVersion set to APP_D_VEERSION, - appPkgId set to APP_PKG_ID, - instantiationState set to NOT_INSTANTIATED, - _links containing - self set to any_value - ; + appDId set to any_value, + appProvider set to any_value, + appName set to any_value, + appSoftVersion set to any_value, + appDVersion set to any_value, + appPkgId set to any_value, + instantiationState set to any_value, + attribute _links ; ; ; @@ -123,7 +120,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { } Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_003" + TP Id "TP_MEC_MEO_LCM_003_OK" Test objective "Check that MEO retrieves an App Package when requested" @@ -133,7 +130,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Instance containing @@ -144,7 +141,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}" + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}" ; from the MEC_OSS entity } then { @@ -153,16 +150,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { body containing AppInstanceInfo containing appInstanceId set to APP_INSTANCE_ID, - appDId set to APP_D_ID, - appProvider set to APP_PROVIDER, - appName set to APP_NAME, - appSoftVersion set to APP_SOFT_VERSION, - appDVersion set to APP_D_VEERSION, - appPkgId set to APP_PKG_ID, - instantiationState set to NOT_INSTANTIATED, - _links containing - self set to any_value - ; + appDId set to any_value, + appProvider set to any_value, + appName set to any_value, + appSoftVersion set to any_value, + appDVersion set to any_value, + appPkgId set to any_value, + instantiationState set to any_value, + attribute _links ; ; ; to the MEC_OSS entity @@ -173,16 +168,16 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_004" + TP Id "TP_MEC_MEO_LCM_004_OK" Test objective - "Check that MEO service delete an App Instance when requested" + "Check that MEO service deletes an App Instance when requested" Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.2.3.4" Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Instance containing @@ -193,7 +188,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}" + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}" ; from the MEC_OSS entity } then { @@ -206,7 +201,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_005" + TP Id "TP_MEC_MEO_LCM_005_OK" Test objective "Check that MEO service instantiates an App Instance when requested" @@ -216,7 +211,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Instance containing @@ -229,15 +224,11 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/instantiate", + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/instantiate", body containing InstantiateAppRequest containing appInstanceId set to APP_INSTANCE_ID, - selectedMECHostInfoList containing - selectedMECHostInfo containing - hostId set to HOST_ID - ; - ; + selectedMECHostInfo set to SELECTED_MEC_HOST_INFO ; ; ; from the MEC_OSS entity @@ -246,7 +237,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "202 Accepted", headers containing - Location set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}" + Location set to any_value ; ; to the MEC_OSS entity } @@ -255,7 +246,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_006" + TP Id "TP_MEC_MEO_LCM_006_OK" Test objective "Check that MEO service terminates an App Instance when requested" @@ -265,7 +256,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Instance containing @@ -278,10 +269,10 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/terminate", + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/terminate", body containing TerminateAppRequest containing - terminationType set to GRACEFULL + terminationType set to TERMINATION_TYPE ; ; ; from the MEC_OSS entity @@ -290,7 +281,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "202 Accepted", headers containing - Location set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}" + Location set to any_value ; ; to the MEC_OSS entity } @@ -300,23 +291,26 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_007" + TP Id "TP_MEC_MEO_LCM_007_OK" Test objective - "Check that MEO service operates an App Instance when requested" + "Check that MEO 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Instance containing appInstanceId indicating value APP_INSTANCE_ID, instantiationState indicating value INSTANTIATED, - operationalState indicating value STARTED + operationalState indicating value INITIAL_STATE ; } @@ -324,10 +318,10 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}/operate", + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/operate", body containing OperateAppRequest containing - changeStateTo set to STOPPED + changeStateTo set to FINAL_STATE ; ; ; from the MEC_OSS entity @@ -336,7 +330,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "202 Accepted", headers containing - Location set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}" + Location set to any_value ; ; to the MEC_OSS entity } @@ -346,20 +340,22 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_008" + TP Id "TP_MEC_MEO_LCM_008_OK" Test objective - "Check that MEO service retrieves info from LCM Operation Occurrency on an App Instance when requested" + "Check that MEO 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity being_in idle_state + the IUT entity having a App_Lcm_Op_Occ containing + appLcmOpOccId indicating value APP_LCM_OP_OCC_ID + ; } Expected behaviour @@ -377,12 +373,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { AppInstanceLcmOpOcc containing appLcmOpOccId set to APP_LCM_OP_OCC_ID, operationState set to any_value, - stateEnteredTime set to TIME, - startTime set to TIME, + stateEnteredTime set to any_value, + startTime set to any_value, lcmOperation set to any_value, - _links containing - self set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}", - appInstance set to APP_INSTANCE_LINK + attribute _links containing + self set to "/alcmi/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}", + appInstance set to any_value ; ; ; @@ -394,17 +390,17 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_009" + TP Id "TP_MEC_MEO_LCM_009_OK" Test objective - "Check that MEO service retrieves info from LCM Operation Occurrency on an App Instance when requested" + "Check that MEO 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity having a App_Lcm_Op_Occ containing @@ -416,7 +412,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}" + uri indicating value "/alcmi/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}" ; from the MEC_OSS entity } then { @@ -427,12 +423,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { AppInstanceLcmOpOcc containing appLcmOpOccId set to APP_LCM_OP_OCC_ID, operationState set to any_value, - stateEnteredTime set to TIME, - startTime set to TIME, + stateEnteredTime set to any_value, + startTime set to any_value, lcmOperation set to any_value, - _links containing - self set to "/alcmi/v1/app_lcm_op_occs/{appLcmOpOccId}", - appInstance set to APP_INSTANCE_LINK + attribute _links containing + self set to "/alcmi/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}", + appInstance set to any_value ; ; ; @@ -444,17 +440,18 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_001a" + TP Id "TP_MEC_MEO_LCM_010_OK" Test objective - "Check that MEO service sends a LCM Subscription for AppInstSubscriptionRequest event when requested" + "Check that MEO 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 Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state @@ -466,9 +463,9 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity receives a vPOST containing uri indicating value "/alcmi/v1/subscriptions" body containing - AppInstSubscriptionRequest containing + SubscriptionRequest containing callbackUri set to CALLBACK_URI, - subscriptionType set to "AppInstanceStateChangeSubscription" + subscriptionType set to SUBSCRIPTION_TYPE ; ; ; @@ -478,14 +475,11 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "201 Created", body containing - AppInstSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "AppInstanceStateChangeSubscription", - callbackUri set to URI, - notificationType set to "NOT_INSTANTIATED", - _links containing - self set to "/alcmi/v1/subscriptions/{subscriptionId}" - ; + SubscriptionInfo containing + subscriptionId set to any_value, + subscriptionType set to SUBSCRIPTION_TYPE, + callbackUri set to CALLBACK_URI, + attribute _links ; ; ; @@ -495,63 +489,13 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { } - Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_001b" - - Test objective - "Check that MEO service sends a LCM Subscription for AppLcmOpOccSubscriptionInfo when requested" - - 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.15.2-1", // AppLcmOpOccSubscriptionRequest - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_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 "/alcmi/v1/subscriptions" - body containing - AppLcmOpOccSubscriptionInfo containing - callbackUri set to CALLBACK_URI, - subscriptionType set to "AppLcmOpOccStateChangeSubscription" - ; - ; - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "201 Created", - body containing - AppLcmOpOccSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "AppLcmOpOccStateChangeSubscription", - callbackUri set to URI, - notificationType set to "NOT_INSTANTIATED", - _links containing - self set to "/alcmi/v1/subscriptions/{subscriptionId}" - ; - ; - ; - ; - to the MEC_OSS entity - } - } - } - + Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_002" + TP Id "TP_MEC_MEO_LCM_011_OK" Test objective - "Check that MEO service requests the list of LCM Subscriptions when requested" + "Check that MEO 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 @@ -560,10 +504,14 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { "ETSI GS MEC 010-2 2.0.9, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity being_in idle_state + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID, + subscriptionType indicating value SUBSCRIPTION_TYPE, + callbackUri indicating value URI + ; } Expected behaviour @@ -578,26 +526,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "200 OK", body containing - SubscriptionInfo containing // HOW SHOULD DIFFERENCIATE FROM THE TWO CHOISES? - AppInstSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "AppInstanceStateChangeSubscription", + SubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to SUBSCRIPTION_TYPE, callbackUri set to URI, - notificationType set to "NOT_INSTANTIATED", - _links containing - self set to "/alcmi/v1/subscriptions/{subscriptionId}" - ; - ;, - AppLcmOpOccSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "AppLcmOpOccStateChangeSubscription", - callbackUri set to URI, - notificationType set to "NOT_INSTANTIATED", - _links containing - self set to "/alcmi/v1/subscriptions/{subscriptionId}" - ; - ; - ; + attribute _links + ; ; ; to the MEC_OSS entity @@ -607,20 +541,23 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_003_v1" + TP Id "TP_MEC_MEO_LCM_012_OK" Test objective - "Check that MEO service requests a LCM Subscription for AppInstSubscriptionRequest when requested" + "Check that MEO 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.10.2-1", // AppInstSubscriptionInfo + "ETSI GS MEC 010-2 2.0.9, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity having a App_Instance_Subscription containing - subscriptionId indicating value SUBCRIPTION_ID + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID, + subscriptionType indicating value SUBSCRIPTION_TYPE, + callbackUri indicating value URI ; } @@ -628,7 +565,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + uri indicating value "/alcmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_OSS entity } @@ -636,15 +573,12 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "200 OK", body containing - AppInstSubscriptionInfo containing + SubscriptionInfo containing subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "AppInstanceStateChangeSubscription", + subscriptionType set to SUBSCRIPTION_TYPE, callbackUri set to URI, - notificationType set to "NOT_INSTANTIATED", - _links containing - self set to "/alcmi/v1/subscriptions/{subscriptionId}" - ; - ; + attribute _links + ; ; ; to the MEC_OSS entity @@ -653,66 +587,22 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { } - Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_003_v2" - - Test objective - "Check that MEO service requests a LCM Subscription for AppLcmOpOccSubscriptionRequest 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.16.2-1" // AppLcmOpOccSubscriptionInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Instance_Subscription containing - subscriptionId indicating value SUBCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - AppLcmOpOccSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "AppLcmOpOccStateChangeSubscription", - callbackUri set to URI, - notificationType set to "NOT_INSTANTIATED", - _links containing - self set to "/alcmi/v1/subscriptions/{subscriptionId}" - ; - ; - ; - ; - to the MEC_OSS entity - } - } - } + Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_SUB_004" + TP Id "TP_MEC_MEO_LCM_013_OK" Test objective - "Check that MEO service delete a LCM Subscription when requested" + "Check that MEO service delete an existing LCM Subscription when requested" Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.4" Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { - the IUT entity having a App_Instance_Subscription containing + the IUT entity having a Subscription containing subscriptionId indicating value SUBSCRIPTION_ID ; } @@ -721,7 +611,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/subscriptions/{subscriptionId}" + uri indicating value "/alcmi/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_OSS entity } @@ -738,7 +628,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEO_MM1_INSM_WORKFLOW" + TP Id "TP_MEC_MEO_INSM_WORKFLOW" Test objective "Check that MEO instantiates a new application when requested" @@ -746,7 +636,7 @@ Package MEC010_2_MEO_MM1_APP_INSTANCE_LCM { Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.1.3.1" Config Id Config_MEC_2 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_MANAGEMENT + PICS Selection PIC_APP_LCM_MANAGEMENT Initial conditions with { the IUT entity being_in idle_state diff --git a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 index 95da748..7510728 100644 --- a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 +++ b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 @@ -28,7 +28,7 @@ Package MEC010_2_MEO_MM1_LCM_NOTIF { "ETSI GS MEC 010-2 2.0.9, table 6.2.2.4.2-1" // AppInstanceInfo Config Id Config_MEC_3 - PICS Selection PIC_APP_LCM and PIC_APP_LCM_NOTIFICATIONS + PICS Selection PIC_APP_LCM_NOTIFICATIONS Initial conditions with { the IUT entity having a App_Instance containing diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 0e015d4..0bbdf79 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -14,7 +14,6 @@ Package MEC_Common { - PIC_RNIS_ALL_SUBSCRIPTIONS // MEC025, table 7.5.2-2 - PIC_RNIS_SPECIFIC_SUBSCRIPTION // MEC025, table 7.5.2-3 - PIC_RNIS_NOTIFICATIONS // MEC025, table 7.5.2-4 - - PIC_APP_LCM // MEC032, table xxxxx - PIC_APP_LCM_MANAGEMENT // MEC032, table xxxxy - PIC_APP_LCM_NOTIFICATIONS // MEC032, table xxxxz - PIC_AMS -- GitLab From 82da073d0b91d281d0a6f98600f43d60926ad8ca Mon Sep 17 00:00:00 2001 From: Elian Kraja Date: Wed, 12 Jun 2019 17:32:26 +0200 Subject: [PATCH 18/19] LCM Notification change --- .../AppInstanceMgmt_notifications.tplan2 | 66 ++++++------------- Test Purposes/mec-common.tplan2 | 1 + 2 files changed, 20 insertions(+), 47 deletions(-) diff --git a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 index 7510728..fa360eb 100644 --- a/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 +++ b/Test Purposes/MEO/Mm1/AppLcmMgmt/AppInstanceMgmt_notifications.tplan2 @@ -17,73 +17,45 @@ Package MEC010_2_MEO_MM1_LCM_NOTIF { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEO_MM1_LCM_NOTIF_001_v1" + TP Id "TP_MEC_MEO_LCM_014_OK" Test objective - "Check that the MEO sends an AppLcmOpOccNotification to the subscriber when the App Instance is enabled" + "Check that the MEO 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.17.2-1", // AppLcmOpOccSubscriptionLinkList - "ETSI GS MEC 010-2 2.0.9, table 6.2.2.4.2-1" // AppInstanceInfo + "ETSI GS MEC 010-2 2.0.9, table 6.2.2.12.2-1" // AppInstNotification + Config Id Config_MEC_3 PICS Selection PIC_APP_LCM_NOTIFICATIONS Initial conditions with { - the IUT entity having a App_Instance containing - appInstanceId set to APP_INSTANCE_ID, - appDId set to APP_D_ID, - appProvider set to APP_PROVIDER, - appName set to APP_NAME, - appSoftVersion set to APP_SOFT_VERSION, - appDVersion set to APP_D_VEERSION, - appPkgId set to APP_PKG_ID, - instantiationState set to NOT_INSTANTIATED, - _links containing - self set to any_value - ; - ; - and the IUT entity having a App_Package_subscription containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "AppLcmOpOccStateChangeSubscription", - callbackUri set to URI, - notificationType set to "NOT_INSTANTIATED", - _links containing - self set to "/alcmi/v1/subscriptions/{subscriptionId}" - ; + the IUT entity having a App_Instance_Subscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, + callbackUri indicating value CALLBACK_URI, + attribute _links ; } Expected behaviour ensure that { when { - the IUT entity receives a vPOST containing - notificationId set to any_value, - notificationType set to "STARTING", - subscriptionId set to SUBSCRIPTION_ID, - timeStamp set to TIMESTAMP, - appLcmOpOccId set to APP_LCM_OP_OCC_ID, - appInstanceId set to APP_INSTANCE_ID, - AppLcmOpOccSubscriptionLinkList containing - _links containing - self set to "/alcmi/v1/subscriptions/{subscriptionId}", - href set to "/alcmi/v1/app_instances/{appInstanceId}", - rel set to "STARTING" - ; - ; - ; - from the MEC_OSS entity - } + the IUT entity generates a application_lcm_change_event containing + notificationId set to NOTIFICATION_ID; + } then { the IUT entity sends a vPOST containing uri indicating value CALLBACK_URI, body containing - AppLcmOpOccNotification containing - notificationId indicating value any_value, - notificationType indicating value "STARTING", - subscriptionId indicating value SUBSCRIPTION_ID, - appInstanceId set to APP_INSTANCE_ID + Notification containing + notificationId set to NOTIFICATION_ID, + notificationType set to NOTIFICATION_TYPE, + subscriptionId set to any_value, + timeStamp set to any_value, + appInstanceId set to any_value, + appDId set to any_value, + attribute _links ; ; ; to the MEC_SUB entity diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 0bbdf79..3a7bf6b 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -71,6 +71,7 @@ Package MEC_Common { - S1_bearer_event - nr_measurement_repost_event - expiry_notification_event + - application_lcm_change_event ; } -- GitLab From 0026de75cbb28f9253bc9278358c486c0f1f5514 Mon Sep 17 00:00:00 2001 From: Giada Landi Date: Wed, 12 Jun 2019 17:42:01 +0200 Subject: [PATCH 19/19] Update RNIS notifications --- .../SRV/Mp1/Rnis/RnisNotifications.tplan2 | 94 +++++++++---------- 1 file changed, 46 insertions(+), 48 deletions(-) diff --git a/Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 b/Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 index 9d33204..f2c52a4 100644 --- a/Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 +++ b/Test Purposes/SRV/Mp1/Rnis/RnisNotifications.tplan2 @@ -18,7 +18,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_01" + TP Id "TP_MEC_SRV_RNIS_001_OK" Test objective "Check that the RNIS service sends an RNIS notification about cell change @@ -27,7 +27,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -52,7 +52,10 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { uri indicating value CALLBACK_URI, body containing notificationType indicating value "CellChangeNotification", - associateId set to ASSOCIATE_ID + associateId set to ASSOCIATE_ID, + srcEcgi set to any_value, + trgEcgi set to any_value, + hoStatus set to any_value ; ; to the MEC_SUB entity } @@ -61,7 +64,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_02" + TP Id "TP_MEC_SRV_RNIS_002_OK" Test objective "Check that the RNIS service sends an RNIS notification about RAB establishment @@ -70,7 +73,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.3", "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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -85,8 +88,6 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a rab_establish_event containing erabQosParameters containing qci set to QCI; @@ -97,8 +98,11 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { uri indicating value CALLBACK_URI, body containing notificationType indicating value "RabEstNotification", + ecgi set to any_value, + erabId set to any_value, erabQosParameters containing - qci set to QCI + qci set to QCI, + attribute qosInformation ; ; ; to the MEC_SUB entity @@ -108,7 +112,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_03" + TP Id "TP_MEC_SRV_RNIS_003_OK" Test objective "Check that the RNIS service sends an RNIS notification about RAB modification @@ -117,7 +121,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -132,8 +136,6 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a rab_modification_event containing erabId set to E_RAB_ID; } @@ -142,6 +144,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { uri indicating value CALLBACK_URI, body containing notificationType indicating value "RabModNotification", + ecgi set to any_value, erabId set to E_RAB_ID ; ; to the MEC_SUB entity @@ -151,7 +154,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_04" + TP Id "TP_MEC_SRV_RNIS_004_OK" Test objective "Check that the RNIS service sends an RNIS notification about RAB release @@ -160,7 +163,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -175,8 +178,6 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a rab_release_event containing erabId set to E_RAB_ID; } @@ -185,6 +186,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { uri indicating value CALLBACK_URI, body containing notificationType indicating value "RabRelNotification", + ecgi set to any_value, erabReleaseInfo containing erabId set to E_RAB_ID ; @@ -195,7 +197,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { } Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_05" + TP Id "TP_MEC_SRV_RNIS_005_OK" Test objective "Check that the RNIS service sends an RNIS notification about UE measurement report @@ -204,7 +206,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.6", "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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -219,8 +221,6 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a measurement_repost_event containing ecgi set to ECGI; } @@ -229,7 +229,10 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { uri indicating value CALLBACK_URI, body containing notificationType indicating value "MeasRepUeNotification", - ecgi set to ECGI + ecgi set to ECGI, + rsrp set to any_value, + rsrq set to any_value, + trigger set to any_value ; ; to the MEC_SUB entity @@ -238,7 +241,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { } Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_06" + TP Id "TP_MEC_SRV_RNIS_006_OK" Test objective "Check that the RNIS service sends an RNIS notification about UE timing advance @@ -247,7 +250,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.7", "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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -262,8 +265,6 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a timing_advance_event containing ecgi set to ECGI; } @@ -272,7 +273,8 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { uri indicating value CALLBACK_URI, body containing notificationType indicating value "MeasTaNotification", - ecgi set to ECGI + ecgi set to ECGI, + timingAdvance set to any_value ; ; to the MEC_SUB entity @@ -282,7 +284,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_07" + TP Id "TP_MEC_SRV_RNIS_007_OK" Test objective "Check that the RNIS service sends an RNIS notification about UE carrier aggregation reconfiguration @@ -291,7 +293,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.8", "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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -306,8 +308,6 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a carrier_aggregation_reconfiguration_event containing associateId set to ASSOCIATE_ID; } @@ -316,6 +316,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { uri indicating value CALLBACK_URI, body containing notificationType indicating value "CaReConfNotification", + ecgi set to any_value, associateId set to ASSOCIATE_ID ; ; to the MEC_SUB entity @@ -326,7 +327,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_08" + TP Id "TP_MEC_SRV_RNIS_008_OK" Test objective "Check that the RNIS service sends an RNIS notification about S1-U bearer @@ -335,7 +336,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.10", "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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -350,8 +351,6 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a S1_bearer_event containing associateId set to ASSOCIATE_ID; } @@ -360,8 +359,11 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { uri indicating value CALLBACK_URI, body containing notificationType indicating value "S1BearerNotification", + s1Event set to any_value, s1UeInfo containing - associateId set to ASSOCIATE_ID + associateId set to ASSOCIATE_ID, + ecgi set to any_value, + s1BearerInfo set to any_value ; ; ; to the MEC_SUB entity @@ -370,7 +372,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { } Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_09" + TP Id "TP_MEC_SRV_RNIS_009_OK" Test objective "Check that the RNIS service sends an RNIS notification about 5G NR UE measurement report @@ -379,7 +381,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.11", "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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -392,8 +394,6 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a nr_measurement_repost_event containing associateId set to ASSOCIATE_ID; //TBD - how to link this with the filter criteria } @@ -401,7 +401,9 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { the IUT entity sends a vPOST containing uri indicating value CALLBACK_URI, body containing - notificationType indicating value "NrMeasRepUeNotification" + notificationType indicating value "NrMeasRepUeNotification", + trigger set to any_value, + associateId set to ASSOCIATE_ID ; ; to the MEC_SUB entity } @@ -409,7 +411,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { } Test Purpose { - TP Id "TP_MEC_APP_MP1_RNI_NOTIFICATION_10" + TP Id "TP_MEC_SRV_RNIS_010_OK" Test objective "Check that the RNIS service sends an RNIS notification on subscription expiration @@ -418,7 +420,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Reference "ETSI GS MEC 012 2.0.4, clause 6.4.9", "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_NOTIFICATIONS + PICS Selection PIC_RNIS_NOTIFICATIONS Initial conditions with { the IUT entity having a RNIS_subscription containing @@ -427,9 +429,7 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { _links containing self set to SUBSCRIPTION_HREF_VALUE ;, - s1BearerSubscriptionCriteria containing - associateId set to ASSOCIATE_ID - ;, + subscriptionId set to SUBSCRIPTION_ID, expiryDeadline set to EXPIRY_DEADLINE ; } @@ -437,10 +437,8 @@ Package MEC012_APP_MP1_RNI_NOTIF_BV { Expected behaviour ensure that { when { - // TODO: Check whether this could be triggered by the tester of document otherwise - // with a reference describing this type of events the IUT entity generates a expiry_notification_event containing - associateId set to ASSOCIATE_ID; + subscriptionId set to SUBSCRIPTION_ID; } then { the IUT entity sends a vPOST containing -- GitLab