From c4a2412045bfb33fba14bff24ba62e923a7512a5 Mon Sep 17 00:00:00 2001 From: Elian Kraja Date: Thu, 20 Jun 2019 19:04:10 +0200 Subject: [PATCH 1/2] Fixed Test purposes naming. Added TPs for GRANT --- Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 | 62 +- Test Purposes/MEPM/GRANT/Grant_BI.tplan2 | 94 ++ Test Purposes/MEPM/GRANT/Grant_BV.tplan2 | 199 ++++ .../MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 | 9 +- .../MEX/ANY/CommonUnauthFailure_BI.tplan2 | 6 +- Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 | 965 +++++++++--------- Test Purposes/SRV/AMS/Ams_BV.tplan2 | 2 +- .../RNIS/RnisAllSubscriptions_BO_BI.tplan2 | 746 +++++++------- .../SRV/RNIS/RnisAllSubscriptions_BV.tplan2 | 2 +- .../SRV/RNIS/RnisNotifications.tplan2 | 2 +- Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 | 626 ++++++------ Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 | 2 +- .../RnisSpecificSubscription_BO_BI.tplan2 | 458 +++++---- .../RNIS/RnisSpecificSubscription_BV.tplan2 | 2 +- Test Purposes/mec-common.tplan2 | 4 +- 15 files changed, 1744 insertions(+), 1435 deletions(-) create mode 100644 Test Purposes/MEPM/GRANT/Grant_BI.tplan2 create mode 100644 Test Purposes/MEPM/GRANT/Grant_BV.tplan2 diff --git a/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 index ec9d864..27567d1 100644 --- a/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 +++ b/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 @@ -203,43 +203,43 @@ Package MEC010_2_MEO_MM1_PKGM_BV { } } - //TODO FIX SPACES + Test Purpose { TP Id "TP_MEC_MEO_PKGM_005_OK" - Test objective - "Check that MEO changes the status of an App Package from INITIAL_OP_STATE with an operation of type OPERATION_VALUE when requested, with the following possible combinations: - - ENABLED, DISABLE - - DISABLED, ENABLE - - DELETION_PENDING, ABORT - " + Test objective + "Check that MEO changes the status of an App Package from INITIAL_OP_STATE with an operation of type OPERATION_VALUE when requested, with the following possible combinations: + - ENABLED, DISABLE + - DISABLED, ENABLE + - DELETION_PENDING, ABORT + " - 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.2.3.3" - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to INITIAL_OP_STATE; - } + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", - uri_parameter appPkgOperation indicating value OPERATION_VALUE; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK"; - to the MEC_OSS entity - } - } - } + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID, + operationalState set to INITIAL_OP_STATE; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + uri_parameter appPkgOperation indicating value OPERATION_VALUE; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK"; + to the MEC_OSS entity + } + } + } Test Purpose { TP Id "TP_MEC_MEO_PKGM_006_OK" diff --git a/Test Purposes/MEPM/GRANT/Grant_BI.tplan2 b/Test Purposes/MEPM/GRANT/Grant_BI.tplan2 new file mode 100644 index 0000000..e7b951b --- /dev/null +++ b/Test Purposes/MEPM/GRANT/Grant_BI.tplan2 @@ -0,0 +1,94 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ +Package MEC010_2_MEPM_GRANT_BI { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEPM_GRANT_001_BR" //Negative case 400 Bad request + + Test objective + "Check that MEPM responds with an error when it receives + a malformed request when a new grant request is performed" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1" //Grant + + Config Id Config_MEC_3 + + PICS Selection PIC_GRANTS_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 "/granting/v1/grants", + body containing + GrantRequest containing + appInstanceId set to APP_INSTANCE_ID, + appLcmOpOccId set to any_value, + appDId set to any_value, + operationERROR set to OPERATION_TYPE //parameter should be named operation not operationType + attribute _links + ; + ; + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_GRANTS_003_NF" //Negative case 404 Not found + + Test objective + "Check that MEPM responds with an error when it receives + a request for returning a grant referred with a wrong ID" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2" + + Config Id Config_MEC_3 + PICS Selection PIC_GRANTS_MANAGEMENT + + Initial conditions with { + the IUT entity "not" having a grant containing + id indicating value GRANTING_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/granting/v1/grants/{GRANTING_ID}" + ; from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEO entity + } + } + } +} diff --git a/Test Purposes/MEPM/GRANT/Grant_BV.tplan2 b/Test Purposes/MEPM/GRANT/Grant_BV.tplan2 new file mode 100644 index 0000000..55799b2 --- /dev/null +++ b/Test Purposes/MEPM/GRANT/Grant_BV.tplan2 @@ -0,0 +1,199 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ +Package MEC010_2_MEPM_GRANT_BV { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_MEPM_GRANT_001_OK" + + Test objective + "Check that MEO sends a synchronous grant response when a grant request is requested" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.4.2.2-1", //GrantRequest + "ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1" //Grant + + Config Id Config_MEC_3 + PICS Selection PIC_GRANTS_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 "/granting/v1/grants", + body containing + GrantRequest containing + appInstanceId set to APP_INSTANCE_ID, + appLcmOpOccId set to any_value, + appDId set to any_value, + operation set to OPERATION_TYPE //Shall be one from - INSTANTIATE - OPERATE - TERMINATE + attribute _links + ; + ; + ; + from the MEPM entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + Grant containing + id set to any_value, + appInstanceId set to APP_INSTANCE_ID, + appLcmOpOccId set to any_value, + attribute _links + ; + ; + ; to the MEPM entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEPM_GRANT_002_OK" + + Test objective + "Check that MEO sends a asynchronous grant response when a grant request is requested" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.1", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.4.2.2-1" //GrantRequest + + + Config Id Config_MEC_3 + PICS Selection PIC_GRANTS_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 "/granting/v1/grants", + body containing + GrantRequest containing + appInstanceId set to APP_INSTANCE_ID, + appLcmOpOccId set to any_value, + appDId set to any_value, + operation set to OPERATION_TYPE //Shall be one from - INSTANTIATE - OPERATE - TERMINATE + attribute _links + ; + ; + ; + from the MEPM entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "202 Accepted", + headers containing + Location set to "/granting/v1/grants/{GRANTING_ID}" + ; + ; to the MEPM entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_GRANT_003_OK" + + Test objective + "Check that MEO sends the status of a grant request when a query on a granting ID is performed" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2" + + + + Config Id Config_MEC_3 + PICS Selection PIC_GRANTS_MANAGEMENT + + Initial conditions with { + the IUT entity having a grant containing + id indicating value GRANTING_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/granting/v1/grants/{GRANTING_ID}" + ; + from the MEPM entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "202 Accepted", + headers containing + Location set to "/granting/v1/grants/{GRANTING_ID}" + ; + ; to the MEPM entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEPM_GRANT_004_OK" + + Test objective + "Check that MEO sends the status of a grant request when a query on a granting ID is performed" + + Reference "ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2", + "ETSI GS MEC 010-2 2.0.10, Table 6.2.4.4.2-1" //Grant + + + + Config Id Config_MEC_3 + PICS Selection PIC_GRANTS_MANAGEMENT + + Initial conditions with { + the IUT entity having a grant containing + id indicating value GRANTING_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/granting/v1/grants/{GRANTING_ID}" + ; + from the MEPM entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + Grant containing + id set to GRANTING_ID, + appInstanceId set to any_value, + appLcmOpOccId set to any_value, + attribute _links + ; + ; + ; to the MEPM entity + } + } + } + +} diff --git a/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 index 385b22c..b119866 100644 --- a/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 +++ b/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 @@ -15,6 +15,7 @@ file and shall not imply any sub-license right. Package MEC010_2_MEPM_MM3_PKGM_BI { import all from MEC_Common; + Test Purpose { TP Id "TP_MEC_MEPM_PKGM_001_BR" //Negative case 400 Bad request @@ -49,6 +50,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BI { } } } + Test Purpose { TP Id "TP_MEC_MEPM_PKGM_002_NF" //Negative case 404 Not found @@ -85,9 +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 @@ -709,6 +708,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BI { } */ + Test Purpose { TP Id "TP_MEC_MEPM_PKGM_007_NF" @@ -820,7 +820,7 @@ Package MEC010_2_MEPM_MM3_PKGM_BI { } } */ - + Test Purpose { TP Id "TP_MEC_MEPM_PKGM_008_NF" @@ -856,4 +856,5 @@ Package MEC010_2_MEPM_MM3_PKGM_BI { } } } + } diff --git a/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 b/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 index 7fb33dd..e3119b8 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_COMMON_BI { +Package MEC_ANY_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_COMMON_001_NT" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_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_COMMON_BI { } Test Purpose { - TP Id "TP_MEC_COMMON_001_WT" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_ANY_001_WT" //Negative case 401 Unauthorized - wrong token Test objective "Check that a MEC API provider responds with an error when it receives diff --git a/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 b/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 index 151999a..50c9c4c 100644 --- a/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 +++ b/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC021_APP_MP1_AMS_BO_BI { +Package MEC021_SRV_AMS_BO_BI { import all from MEC_Common; @@ -51,73 +51,74 @@ Package MEC021_APP_MP1_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 -// 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 -// } -// } -// } + 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 @@ -155,68 +156,69 @@ Package MEC021_APP_MP1_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_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 @@ -255,78 +257,79 @@ Package MEC021_APP_MP1_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_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 @@ -366,141 +369,144 @@ Package MEC021_APP_MP1_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_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 @@ -536,80 +542,81 @@ Package MEC021_APP_MP1_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_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 @@ -688,81 +695,81 @@ Package MEC021_APP_MP1_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 -// 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 -// } -// } -// } + 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/AMS/Ams_BV.tplan2 b/Test Purposes/SRV/AMS/Ams_BV.tplan2 index 22bb937..3c761d8 100644 --- a/Test Purposes/SRV/AMS/Ams_BV.tplan2 +++ b/Test Purposes/SRV/AMS/Ams_BV.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC021_APP_MP1_AMS_BV { +Package MEC021_SRV_AMS_BV { import all from MEC_Common; diff --git a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 index 9c466ea..0e8cbbc 100644 --- a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC012_APP_MP1_RNI_SUBS_BO_BI { +Package MEC012_SRV_RNIS_SUBS_BI { import all from MEC_Common; @@ -54,207 +54,208 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { } - -// Test Purpose { -// TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_B" // Negative test: Trying to get a 401 Unauthorized (Client did not submit credentials) -// -// Test objective -// "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type without submitting credentials" -// -// Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", -// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" -// Config Id Config_MEC_1 -// PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS -// -// Initial conditions with { -// the IUT entity having a RNIS_subscription containing -// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, -// subscriptionType indicating value "CellChangeSubscription" -// ; -// } -// -// Expected behaviour -// ensure that { -// when { -// the IUT entity receives a GET containing -// uri indicating value "/rni/v1/subscriptions", -// query_parameters containing -// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, -// subscriptionType indicating value "CellChangeSubscription" -// ;, -// "not" authorization // Token not provided -// ; from the MEC_SUB entity -// } -// then { -// the IUT entity sends a HTTP_RESPONSE containing -// status set to "401 Unauthorized" -// ; to the MEC_SUB entity -// } -// } -// } -// -// -// Test Purpose { -// TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_C" // Negative test: Trying to get a 401 Unauthorized (Invalid token) -// -// Test objective -// "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type submitting a wrong token" -// -// Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.1", -// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" -// Config Id Config_MEC_1 -// PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS -// -// Initial conditions with { -// the IUT entity having a RNIS_subscription containing -// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, -// subscriptionType indicating value "CellChangeSubscription" -// ; -// } -// -// Expected behaviour -// ensure that { -// when { -// the IUT entity receives a GET containing -// uri indicating value "/rni/v1/subscriptions", -// headers set to vHeadersInvalidToken, // Invalid token -// query_parameters containing -// subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, -// subscriptionType indicating value "CellChangeSubscription" -// ; -// ; from the MEC_SUB entity -// } -// then { -// the IUT entity sends a HTTP_RESPONSE containing -// status set to "401 Unauthorized" -// ; to the MEC_SUB entity -// } -// } -// } +/* + Test Purpose { + TP Id "TP_MEC_RNI_SUBSCRIPTION_01_NEG_B" // Negative test: Trying to get a 401 Unauthorized (Client did not submit credentials) + + Test objective + "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions of a given type without submitting credentials" -//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" -// ; -// } + 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 -// 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 -// } -// } -// } - + Initial conditions with { + the IUT entity having a RNIS_subscription containing + subscriptionHref indicating value SUBSCRIPTION_HREF_VALUE, + subscriptionType indicating value "CellChangeSubscription" + ; + } -//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 -// } -// } -// } + 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_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_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 @@ -294,183 +295,184 @@ Package MEC012_APP_MP1_RNI_SUBS_BO_BI { } } +/* + Test Purpose { + TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_B" // 401 Unauthorized (No Token) + + Test objective + "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription without credentials" + + Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/rni/v1/subscriptions", + "not" authorized, + body containing + CellChangeSubscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + appInstanceId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_SUB entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_RNI_SUBSCRIPTION_02_NEG_C" // 401 Unauthorized (Wrong token) + + Test objective + "Check that the RNIS service responds with an error when it receives a request to create a new RNIS subscription with a wrong token" + + Reference "ETSI GS MEC 012 2.0.4, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml" + Config Id Config_MEC_1 + PICS Selection PIC_RNIS and PIC_RNIS_ALL_SUBSCRIPTIONS + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/rni/v1/subscriptions", + headers set to vHeadersInvalidToken, // wrong token + body containing + CellChangeSubscription containing + subscriptionType indicating value "CellChangeSubscription", + callbackReference indicating value CALLBACK_URI, + filterCriteriaAssocHo containing + appInstanceId set to APP_INS_ID, + associateId set to ASSOCIATE_ID_LIST, + ecgi set to ECGI, + hoStatus set to HO_STATUS + ;, + expiryDeadline set to EXPIRY_DEADLINE + ; + ; + ; from the MEC_SUB entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "401 Unauthorized" + ; to the MEC_SUB entity + } + } + } + + +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 + } -// 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 -// } -// } -// } + 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 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 -//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 -// } -// } -// } + 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/RnisAllSubscriptions_BV.tplan2 b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 index 589175c..4e405a9 100644 --- a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC012_APP_MP1_RNI_SUBS_BV { +Package MEC012_SRV_RNIS_SUBS_BV { import all from MEC_Common; diff --git a/Test Purposes/SRV/RNIS/RnisNotifications.tplan2 b/Test Purposes/SRV/RNIS/RnisNotifications.tplan2 index f2c52a4..87c9ac7 100644 --- a/Test Purposes/SRV/RNIS/RnisNotifications.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisNotifications.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC012_APP_MP1_RNI_NOTIF_BV { +Package MEC012_SRV_RNIS_NOTIF_BV { import all from MEC_Common; diff --git a/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 index b8e648c..f075804 100644 --- a/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC012_APP_MP1_RNI_QUERY_BO_BI { +Package MEC012_SRV_RNIS_QUERY_BI { import all from MEC_Common; @@ -55,86 +55,86 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_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 + ; + ; + } -// 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 -// } -// } -// } -// + 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 @@ -174,8 +174,8 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_BI { } } -//Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered /* +//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 @@ -251,82 +251,82 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_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 -// 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 -// } -// } -// } -// + 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,85 +402,85 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_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 -// 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 -// } -// } -// } + 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 { @@ -559,86 +559,86 @@ Package MEC012_APP_MP1_RNI_QUERY_BO_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 + ; + ; + } -// 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 -// } -// } -// } -// + 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/RnisQuery_BV.tplan2 b/Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 index 90d876b..8770e90 100644 --- a/Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC012_APP_MP1_RNI_QUERY_BV { +Package MEC012_SRV_RNIS_QUERY_BV { import all from MEC_Common; diff --git a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 index 3e1da9d..213fded 100644 --- a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 @@ -12,87 +12,89 @@ associated with this file for which ETSI keeps all rights reserved. The present copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC012_APP_MP1_RNI_SUB_BO_BI { +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_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 @@ -130,8 +132,8 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { } -//Removed since not in scope of MEC032 -- only 400, 401 and 404 for individual resources are considered /* +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) @@ -215,83 +217,84 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { } } -// Test Purpose { -// TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_B" // Negative test: 401 Unauthorized (No token) -// -// Test objective -// "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested without credentials" -// -// Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", -// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" -// -// Config Id Config_MEC_1 -// PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION -// -// Initial conditions with { -// the IUT entity having a RNIS_subscription containing -// subscriptionType indicating value "CellChangeSubscription", -// callbackReference indicating value CALLBACK_URI, -// _links containing -// self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" -// ; -// ; -// } -// -// Expected behaviour -// ensure that { -// when { -// the IUT entity receives a PUT containing -// uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", -// "not" authorization -// ; from the MEC_SUB entity -// } -// then { -// the IUT entity sends a HTTP_RESPONSE containing -// status set to "401 Unauthorized" -// ; to the MEC_SUB entity -// } -// } -// } -// -// -// Test Purpose { -// TP Id "TP_MEC025_RNI_SUBSCRIPTION_04_NEG_C" // Negative test: 401 Unauthorized (Invalid token) -// -// Test objective -// "Check that the RNIS service responds with error when a modification for a given RNIS subscription is requested with wrong token" -// -// Reference "ETSI GS MEC 012 2.0.4, clause 7.8.3.2", -// "https://forge.etsi.org/gitlab/mec/gs012-rnis-api/blob/master/RniAPI.yaml#/definitions/CellChangeSubscription" -// -// Config Id Config_MEC_1 -// PICS Selection PIC_RNIS and PIC_RNIS_SPECIFIC_SUBSCRIPTION -// -// Initial conditions with { -// the IUT entity having a RNIS_subscription containing -// subscriptionType indicating value "CellChangeSubscription", -// callbackReference indicating value CALLBACK_URI, -// _links containing -// self set to "/rni/v1/subscriptions/{SUBSCRIPTION_ID}" -// ; -// ; -// } -// -// Expected behaviour -// ensure that { -// when { -// the IUT entity receives a PUT containing -// uri indicating value "/rni/v1/subscriptions/{SUBSCRIPTION_ID}", -// headers set to vHeadersInvalidToken -// ; from the MEC_SUB entity -// } -// then { -// the IUT entity sends a HTTP_RESPONSE containing -// status set to "401 Unauthorized" -// ; to the MEC_SUB entity -// } -// } -// } -// +/* + Test Purpose { + TP Id "TP_MEC_RNI_SUBSCRIPTION_04_NEG_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 @@ -329,77 +332,78 @@ Package MEC012_APP_MP1_RNI_SUB_BO_BI { } } -// 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 { // 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/RNIS/RnisSpecificSubscription_BV.tplan2 b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 index 728d3af..1a71eab 100644 --- a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 +++ b/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 @@ -13,7 +13,7 @@ copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC012_APP_MP1_RNI_SUB_BV { +Package MEC012_SRV_RNIS_SUB_BV { import all from MEC_Common; diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index cb25791..0f22c21 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -17,6 +17,7 @@ Package MEC_Common { - PIC_APP_LCM_NOTIFICATIONS // MEC032, table xxxxz - PIC_AMS - PIC_AMS_NOTIFICATIONS + - PIC_GRANTS_MANAGEMENT ; entities: - MEC_OSS @@ -73,7 +74,8 @@ Package MEC_Common { - application_lcm_change_event - mobility_procedure_event - adjacent_app_info_event - - App_Instance + - app_instance + - grant ; } -- GitLab From 0d39dfd5fee953d33fdd625db014af56ed2c90ec Mon Sep 17 00:00:00 2001 From: Elian Kraja Date: Mon, 1 Jul 2019 11:57:15 +0200 Subject: [PATCH 2/2] Fix interfaces on GRANT --- .../{MEPM => MEO}/GRANT/Grant_BI.tplan2 | 16 ++++++++-------- .../{MEPM => MEO}/GRANT/Grant_BV.tplan2 | 12 +++++++----- 2 files changed, 15 insertions(+), 13 deletions(-) rename Test Purposes/{MEPM => MEO}/GRANT/Grant_BI.tplan2 (88%) rename Test Purposes/{MEPM => MEO}/GRANT/Grant_BV.tplan2 (97%) diff --git a/Test Purposes/MEPM/GRANT/Grant_BI.tplan2 b/Test Purposes/MEO/GRANT/Grant_BI.tplan2 similarity index 88% rename from Test Purposes/MEPM/GRANT/Grant_BI.tplan2 rename to Test Purposes/MEO/GRANT/Grant_BI.tplan2 index e7b951b..edd6b04 100644 --- a/Test Purposes/MEPM/GRANT/Grant_BI.tplan2 +++ b/Test Purposes/MEO/GRANT/Grant_BI.tplan2 @@ -12,15 +12,15 @@ associated with this file for which ETSI keeps all rights reserved. The present copyright notice shall be included in all copies of whole or part of this file and shall not imply any sub-license right. */ -Package MEC010_2_MEPM_GRANT_BI { +Package MEC010_2_MEO_GRANT_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEPM_GRANT_001_BR" //Negative case 400 Bad request + TP Id "TP_MEC_MEO_GRANT_001_BR" //Negative case 400 Bad request Test objective - "Check that MEPM responds with an error when it receives + "Check that MEO responds with an error when it receives a malformed request when a new grant request is performed" Reference "ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2", @@ -49,12 +49,12 @@ Package MEC010_2_MEPM_GRANT_BI { attribute _links ; ; - ; from the MEO entity + ; from the MEPM entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "400 Bad Request" - ; to the MEO entity + ; to the MEPM entity } } } @@ -63,7 +63,7 @@ Package MEC010_2_MEPM_GRANT_BI { TP Id "TP_MEC_MEO_GRANTS_003_NF" //Negative case 404 Not found Test objective - "Check that MEPM responds with an error when it receives + "Check that MEO responds with an error when it receives a request for returning a grant referred with a wrong ID" Reference "ETSI GS MEC 010-2 2.0.10, clause 7.6.1.3.2" @@ -82,12 +82,12 @@ Package MEC010_2_MEPM_GRANT_BI { when { the IUT entity receives a vGET containing uri indicating value "/granting/v1/grants/{GRANTING_ID}" - ; from the MEO entity + ; from the MEPM entity } then { the IUT entity sends a HTTP_RESPONSE containing status set to "404 Not Found" - ; to the MEO entity + ; to the MEPM entity } } } diff --git a/Test Purposes/MEPM/GRANT/Grant_BV.tplan2 b/Test Purposes/MEO/GRANT/Grant_BV.tplan2 similarity index 97% rename from Test Purposes/MEPM/GRANT/Grant_BV.tplan2 rename to Test Purposes/MEO/GRANT/Grant_BV.tplan2 index 55799b2..5e9e655 100644 --- a/Test Purposes/MEPM/GRANT/Grant_BV.tplan2 +++ b/Test Purposes/MEO/GRANT/Grant_BV.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 MEC010_2_MEPM_GRANT_BV { +Package MEC010_2_MEO_GRANT_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEPM_GRANT_001_OK" + TP Id "TP_MEC_MEO_GRANT_001_OK" Test objective "Check that MEO sends a synchronous grant response when a grant request is requested" @@ -67,9 +67,11 @@ Package MEC010_2_MEPM_GRANT_BV { } } } + + Test Purpose { - TP Id "TP_MEC_MEPM_GRANT_002_OK" + TP Id "TP_MEC_MEO_GRANT_002_OK" Test objective "Check that MEO sends a asynchronous grant response when a grant request is requested" @@ -116,7 +118,7 @@ Package MEC010_2_MEPM_GRANT_BV { Test Purpose { - TP Id "TP_MEC_MEPM_GRANT_003_OK" + TP Id "TP_MEC_MEO_GRANT_003_OK" Test objective "Check that MEO sends the status of a grant request when a query on a granting ID is performed" @@ -154,7 +156,7 @@ Package MEC010_2_MEPM_GRANT_BV { Test Purpose { - TP Id "TP_MEC_MEPM_GRANT_004_OK" + TP Id "TP_MEC_MEO_GRANT_004_OK" Test objective "Check that MEO sends the status of a grant request when a query on a granting ID is performed" -- GitLab