diff --git a/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 index d4b36013a9557d7c000885068c57e858e4ed67b7..9c345a5db2fccf0f57f7158bd7504afa4ac552bd 100644 --- a/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 @@ -12,7 +12,7 @@ associated with this file for which ETSI keeps all rights reserved. The present copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC010_2_MEO_MM1_PKGM_BO_BI { +Package MEC010_2_MEO_PKGM_BO_BI { import all from MEC_Common; @@ -87,71 +87,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 @@ -186,120 +122,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 +176,62 @@ 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 +245,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 +256,87 @@ 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 - } - } - } - - 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 + 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/MEO/PKGM/AppPkgMgt_BV.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 index 27567d1abba2ba058d9729b4a5eb857f60283f77..7a03bfc1f40ec424196218640cb85e9a7ec389c2 100644 --- a/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 +++ b/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 @@ -12,7 +12,7 @@ associated with this file for which ETSI keeps all rights reserved. The present copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC010_2_MEO_MM1_PKGM_BV { +Package MEC010_2_MEO_PKGM_BV { import all from MEC_Common; diff --git a/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 b/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 index e3119b8d279607d01d7002a8757e0ea5d5c98b46..93a5dc9cdca7adf0711798e9141d4f4c01c0ce5f 100644 --- a/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 +++ b/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 @@ -12,13 +12,13 @@ associated with this file for which ETSI keeps all rights reserved. The present copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC_ANY_BI { +Package MEC_MEX_ANY_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_ANY_001_NT" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEX_ANY_001_NT" //Negative case 401 Unauthorized - no token Test objective "Check that a MEC API provider responds with an error when it receives @@ -49,7 +49,7 @@ Package MEC_ANY_BI { } Test Purpose { - TP Id "TP_MEC_ANY_001_WT" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEX_ANY_001_WT" //Negative case 401 Unauthorized - wrong token Test objective "Check that a MEC API provider responds with an error when it receives