diff --git a/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 b/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 deleted file mode 100644 index 01902686dd801915e6d5605c07b39f42a513ef9f..0000000000000000000000000000000000000000 --- a/Test Purposes/MEO/APPCTX/SysUeAppsContext.tplan2 +++ /dev/null @@ -1,603 +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 sys_mx2_ue_apps_context { - - import all from MEC_Common; - - - /* - * UE Application Contexts (APPCTX) - */ - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_001_OK" - - Test objective - "Check that the IUT acknowledges the creation of the application context - when requested by an UE Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 016, clause 5.1.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mx2/v2/app_contexts", - body containing - AppContext containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - AppContext containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_002_OK" - - Test objective - "Check that the IUT updates the application callback reference - when commanded by an UE Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - body containing - AppContext containing - callbackReference indicating value some_uri - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_003_OK" - - Test objective - "Check that the IUT deletes the application context - when commanded by an UE Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 016, clause 5.1.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "mx2/v2/app_contexts", - body containing - AppContext containing - appInfo containing - // Wrong parameter name should trigger an error response. - app set to APP_NAME - ; - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_002_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 016, clause 5.1.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a iPOST containing - uri indicating value "mx2/v2/app_contexts", - body containing - AppContext containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_003_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 016, clause 5.1.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "mx2/v2/app_contexts", - body containing - AppContext containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_004_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - body containing - AppContext containing - // A parameter not legible for update should trigger an error response. - associateUeAppId indicating value some_value - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_005_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a iPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}", - body containing - AppContext containing - callbackReference indicating value some_uri - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_006_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - body containing - AppContext containing - callbackReference indicating value some_uri - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_007_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity "not" having a appContext containing - contextId indicating value NON_EXISTENT_CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}", - body containing - AppContext containing - callbackReference indicating value some_uri - ; - ; - ; - from the UE_APP entity - } - then { - // MEC 017, clause 7.5.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_008_BI" - - Test objective - "Check that the IUT responds with an error when - a non-authenticated request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a iDELETE containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "401 Unauthorized" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_009_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity having a appContext containing - contextId indicating value CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a DELETE containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the UE_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SYS_APPCTX_010_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 016 V2.1.1, clause 7.5.3.5" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the UE_APP entity "not" having a appContext containing - contextId indicating value NON_EXISTENT_CONTEXT_ID - ; - } - - // MEC 016, clause 5.1.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}" - ; - from the UE_APP entity - } - then { - // MEC 016, clause 7.5.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the UE_APP entity - } - } - } -} diff --git a/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 index d4b36013a9557d7c000885068c57e858e4ed67b7..d69be8dac196478ece8e4c623f9297dfdc0e799d 100644 --- a/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 @@ -86,72 +86,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 - - 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.10, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.2.2-1" //AppPkg - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a ntPOST 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 "401 Unauthorized" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - 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 creating a new App Package with wrong credentials" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - 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 "401 Unauthorized" - ; to the MEC_OSS entity - } - } - } -*/ - + Test Purpose { TP Id "TP_MEC_MEO_PKGM_003_NF" //Negative case 404 Not found @@ -185,121 +120,50 @@ 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 - - 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.10, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a ntGET 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 "401 Unauthorized" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - 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 - a request for an existing App Package with wrong credentials" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a iGET 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 "401 Unauthorized" - ; to the MEC_OSS entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002b_BO_BI_001" //Negative case 401 Unauthorized - no token + 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 - a request for an existing App Package without credentials" + a request for deleting an App Package referred with a wrong ID" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.2", + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.4", "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID + 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 ntGET containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}" + the IUT entity receives a vDELETE 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 "401 Unauthorized" + status set to "404 Not Found" ; to the MEC_OSS entity } } } Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_002b_BO_BI_002" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEO_PKGM_005_BR" Test objective - "Check that MEO responds with an error when it receives - a request for creating a new App Package with wrong credentials" + "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.10, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.3" + Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT + PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { the IUT entity having a App_Package containing @@ -310,110 +174,61 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a iGET containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}" - ; from the MEC_OSS entity + the IUT entity receives a vPUT containing + 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 { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_OSS entity + status set to "400 Bad Request"; + to the MEC_OSS entity } - } - } - - - Test Purpose { - 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 - a request to delete an existing App Package without credentials" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.4", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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_003_BO_BI_002" //Negative case 401 Unauthorized - wrong token + 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 - a request for creating a new App Package with wrong credentials" + a request for updating an App Package referred with a wrong ID" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.2", + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.4", "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT 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 ; } 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 vPUT containing + 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 "401 Unauthorized" + status set to "404 Not Found" ; to the MEC_OSS entity } } } -*/ - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_004_NF" //Negative case 404 Not found + 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 for deleting an App Package referred with a wrong ID" + a request to retrieve an application descriptor referred with a wrong app package ID" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.4", + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.6.3.2", "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT @@ -427,8 +242,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { Expected behaviour ensure that { when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" //wrong AppPackageID + 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 { @@ -438,636 +253,81 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI { } } } - + Test Purpose { - TP Id "TP_MEC_MEO_PKGM_005_BR" + TP Id "TP_MEC_MEO_PKGM_007_BR" Test objective - "Check that MEO sends an error when it receives a malformed request to modify - the operational state of an application package" + "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.10, clause 7.3.2.3.3" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.1" Config Id Config_MEC_2 PICS Selection PIC_APP_PACKAGE_MANAGEMENT Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; + the IUT entity being_in idle_state } Expected behaviour 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 "DISABL"; //it should be DISABLE - from the MEC_OSS entity + 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"; + status set to "400 Bad Request" + ; to the MEC_OSS entity } } } - -/* + Test Purpose { - TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_002" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEO_PKGM_009_NF" Test objective - "Check that MEO responds with an error when it receives - a request to modify an existing App Package without credentials" + "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.10, clause 7.3.2.3.3", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.4.3.2" + Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT + 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 Subscription containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_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 + the IUT entity receives a vGET containing + uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_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 + status set to "404 Not Found" + ; + to the MEC_OSS entity } - } + } } - - Test Purpose { - 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 - a request for creating a new App Package with wrong credentials" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.2.3.3", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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_PKGM_005_NF" //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.10, clause 7.3.2.3.4", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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}", //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.10, clause 7.3.6.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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 { - 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_005_BO_BI_001" - - Test objective - "Check that MEO fails to retrieve the AppD from an App Package when requested" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.6.3.2" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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_005_BO_BI_002" //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.10, clause 7.3.6.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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_002_BO_BI_001" - - Test objective - "Check that MEO service fails retrieving Subscriptions on AppPackages when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.2" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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_002_BO_BI_002" - - Test objective - "Check that MEO service fails retrieving Subscriptions on AppPackages when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.3.3.3.2" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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_PKGM_007_BR" - - Test objective - "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.10, 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 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_001_BO_BI_002" - - 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.10, clause 7.3.3.3.1" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - - } - - 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_001_BO_BI_003" - - 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.10, clause 7.3.3.3.1" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - - } - - 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_PKGM_007_NF" - - Test objective - "Check that MEO service retrieving a specific subscription on AppPackages when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, 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 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_004_BO_BI_002" - - 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.10, 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 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_PKGM_009_NF" - - Test objective - "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.10, clause 7.3.4.3.2" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - 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 vGET containing - uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_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_003_BO_BI_001" - - 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.10, 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 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_003_BO_BI_002" - - 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.10, 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 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_PKGM_010_NF" diff --git a/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 index b1198660e494756bd04f7e25f584353b13feab36..1b2f056681d15a2d368adf8e79f1e94b34b672fc 100644 --- a/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 @@ -87,362 +87,6 @@ Package MEC010_2_MEPM_MM3_PKGM_BI { } -/* - Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_002a_BO_BI_002" //Negative case 401 Unauthorized - no token - - Test objective - "Check that MEPM responds with an error when it receives - a request for an existing App Package without credentials" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.1.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity 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_002a_BO_BI_003" //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.10, clause 7.4.1.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity 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_002b_BO_BI_002" //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.10, clause 7.4.2.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID - ; - } - - 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_002b_BO_BI_003" //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.10, clause 7.4.2.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID - ; - } - - 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_005_BO_BI_001" - - Test objective - "Check that MEPM fails to retrieve the AppD from an App Package when requested" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity 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_005_BO_BI_002" //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.10, clause 7.4.4.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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_006_BO_BI_001" - - 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.10, clause 7.4.3.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - } - - 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_006_BO_BI_002" //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.10, clause 7.4.3.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - 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_002_BO_BI_001" - - Test objective - "Check that MEPM service fails retrieving Subscriptions on AppPackages when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity 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_002_BO_BI_002" - - Test objective - "Check that MEPM service fails retrieving Subscriptions on AppPackages when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity 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_PKGM_003_NF" //Negative case 404 Not found @@ -550,165 +194,6 @@ Package MEC010_2_MEPM_MM3_PKGM_BI { } } - /* - Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001_BO_BI_002" - - Test objective - "Check that MEPM service fails creating new Subscription on AppPackages when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.1" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - - } - - 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_001_BO_BI_003" - - 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.10, clause 7.4.5.3.1" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - - } - - 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_004_BO_BI_001" - - 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.10, clause 7.4.6.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - 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_004_BO_BI_002" - - 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.10, clause 7.4.6.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - 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_PKGM_007_NF" @@ -744,82 +229,6 @@ Package MEC010_2_MEPM_MM3_PKGM_BI { } } } - - -/* - Test Purpose { - TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_003_BO_BI_001" - - Test objective - "Check that MEPM service fails deleting a specific subscription on AppPackages when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.3.4" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - 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_003_BO_BI_002" - - 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.10, clause 7.4.6.3.4" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - 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_PKGM_008_NF" diff --git a/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 b/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 index 3529a55a01393c9a5f446fa298343e4c00ced839..3d36cb637ef64f3de8555c9891723d93cd820b4b 100644 --- a/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 +++ b/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 @@ -55,232 +55,199 @@ Package MEC010_2_APP_INSTANCE_LCM_BI { } } -/* + Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_001_BO_BI_002" // No token + TP Id "TP_MEC_MEX_LCM_003_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEC API providerfails on creation of a new App Instance when requested using no token" + "Check that MEC API providerfails on retrieving an App Instance when requested using wrong appInstanceId" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.1", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.3.2-1", //CreateAppInstanceRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo Config Id Config_MEC_6 - 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 "not" having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; } 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 - ; - ; + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" + status set to "404 Not Found" ; to the MEC_CONSUMER entity } } - } + } + + Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_001_BO_BI_003" // Wrong token + TP Id "TP_MEC_MEX_LCM_004_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEC API providerfails on creation of a new App Instance when requested using wrong token" + "Check that MEC API providerfails on deletion of an App Instance when requested using wrong appInstanceId" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.1", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.3.2-1", //CreateAppInstanceRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo Config Id Config_MEC_6 - 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 "not" having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_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", - body containing - CreateAppInstanceRequest containing - appDId set to APP_D_ID - ; - ; + the IUT entity receives a vDELETE containing + uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" + status set to "404 Not Found" ; to the MEC_CONSUMER entity } } - } - - + } Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_002_BO_BI_001" // No token + TP Id "TP_MEC_MEX_LCM_005_BR" Test objective - "Check that MEC API providerfails on retrieving the list of App Instances when requested using no token" + "Check that MEC API providerservice fails to instantiate an App Instance when it receives a malformed request" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest Config Id Config_MEC_6 - 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, + instantiationState indicating value NOT_INSTANTIATED + ; } Expected behaviour ensure that { when { - the IUT entity receives a GET containing - uri indicating value "/alcmi/v1/app_instances", - "not" authorization //Token is mandatory + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/instantiate", + body containing + InstantiateAppRequest containing + appERRORId set to APP_INSTANCE_ID //wrong name of the parameter + ; + ; ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" + status set to "400 Bad request" ; to the MEC_CONSUMER entity } } - } - - Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_002_BO_BI_002" // Wrong token - - Test objective - "Check that MEC API providerfails on retrieving the list of App Instances when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_003_BO_BI_001" // No token + TP Id "TP_MEC_MEX_LCM_005_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEC API providerfails on retrieving an App Instance when requested using no token" + "Check that MEC API providerservice fails to instantiate an App Instance when it receives a request + related to a not existing App Instance" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest Config Id Config_MEC_6 - 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 GET containing - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}", - "not" authorization //Token is mandatory + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/instantiate" ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" + status set to "404 Not Found" ; to the MEC_CONSUMER entity } } - } - + } + Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_003_BO_BI_002" // Wrong token + TP Id "TP_MEC_MEX_LCM_006_BR" Test objective - "Check that MEC API providerfails on retrieving an App Instance when requested using wrong token" + "Check that MEC API providerservice fails to terminate an App Instance when it receives a malformed request" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest Config Id Config_MEC_6 - 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; + 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}" + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/terminate", + body containing + TerminateAppRequest containing + terminationERRORType set to GRACEFULL //wrong parameter + ; + ; ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" + status set to "400 Bad request" ; to the MEC_CONSUMER entity } } } - * */ - Test Purpose { - TP Id "TP_MEC_MEX_LCM_003_NF" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEX_LCM_006_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEC API providerfails on retrieving an App Instance when requested using wrong appInstanceId" + "Check that MEC API providerservice fails to terminate an App Instance when it receives a request + related to a not existing App Instance" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest Config Id Config_MEC_6 @@ -294,8 +261,8 @@ Package MEC010_2_APP_INSTANCE_LCM_BI { Expected behaviour ensure that { when { - the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/terminate" ; from the MEC_CONSUMER entity } then { @@ -304,103 +271,105 @@ Package MEC010_2_APP_INSTANCE_LCM_BI { ; to the MEC_CONSUMER entity } } - } - -/* + } + Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_004_BO_BI_001" // No token + TP Id "TP_MEC_MEX_LCM_007_BR" Test objective - "Check that MEC API providerfails on deletion of an App Instance when requested using no token" + "Check that MEC API providerservice fails to operate on an App Instance when it receives a malformed request" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest Config Id Config_MEC_6 - 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; + 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 + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/operate", + body containing + OperateAppRequest containing + changeERRORStateTo set to any_value //wrong parameter + ; + ; ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" + status set to "400 Bad request" ; to the MEC_CONSUMER entity } } - } - - Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_004_BO_BI_002" // Wrong token + } + + Test Purpose { + TP Id "TP_MEC_MEX_LCM_007_NF" // Wrong APP_INSTANCE_ID Test objective - "Check that MEC API providerfails on deletion of an App Instance when requested using wrong token" + "Check that MEC API providerservice fails to change the status of an App Instance when it receives a request + related to a not existing App Instance" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest Config Id Config_MEC_6 - 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 HttpMsg containing - headers set to vHeadersInvalidToken, //wrong token - uri indicating value "/alcmi/v1/app_instances/{appInstanceId}" + the IUT entity receives a vPOST containing + uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/operate" ; from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" + status set to "404 Not Found" ; to the MEC_CONSUMER entity } } - } - * - * - */ + } Test Purpose { - TP Id "TP_MEC_MEX_LCM_004_NF" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEX_LCM_009_NF" Test objective - "Check that MEC API providerfails on deletion of an App Instance when requested using wrong appInstanceId" + "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Operation Occurrency" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.0.10, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc Config Id Config_MEC_6 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; + the IUT entity "not" having a App_Lcm_Op_Occ containing + appLcmOpOccId indicating value NON_EXISTENT_APP_LCM_OP_OCC_ID + ; } Expected behaviour ensure that { when { - the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/app_lcm_op_occs/{NON_EXISTENT_APP_LCM_OP_OCC_ID}" ; from the MEC_CONSUMER entity } then { @@ -409,73 +378,72 @@ Package MEC010_2_APP_INSTANCE_LCM_BI { ; to the MEC_CONSUMER entity } } - } + } + - Test Purpose { - TP Id "TP_MEC_MEX_LCM_005_BR" + TP Id "TP_MEC_MEX_LCM_010_BR" Test objective - "Check that MEC API providerservice fails to instantiate an App Instance when it receives a malformed request" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest + "Check that MEC API providerservice sends an error when it receives a malformed request to create a LCM Subscription" + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.1", + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.13.2-1", // AppInstSubscriptionRequest + "ETSI GS MEC 010-2 2.0.10, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo + + Config Id Config_MEC_6 - - PICS Selection 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 NOT_INSTANTIATED - ; + 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/{APP_INSTANCE_ID}/instantiate", + uri indicating value "/alcmi/v1/subscriptions" body containing - InstantiateAppRequest containing - appERRORId set to APP_INSTANCE_ID //wrong name of the parameter + AppInstSubscriptionRequest containing + callbackERRORUri set to CALLBACK_URI //wrong parameter ; ; - ; from the MEC_CONSUMER entity + ; + from the MEC_CONSUMER entity } then { the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad request" - ; to the MEC_CONSUMER entity + status set to "400 Bad Request" + ; + to the MEC_CONSUMER entity } - } - } + } + } Test Purpose { - TP Id "TP_MEC_MEX_LCM_005_NF" // Wrong APP_INSTANCE_ID + TP Id "TP_MEC_MEX_LCM_012_NF" Test objective - "Check that MEC API providerservice fails to instantiate an App Instance when it receives a request - related to a not existing App Instance" + "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Subscription" - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" Config Id Config_MEC_6 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; + the IUT entity "not" having a App_Instance_Subscription containing + subscriptionId set to NON_EXISTENT_SUBSCRIPTION_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" + the IUT entity receives a vGET containing + uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEC_CONSUMER entity } then { @@ -486,960 +454,6 @@ Package MEC010_2_APP_INSTANCE_LCM_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_005_BO_BI_002" // No token - - Test objective - "Check that MEC API providerfails on instantiating an App Instance when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_005_BO_BI_003" // Wrong token - - Test objective - "Check that MEC API providerfails on instantiation of an App Instance when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.7.2-1" // InstantiateAppRequest - - Config Id Config_MEC_6 - - 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_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_MEX_LCM_006_BR" - - Test objective - "Check that MEC API providerservice fails to terminate an App Instance when it receives a malformed request" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - - Config Id Config_MEC_6 - - 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 - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/terminate", - body containing - TerminateAppRequest containing - terminationERRORType set to GRACEFULL //wrong parameter - ; - ; - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad request" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_006_NF" // Wrong APP_INSTANCE_ID - - Test objective - "Check that MEC API providerservice fails to terminate an App Instance when it receives a request - related to a not existing App Instance" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - - Config Id Config_MEC_6 - - 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_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - -/* - Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_006_BO_BI_002" // No token - - Test objective - "Check that MEC API providerfails to terminate an App Instance when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_006_BO_BI_003" // Wrong token - - Test objective - "Check that MEC API providerfails to terminate an App Instance when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.9.2-1" // TerminateAppRequest - - Config Id Config_MEC_6 - - 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_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_MEX_LCM_007_BR" - - Test objective - "Check that MEC API providerservice fails to operate on an App Instance when it receives a malformed request" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - - Config Id Config_MEC_6 - - PICS Selection 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 vPOST containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/operate", - body containing - OperateAppRequest containing - changeERRORStateTo set to any_value //wrong parameter - ; - ; - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad request" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_007_NF" // Wrong APP_INSTANCE_ID - - Test objective - "Check that MEC API providerservice fails to change the status of an App Instance when it receives a request - related to a not existing App Instance" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - - Config Id Config_MEC_6 - - 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_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - -/* - Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_007_BO_BI_002" // No token - - Test objective - "Check that MEC API providerfails to terminate an App Instance when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_007_BO_BI_003" // Wrong token - - Test objective - "Check that MEC API providerfails to terminate an App Instance when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.8.2-1" // OperateAppRequest - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_008_BO_BI_001" - - Test objective - "Check that MEC API providerservice failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.9.1.3.2", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_008_BO_BI_002" - - Test objective - "Check that MEC API providerservice failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.9.1.3.2", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_009_BO_BI_001a" - - Test objective - "Check that MEC API providerservice failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_009_BO_BI_001b" - - Test objective - "Check that MEC API providerservice failing to retrieve info from LCM Operation Occurrencies on an App Instance when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - - Config Id Config_MEC_6 - - 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_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_MEX_LCM_009_NF" - - Test objective - "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Operation Occurrency" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.14.2-1" // AppLcmOpOcc - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Lcm_Op_Occ containing - appLcmOpOccId indicating value NON_EXISTENT_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/{NON_EXISTENT_APP_LCM_OP_OCC_ID}" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_010_BR" - - Test objective - "Check that MEC API providerservice sends an error when it receives a malformed request to create a LCM Subscription" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.1", - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.13.2-1", // AppInstSubscriptionRequest - "ETSI GS MEC 010-2 2.0.10, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo - - - Config Id Config_MEC_6 - PICS Selection 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 //wrong parameter - ; - ; - ; - from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; - to the MEC_CONSUMER entity - } - } - } - - - /* - - Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_001a_BO_BI_002" - - Test objective - "Check that MEC API providerservice fails to send a LCM Subscription when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.1" - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_001b_BO_BI_002" - - Test objective - "Check that MEC API providerservice fails to send a LCM Subscription when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.10.1.3.2" - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_SUB_002_BO_BI_001" - - Test objective - "Check that MEC API providerservice fails to retrieve the list of LCM Subscriptions when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_SUB_002_BO_BI_002" - - Test objective - "Check that MEC API providerservice fails to retrieve the list of LCM Subscriptions when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_SUB_003a_BO_BI_001" - - Test objective - "Check that MEC API providerservice fails to retrieve a LCM Subscription when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_SUB_003b_BO_BI_001" - - Test objective - "Check that MEC API providerservice fails to retrieve a LCM Subscription when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - 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_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_MEX_LCM_012_NF" - - Test objective - "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Subscription" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Instance_Subscription containing - subscriptionId set to NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - /* - Test Purpose { - TP Id "TP_MEC_MEX_MM1_LCM_SUB_004_BO_BI_001" - - Test objective - "Check that MEC API providerservice fails to delete a LCM Subscription when requested using no token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - 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_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_MEX_MM1_LCM_SUB_004_BO_BI_002" - - Test objective - "Check that MEC API providerservice fails to delete a LCM Subscription when requested using wrong token" - - Reference "ETSI GS MEC 010-2 2.0.10, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - 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_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_MEX_LCM_013_NF" diff --git a/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 b/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 index 50c9c4c8b4a462bed9e57f3e58a8bc6cf083eb1c..2b4ac39ab93365e1fbe8cefed395690fbb3ef47b 100644 --- a/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 +++ b/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 @@ -51,73 +51,6 @@ Package MEC021_SRV_AMS_BO_BI { } } } -/* - Test Purpose { - TP Id "TP_MEC_AMS_01_NEG_B" // Negative test: 401 Unauthorized (No token) - - Test objective - "Check that the AMS service returns an error when receives a query about a registered application mobility service without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AppMobilityServiceInfo containing - appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/amsi/v1/appMobilityServices", - "not" authorization - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_01_NEG_C" // Negative test: 401 Unauthorized (Wrong token) - - Test objective - "Check that the AMS service returns an error when receives a query about a registered application mobility service with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AppMobilityServiceInfo containing - appMobilityServiceId indicating value APP_MOBILITY_SERVICE_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/amsi/v1/appMobilityServices", - headers set to vHeadersInvalidToken - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - */ Test Purpose { TP Id "TP_MEC_SRV_AMS_002_BR" // Negative test: 400 Bad request @@ -156,69 +89,6 @@ Package MEC021_SRV_AMS_BO_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_AMS_02_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives a request to create a new application mobility service without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/amsi/v1/appMobilityServices", - "not" authorization - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_02_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives a request to create a new application mobility service with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.3.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/amsi/v1/appMobilityServices", - headers set to vHeadersInvalidToken - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } -*/ Test Purpose { TP Id "TP_MEC_SRV_AMS_003_BR" // Negative test: 400 Bad request @@ -257,79 +127,6 @@ Package MEC021_SRV_AMS_BO_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_AMS_03_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives an information query about the available subscriptions without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/amsi/v1/subscriptions/", - "not" authorization - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_03_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives an information query about the available subscriptions with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/amsi/v1/subscriptions/", - headers set to vHeadersInvalidToken - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } -*/ Test Purpose { TP Id "TP_MEC_SRV_AMS_004_BR" // Negative test: 400 Bad request @@ -369,145 +166,6 @@ Package MEC021_SRV_AMS_BO_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_AMS_04_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives a request to create a notification subscription without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/amsi/v1/subscriptions/", - "not" authorization - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_04_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives a request to create a notification subscription with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.6.3.4" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/amsi/v1/subscriptions/", - headers set to vHeadersInvalidToken - ; from the AMS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the AMS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_AMS_05_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service returns an error when receives a query about a specific subscription without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value SUBSCRIPTION_HREF_VALUE - "not" authorization - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_05_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service returns an error when receives a query about a specific subscription with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.1" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - headers set to vHeadersInvalidToken - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - */ - Test Purpose { TP Id "TP_MEC_SRV_AMS_005_NF" // Negative test: 404 Not Found @@ -542,81 +200,6 @@ Package MEC021_SRV_AMS_BO_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_AMS_06_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives a delete request for a given subscription without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.5" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a DELETE containing - uri indicating value SUBSCRIPTION_HREF_VALUE - "not" authorization - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_AMS_06_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives a delete request for a given subscription with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.5" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a DELETE containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - headers set to vHeadersInvalidToken - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } -*/ Test Purpose { TP Id "TP_MEC_SRV_AMS_006_NF" // Negative test: 404 Not Found @@ -695,81 +278,7 @@ Package MEC021_SRV_AMS_BO_BI { } } } -/* - Test Purpose { - TP Id "TP_MEC_AMS_07_NEG_B" // Negative test: 401 Unauthorized - no token - - Test objective - "Check that the AMS service sends an error when it receives a modify request for a given subscription without token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - "not" authorization - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - Test Purpose { - TP Id "TP_MEC_AMS_07_NEG_C" // Negative test: 401 Unauthorized - wrong token - - Test objective - "Check that the AMS service sends an error when it receives a modify request for a given subscription with a wrong token" - - Reference "ETSI GS MEC 021 2.0.8, clause 8.7.3.2" - - Config Id Config_MEC_1 - PICS Selection PIC_AMS - - Initial conditions with { - the IUT entity having a AMS_subscription containing - _link containing - self indicating value SUBSCRIPTION_HREF_VALUE - ;, - callbackReference indicating value CALLBACK_REFERENCE, - subscriptionType indicating value "MobilityProcedureSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value SUBSCRIPTION_HREF_VALUE, - headers set to vHeadersInvalidToken - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } -*/ Test Purpose { TP Id "TP_MEC_SRV_AMS_007_NF" // Negative test: 404 Not found diff --git a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 index 0e8cbbc1ac9d17d9d6afe5f1409d1f9638dd54e1..35e145a40e38c914c785431e2b6e387e9b663e0a 100644 --- a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 @@ -52,210 +52,6 @@ Package MEC012_SRV_RNIS_SUBS_BI { } } } - - -/* - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_B" // Negative test: Trying to get a 401 Unauthorized (Client did not submit credentials) - - Test objective - "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type without submitting credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/subscriptions", - query_parameters containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ;, - "not" authorization // Token not provided - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_C" // Negative test: Trying to get a 401 Unauthorized (Invalid token) - - Test objective - "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type submitting a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/subscriptions", - headers set to vHeadersInvalidToken, // Invalid token - query_parameters containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - -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 - } - } - } - - -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. - - Test objective - "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions" - - Reference "ETSI GS MEC 012 1.1.1, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/subscriptions", - headers set to vHeadersAcceptKO, - query_parameters containing - subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, - subscriptionType indicating value "CellChangeSubscription" - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to HTTP_406_NOT_ACCEPTABLE, - body containing - problemDetails containing - status set to 406, - detail set to any_value - ; - ; - ; to the MEC_SUB entity - } - } - } - - */ Test Purpose { TP Id "TP_MEC_SRV_RNIS_012_BR" // 400 Bad Request @@ -295,184 +91,4 @@ Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual res } } -/* - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_B" // 401 Unauthorized (No Token) - - Test objective - "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription without credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/rni/v1/subscriptions", - "not" authorized, - body containing - CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - appInstanceId set to APP_INS_ID, - associateId set to ASSOCIATE_ID_LIST, - ecgi set to ECGI, - hoStatus set to HO_STATUS - ;, - expiryDeadline set to EXPIRY_DEADLINE - ; - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_C" // 401 Unauthorized (Wrong token) - - Test objective - "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/rni/v1/subscriptions", - headers set to vHeadersInvalidToken, // wrong token - body containing - CellChangeSubscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - filterCriteriaAssocHo containing - appInstanceId set to APP_INS_ID, - associateId set to ASSOCIATE_ID_LIST, - ecgi set to ECGI, - hoStatus set to HO_STATUS - ;, - expiryDeadline set to EXPIRY_DEADLINE - ; - ; - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - -Removed since not related to an individual resource - Test Purpose { - 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 - } - } - } - -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/SRV/RNIS/RnisQuery_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 index f07580444afd8faa8776c5e8fc8b1c0eed27e45d..de88d2ae9e973c2364252e4ca68e9ac4a9860406 100644 --- a/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 @@ -55,87 +55,6 @@ Package MEC012_SRV_RNIS_QUERY_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_01_NEG_B" // Negative test: 401 Unauthorized (No token provided) - - Test objective - "Check that the RNIS service returns an error when the RAB information is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellUserInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/rab_info", - "not" authorization, - query_parameters containing - cell_id indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_01_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) - - Test objective - "Check that the RNIS service returns an error when the RAB information is requested with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellUserInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/rab_info", - headers set to vHeadersInvalidToken, - query_parameters containing - cell_id indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - */ - Test Purpose { TP Id "TP_MEC_SRV_RNIS_016_NF" // Negative test: 404 Not found @@ -173,48 +92,7 @@ Package MEC012_SRV_RNIS_QUERY_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_QUERY_01_NEG_E" // Negative test: 406 Not Acceptable - - Test objective - "Check that the RNIS service returns an error when the RAB information when requested" - Reference "ETSI GS MEC 012 2.0.3, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/RabInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a RabInfo containing - cellId indicating value CELL_USER_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/queries/rab_info", - headers set to vHeadersAcceptKO, - query_parameters containing - cellId indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "406 Not Acceptable" - ; to the RNIS_CLIENT entity - } - } - } - * - */ - Test Purpose { TP Id "TP_MEC_SRV_RNIS_017_BR" // Negative test: 400 Bad request @@ -251,83 +129,6 @@ Package MEC012_SRV_RNIS_QUERY_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_02_NEG_B" // Negative test: 401 Unauthorized (No token provided) - - Test objective - "Check that the RNIS service returns an error when the PLMN information is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a PlmnInfo containing - appInstanceId indicating value APP_INSTANCE_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/plmn_info", - "not" authorization, - query_parameters containing - app_ins_id indicating value APP_INS_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_02_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) - - Test objective - "Check that the RNIS service returns an error when the PLMN information is requested with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/PlmnInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a PlmnInfo containing - appInstanceId indicating value APP_INSTANCE_INFO - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/plmn_info", - headers set to vHeadersInvalidToken, - query_parameters containing - appInstanceId indicating value APP_INSTANCE_INFO - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - */ - Test Purpose { TP Id "TP_MEC_SRV_RNIS_017_NF" // Negative test: 404 Not found @@ -402,86 +203,6 @@ Package MEC012_SRV_RNIS_QUERY_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_03_NEG_B" // Negative test: 401 Unauthorized (No token provided) - - Test objective - "Check that the RNIS service returns an error when the S1 bearer information is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a S1BearerInfo containing - s1UeInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/s1_bearer_info", - "not" authorization, - query_parameters containing - cell_id indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_03_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) - - Test objective - "Check that the RNIS service returns an error when the S1 bearer information is requested with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/S1BearerInfo" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a S1BearerInfo containing - s1UeInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/s1_bearer_info", - headers set to vHeadersInvalidToken, - query_parameters containing - cell_id indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } */ - Test Purpose { TP Id "TP_MEC_SRV_RNIS_018_NF" // Negative test: 404 Not found @@ -559,87 +280,6 @@ Package MEC012_SRV_RNIS_QUERY_BI { } } -/* - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_04_NEG_B" // Negative test: 401 Unauthorized (No token provided) - - Test objective - "Check that the RNIS service returns an error when the L2 measurements information is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.5a.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" //TODO: not yet available in OpenAPI spec. To be added later - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a L2_Meas_information containing - cellInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/layer2_meas", - "not" authorization, - query_parameters containing - cell_id indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_RNI_QUERY_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token provided) - - Test objective - "Check that the RNIS service returns an error when the L2 measurements information is requested with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.5a.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" //TODO: not yet available in OpenAPI spec. To be added later - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_QUERY - - Initial conditions with { - the IUT entity having a L2_Meas_information containing - cellInfo containing - ecgi indicating value CELL_ID - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/queries/layer2_meas", - headers set to vHeadersInvalidToken, - query_parameters containing - cell_id indicating value CELL_ID - ; - ; from the RNIS_CLIENT entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the RNIS_CLIENT entity - } - } - } - */ - Test Purpose { TP Id "TP_MEC_SRV_RNIS_019_NF" // Negative test: 404 Not found diff --git a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 index 213fded0a707e6ea74cc3acc9aca00c262ccc687..eecbe0373af16108c51f6fdb1c704c8dde1010fb 100644 --- a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 @@ -16,86 +16,6 @@ Package MEC012_SRV_RNIS_SUB_BI { import all from MEC_Common; - -/* - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_B" // Negative test: 401 Unauthorized (No token) - - Test objective - "Check that the RNIS service responds with error when a given RNIS subscription is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - "not" authorization - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_03_NEG_C" // Negative test: 401 Unauthorized (Invalid token) - - Test objective - "Check that the RNIS service responds with error when a given RNIS subscription is requested with wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - headers set to vHeadersInvalidToken - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - */ - Test Purpose { TP Id "TP_MEC_SRV_RNIS_013_NF" // Negative test: 404 Not Found @@ -132,47 +52,6 @@ Package MEC012_SRV_RNIS_SUB_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) - - Test objective - "Check that the RNIS service responds with error when a RNIS subscription is requested" - - Reference "ETSI GS MEC 012 2.0.3, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - headers set to vHeadersAcceptKO - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "406 Not Acceptable" - ; to the MEC_SUB entity - } - } - } -*/ - Test Purpose { // Negative test: 400 Bad request TP Id "TP_MEC_SRV_RNIS_014_BR" @@ -217,85 +96,6 @@ Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual res } } -/* - Test Purpose { - TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_B" // Negative test: 401 Unauthorized (No token) - - Test objective - "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested without credentials" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - "not" authorization - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC025_RNI_SUBSCRIPTION_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token) - - Test objective - "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested with wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - subscriptionType indicating value "CellChangeSubscription", - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - headers set to vHeadersInvalidToken - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - */ - Test Purpose { TP Id "TP_MEC_SRV_RNIS_014_NF" // Negative test: 404 Not Found @@ -332,79 +132,6 @@ Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual res } } -/* - Test Purpose { // Negative test: 401 Unauthorized (No token) - TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_B" - - Test objective - "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription without token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a DELETE containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - "not" authorization //missing token - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - } - - Test Purpose { // Negative test: 401 Unauthorized (Invalid token) - TP Id "TP_MEC_RNI_SUBSCRIPTION_05_NEG_C" - - Test objective - "Check that the RNIS service sends an error when it receives a deletion request for a RNIS subscription with a wrong token" - - Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.5", - "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" - Config Id Config_MEC_1 - PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION - - Initial conditions with { - the IUT entity having a RNIS_subscription containing - callbackReference indicating value CALLBACK_URI, - _links containing - self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a DELETE containing - uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", - headers set to vHeadersInvalidToken //wrong token - ; from the MEC_SUB entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "401 Unauthorized" - ; to the MEC_SUB entity - } - } - }*/ - Test Purpose { TP Id "TP_MEC_SRV_RNIS_015_NF" // Negative test: 404 Not Found diff --git a/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 b/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 deleted file mode 100644 index 44b2d14aae91d9f2a007d254aba8ad283c49d008..0000000000000000000000000000000000000000 --- a/Test Purposes/SRV/SAQ/PlatAppServices.tplan2 +++ /dev/null @@ -1,787 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package plat_app_services { - - import all from MEC_Common; - - - /* - * Application Service Availability Query (APPSAQ) - */ - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_001_OK" - - Test objective - "Check that the IUT responds with a list of available MEC services - for a given application instance when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.15.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfoList containing - ServiceInfo set to any_value - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_002_OK" - - Test objective - "Check that the IUT notifies the authorised relevant (subscribed) application - instances when a new service for a given application instance is registered" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", - body containing - ServiceInfo containing - serName indicating value SERVICE_NAME - ; - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.15.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "201 Created", - Location set to LOCATION, - body containing - ServiceInfo containing - serName set to SERVICE_NAME - ; - ; - ; - to the MEC_APP_Registrant entity - and - // MEC 011, clause 6.4.2 - the IUT entity sends a notification_message containing - body containing - notificationType set to "SerAvailabilityNotification", - services containing - serName set to SERVICE_NAME - _links containing - subscription set to MP1_SUBSCRIPTION_A - ; - ; - ; - ; - to the MEC_APP_Subscriber entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_003_OK" - - Test objective - "Check that the IUT responds with the information on a specific service - for a given application instance when queried by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfo containing - serInstanceId set to SERVICE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_004_OK" - - Test objective - "Check that the IUT updates a service information for a given - application instance when commanded by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" - - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value PROPER_ETAG, - body containing - ServiceInfo containing - version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ServiceInfo containing - version set to NEW_VERSION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" - query_parameters containing - // Wrong parameter name should trigger an error response. - instance_id indicating value any_value - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.15.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_002_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.15.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/services" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.15.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_004_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", - body containing - ServiceInfo containing - // Wrong parameter name should trigger an error response. - Name indicating value SERVICE_NAME - ; - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.15.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP_Registrant entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_005_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services", - body containing - serName indicating value SERVICE_NAME - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.15.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP_Registrant entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_006_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.15.3.4" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES and PIC_NOTIFICATIONS - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; and - the MEC_APP_Registrant entity being_in idle_state and - the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/services", - body containing - ServiceInfo containing - serName indicating value SERVICE_NAME - ; - ; - ; - from the MEC_APP_Registrant entity - } - then { - // MEC 011, clause 7.15.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP_Registrant entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_007_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_008_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a services_running containing - service_id indicating value NON_EXISTENT_SERVICE_ID - ; - } - - // MEC 011, clause 5.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_009_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value PROPER_ETAG, - body containing - ServiceInfo containing - // Wrong parameter name should trigger an error response. - a_version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_010_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value PROPER_ETAG, - body containing - version indicating value NEW_VERSION - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_011_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity "not" having a services_running containing - service_id indicating value NON_EXISTENT_SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}", - if_match indicating value PROPER_ETAG, - body containing - ServiceInfo containing - version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_APPSAQ_012_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 011 V2.0.8, clause 7.14.3.2" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the IUT entity having a apps_instance containing - instance_id indicating value APP_INSTANCE_ID - ; and - the IUT entity having a services_running containing - service_id indicating value SERVICE_ID - ; - } - - // MEC 011, clause 5.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value INVALID_ETAG, - body containing - ServiceInfo containing - version indicating value NEW_VERSION - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 011, clause 7.14.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 b/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 deleted file mode 100644 index 8254e1d9b8ecacfd8a232359032057dc92687104..0000000000000000000000000000000000000000 --- a/Test Purposes/SRV/UeIdentity/PlatUeIdentity.tplan2 +++ /dev/null @@ -1,529 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package plat_ue_identity { - - import all from MEC_Common; - - - /* - * UE Identity tag (UETAG) - */ - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_001_OK" - - Test objective - "Check that the IUT responds with the information on a UE Identity tag - when queried by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - query_parameters containing - ueIdentityTag indicating value UE_IDENTITY_TAG - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - UeIdentityTagInfo containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG - ; - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_002_OK" - - Test objective - "Check that the IUT registers a tag (representing a UE) or a list of tags - when commanded by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - UeIdentityTagInfo containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_003_OK" - - Test objective - "Check that the IUT deregisters a tag (representing a UE) or a list of tags - when commanded by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/UeIdentityTagInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag indicating value UE_IDENTITY_TAG, - state indicating value UNREGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - UeIdentityTagInfo containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to UNREGISTERED - ; - ; - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_001_BI" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - query_parameters containing - // Wrong parameter name should trigger an error response. - ueTag indicating value UE_IDENTITY_TAG - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_002_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a GET containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - query_parameters containing - ueIdentityTag indicating value UE_IDENTITY_TAG - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_003_BI" - - Test objective - "Check that the IUT responds with an error when - a request for an URI that cannot be mapped to a valid resource URI - is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity "not" having a app_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "ui/v1/{NON_EXISTENT_APP_INSTANCE_ID}/ue_identity_tag_info", - query_parameters containing - ueIdentityTag indicating value UE_IDENTITY_TAG - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_004_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", -x if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to INVALID_STATE - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_005_BI" - - Test objective - "Check that the IUT responds with an error when - an unauthorised request is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a PUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", - if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "403 Forbidden" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_006_BI" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity "not" having a app_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{NON_EXISTENT_APP_INSTANCE_ID}/ue_identity_tag_info", -x if_match indicating value PROPER_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to REGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_PLAT_UETAG_007_BI" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 014 V1.1.1, clause 7.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs014-ue-identity-api/blob/master/UEidentityAPI.yaml#/definitions/ueIdentityTagsList" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - instance_id indicating value APP_INSTANCE_ID - ; - } - - // MEC 014, clause 5.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "ui/v1/{APP_INSTANCE_ID}/ue_identity_tag_info", -x if_match indicating value INVALID_ETAG, - body containing - ueIdentityTagsList containing - ueIdentityTags containing - ueIdentityTag set to UE_IDENTITY_TAG, - state set to UNREGISTERED - ; - ; - ; - ; - from the MEC_APP entity - } - then { - // MEC 014, clause 7.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } -}