diff --git a/Test Purposes/MEO/GRANT/Grant_BI.tplan2 b/Test Purposes/MEO/GRANT/Grant_BI.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..edd6b04cabb84b12539b9aed57076958dfb94ce4 --- /dev/null +++ b/Test Purposes/MEO/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_MEO_GRANT_BI { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEO_GRANT_001_BR" //Negative case 400 Bad request + + Test objective + "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", + "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 MEPM entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEPM entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEO_GRANTS_003_NF" //Negative case 404 Not found + + Test objective + "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" + + 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 MEPM entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEPM entity + } + } + } +} diff --git a/Test Purposes/MEO/GRANT/Grant_BV.tplan2 b/Test Purposes/MEO/GRANT/Grant_BV.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..5e9e6552bfcee5bd93075bf9c5c66893671eea41 --- /dev/null +++ b/Test Purposes/MEO/GRANT/Grant_BV.tplan2 @@ -0,0 +1,201 @@ +/* +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +file and shall not imply any sub-license right. +*/ +Package MEC010_2_MEO_GRANT_BV { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_MEO_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_MEO_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_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" + + 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_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" + + 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/MEO/PKGM/AppPkgMgt_BV.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 index ec9d8644c85bdde4a370b8169b061cd53e2c6739..27567d1abba2ba058d9729b4a5eb857f60283f77 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/PKGM/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 index 385b22c2c656743ef7cf84fed8d64c4c05868b72..b1198660e494756bd04f7e25f584353b13feab36 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 7fb33dd14b06c0e79882a0044b17bd47dcbdfd38..e3119b8d279607d01d7002a8757e0ea5d5c98b46 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 151999a07a09807862d6d5844ac405d9bd5c2807..50c9c4c8b4a462bed9e57f3e58a8bc6cf083eb1c 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 22bb93727a6ef587964c885733027e174014bc9f..3c761d8e1e59600fa7826016e52f982d92f74e78 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 9c466eaa5722e586230c0fc3dd759472bf0b9daf..0e8cbbc1ac9d17d9d6afe5f1409d1f9638dd54e1 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 589175c756fe3eca47b11b38f2537ff3cfde4bb1..4e405a95859b8c1ffa3277978948fe9150ffc2f3 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 f2c52a473494718bf29c08cc93d189d6fe15be44..87c9ac758839c5bd032aa9d14f4f548c8663106a 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 b8e648c1cabf388ac5c9dfb4becd48c24f4b1b1f..f07580444afd8faa8776c5e8fc8b1c0eed27e45d 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 90d876b424b3690ebfd407bc13e72efd847bb6f3..8770e90d1bf2dfee333570461a15657af6eb6577 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 3e1da9ded85d2ec0ba31201db076cdf34b63e415..213fded0a707e6ea74cc3acc9aca00c262ccc687 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 728d3afdb8b5f0c22749de79e6f1cf0f7208ba3d..1a71eab16af5f3880b730e77fcd53e4b88375f69 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 cb25791b74ce32e4c45fd9f74289eaf16a46b208..0f22c21342c9212190a9bd66c9f86dc722963da8 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 ; }