diff --git a/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 b/Test Purposes/MEC009/MEX/ANY/CommonUnauthFailure_BI.tplan2 similarity index 65% rename from Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 rename to Test Purposes/MEC009/MEX/ANY/CommonUnauthFailure_BI.tplan2 index 93a5dc9cdca7adf0711798e9141d4f4c01c0ce5f..3431bc7caf34f2758d16c65b3732a1a3a882215d 100644 --- a/Test Purposes/MEX/ANY/CommonUnauthFailure_BI.tplan2 +++ b/Test Purposes/MEC009/MEX/ANY/CommonUnauthFailure_BI.tplan2 @@ -1,24 +1,14 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_MEX_ANY_BI { +Package MEC_MEC009_MEX_ANY_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_MEX_ANY_001_NT" //Negative case 401 Unauthorized - no token + TP Id "TP_MEC_MEC009_MEX_ANY_001_NT" //Negative case 401 Unauthorized - no token Test objective "Check that a MEC API provider responds with an error when it receives @@ -37,7 +27,7 @@ Package MEC_MEX_ANY_BI { when { the IUT entity receives a HTTP_REQUEST containing uri indicating value ACCEPTABLE_URI, - "not" authorization + not authorization ; from the MEC_CONSUMER entity } then { @@ -49,7 +39,7 @@ Package MEC_MEX_ANY_BI { } Test Purpose { - TP Id "TP_MEC_MEX_ANY_001_WT" //Negative case 401 Unauthorized - wrong token + TP Id "TP_MEC_MEC009_MEX_ANY_001_WT" //Negative case 401 Unauthorized - wrong token Test objective "Check that a MEC API provider responds with an error when it receives diff --git a/Test Purposes/MEC010p2/MEO/GRANT/Grant.tplan2 b/Test Purposes/MEC010p2/MEO/GRANT/Grant.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..3bea6bec188bddcb9003bd038550998761098ec1 --- /dev/null +++ b/Test Purposes/MEC010p2/MEO/GRANT/Grant.tplan2 @@ -0,0 +1,385 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ +Package MEC_MEC010p2_MEO_GRANT { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_GRANT_001_OK" + + Test objective + "Check that MEO sends a synchronous grant response when a grant request is requested - INSTANTIATE" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1", //GrantRequest + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1 Note 2", //GrantRequest + "ETSI GS MEC 010-2 2.2.1, 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, + link indicating value H_LINK + ; + } + + 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 INSTANTIATE, + addResources set to INST_RESOURCES_LIST, + _links set to H_LINK + ;;; + from the MEPM entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + headers containing + Location indicating value "{GRANTING_ID}" + body containing + Grant containing + id set to any_value, + appInstanceId set to APP_INSTANCE_ID, + appLcmOpOccId set to any_value, + addResources set to INST_RESOURCES_LIST, + _links set to H_LINK + ; + ; + ;; + to the MEPM entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_GRANT_001_BR" + + Test objective + "Check that MEO responds with an error when it receives a malformed request when a new grant request is performed - INSTANTIATE" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1", //GrantRequest + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1 Note 2", //GrantRequest + "ETSI GS MEC 010-2 2.2.1, 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, + link indicating value H_LINK; + } + + 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 INSTANTIATE, + not addResources, + _links set to H_LINK + ; + ; + ; 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_MEC010p2_MEO_GRANT_002_OK" + + Test objective + "Check that MEO sends a synchronous grant response when a grant request is requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1", //GrantRequest + "ETSI GS MEC 010-2 2.2.1, 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, + link indicating value H_LINK + ; + } + + 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 - OPERATE - TERMINATE + _links set to H_LINK + ;;; + from the MEPM entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + headers containing + Location set to "/granting/v1/grants/{GRANTING_ID}" + body containing + Grant containing + id set to any_value, + appInstanceId set to APP_INSTANCE_ID, + appLcmOpOccId set to any_value, + _links set to H_LINK + ; + ; + ;; + to the MEPM entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_GRANT_003_OK" + + Test objective + "Check that MEO sends a asynchronous grant response when a grant request is requested - INSTANTIATE" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.5.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1", //GrantRequest + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1 Note 2", //GrantRequest + "ETSI GS MEC 010-2 2.2.1, 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, + link indicating value H_LINK + ; + } + + 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 INSTANTIATE, + addResources set to INST_RESOURCES_LIST, + _links set to H_LINK + ; + ; + ; + 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_MEC010p2_MEO_GRANT_004_OK" + + Test objective + "Check that MEO sends a asynchronous grant response when a grant request is requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.6.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.2.2-1", //GrantRequest + "ETSI GS MEC 010-2 2.2.1, 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, + link indicating value H_LINK + ; + } + + 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 - OPERATE - TERMINATE + _links set to H_LINK + ; + ; + ; + 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_MEC010p2_MEO_GRANT_005_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.2.1, clause 7.5.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1" + + 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_MEC010p2_MEO_GRANT_006_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.2.1, clause 7.5.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.4.4.2-1" + + 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, + link indicating value H_LINK; + } + + 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, + _links set to H_LINK + ; + ; + ; to the MEPM entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_GRANT_006_NF" + + 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.1.1, clause 7.5.2.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/MEC010p2/MEO/PKGM/AppPkgMgt.tplan2 b/Test Purposes/MEC010p2/MEO/PKGM/AppPkgMgt.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..339b5d1c97932c0482e3f1a6c81476c7e833e07a --- /dev/null +++ b/Test Purposes/MEC010p2/MEO/PKGM/AppPkgMgt.tplan2 @@ -0,0 +1,1289 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ +Package MEC_MEC010p2_MEO_PKGM { + + import all from MEC_Common; + + //All APP packages + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_001_OK" + + Test objective + "Check that MEO creates a new App Package when requested" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", // AppPkgInfo + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.2.2-1" // CreateAppPkg + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_pkgm/v1/app_packages", + body containing + CreateAppPkg containing + appPkgName set to APP_PKG_NAME, + appPkgVersion set to APP_PKG_VERSION, + checksum set to CHECKSUM, + appPkgPath set to APP_PKG_PATH + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + Location indicating value any_value, + body containing + AppPkgInfo containing + id set to any_value, + appDId set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to APP_PKG_VERSION, + checksum set to CHECKSUM, + softwareImages, + onboardingState set to "CREATED", + operationalState set to "ENABLED", + usageState set to "NOT_IN_USE", + mecInfo + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_001_BR" + + Test objective + "Check that MEO responds with an error when it receives + a malformed request for creating a new App Package" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.2.2-1" + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_pkgm/v1/app_packages", + body containing + CreateAppPkg containing + appPkgName set to "", + appPkgVersion set to APP_PKG_VERSION, + checksum set to CHECKSUM, + appPkgPath set to APP_PKG_PATH + ; + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_002_01_OK" + + Test objective + "Check that MEO returns the list of App packages when requested - Note 3" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditionswith { + the IUT entity having an App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgInfoList containing + AppPkgInfo containing + id set to APP_PKG_ID, + appDId set to ON_BOARDED_APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + softwareImages, + onboardingState, + operationalState set to any_value, + usageState set to any_value, + mecInfo, + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_002_02_OK" + + Test objective + "Check that MEO returns the list of on-boarded packages when requested - Note 3" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditionswith { + the IUT entity having an App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/onboarded_app_packages" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgInfoList containing + AppPkgInfo containing + id set to APP_PKG_ID, + appDId set to ON_BOARDED_APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + softwareImages, + onboardingState, + operationalState set to any_value, + usageState set to any_value, + mecInfo, + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_002_BR" + + Test objective + "Check that MEO responds with an error when it receives + a malformed request for retrieving the list of existing App Packages" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1" + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages", + query_parameters containing + operationalStatus indicating value any_value // the query parameter should be operationalState not operationalStatus + ; + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_003_01_OK" + + Test objective + "Check that MEO returns the an App Package when requested - Note 3" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 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 APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgInfo containing + id set to APP_PKG_ID, + appDId set to ON_BOARDED_APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + softwareImages, + onboardingState, + operationalState set to any_value, + usageState set to any_value, + mecInfo, + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_003_02_OK" + + Test objective + "Check that MEO returns the an on-boarded package when requested - Note 3" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 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 APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/onboarded_app_packages/{ON_BOARDED_APPD_ID}"; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgInfo containing + id set to APP_PKG_ID, + appDId set to ON_BOARDED_APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + softwareImages, + onboardingState, + operationalState set to any_value, + usageState set to any_value, + mecInfo, + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_003_NF" + + Test objective + "Check that MEO responds with an error when it receives + a request for retrieving a App Package referred with a wrong ID" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1" + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_004_OK" + + Test objective + "Check that MEO deletes an App Package when requested" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.4" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}"; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_004_NF" + + Test objective + "Check that MEO responds with an error when it receives + a request for deleting an App Package referred with a wrong ID" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.4", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1" + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_005_OK" + + Test objective + "Check that MEO updates the operational state of an individual application package resource" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.5" + + 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 APP_PKG_ID, + operationalState set to DISABLED; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}", + body containing + appPkgInfoModifications containing + operationalState set to ENABLE + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + appPkgInfoModifications containing + operationalState set to ENABLE + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_005_BR" + + Test objective + "Check that MEO sends an error when it receives a malformed request to modify + the operational state of an application package" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.5" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value ON_BOARDED_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "/app_pkgm/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", + body containing + appPkgInfoModifications containing + appPkgOperation indicating value "DISABL" //it should be DISABLE + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request"; + to the MEC_OSS entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_005_NF" + + Test objective + "Check that MEO responds with an error when it receives + a request for updating an App Package referred with a wrong ID" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.5", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1" + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}", + body containing + appPkgInfoModifications containing + appPkgOperation indicating value "DISABL" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_006_OK" + + Test objective + "Check that MEO service returns an application package subscription when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.1", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_pkgm/v1/subscriptions" + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to SUBSCRIPTION_TYPE + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + AppPkgSubscriptionInfo containing + subscriptionId set to any_value, + subscriptionType set to SUBSCRIPTION_TYPE, + callbackUri set to URI, + _links + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_006_BR" + + Test objective + "Check that MEO service sends an error when it receives a + malformed request for creating a new subscription on AppPackages" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.1", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/app_pkgm/v1/subscriptions", + body containing + AppPkgSubscription containing + subscriptionType set to "ON-BOARDING" // Enum should be "ONBOARDING" + ; + ; + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_007_OK" + + Test objective + "Check that MEO service returns the list of Application Package Subscriptions when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.2", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/subscriptions" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionLinkList containing + AppPkgSubscriptionInfo containing + links containing + self indicating value any_value, + subscriptions containing + href set to "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}", + subscriptionType indicating value any_value + ; + ; + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_008_OK" + + Test objective + "Check that MEO service returns an Application Package Subscription when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.2", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to any_value, + callbackUri set to any_value, + _links containing + self set to "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_008_NF" + + Test objective + "Check that MEO service sends an error when it receives a query for a subscription on AppPackages + with a wrong identifier" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.2", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a Subscription containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_009_OK" + + Test objective + "Check that MEO service deletes an Application Package Subscription when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.4" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_009_NF" + + Test objective + "Check that MEO service sends an error when it receives a deletion request for a subscription on AppPackages + with a wrong identifier" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a Subscription containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_pkgm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_010_OK" + + Test objective + "Check that the MEO service sends a application package notification + if the MEO service has an associated subscription and the event is generated" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.5.3.1", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.6" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to SUBSCRIPTION_TYPE, + callbackUri set to CALLBACK_URI, + _links + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a on_boarding_event containing + notificationId set to NOTIFICATION_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + AppPkgNotification containing + notificationId set to NOTIFICATION_ID, + notificationType indicating value any_value, + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to any_value, + appPkgId set to any_value, + appDId set to any_value, + _links containing + self set to "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_011_OK" + + Test objective + "Check that MEO reads the content of the AppD of on-boarded individual application package resources when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/appd", + accept set to "application/zip" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + payload set to ZIP_FILE + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_011_NF" //Negative case 404 Not found + + Test objective + "Check that MEO responds with an error when it receives + a request to retrieve an application descriptor referred with a wrong app package ID" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appd" + ; from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_012_01_OK" + + Test objective + "Check that MEO fetches the application package content identified by appPkgId when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/package_content", + accept set to "application/zip" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + payload set to ZIP_FILE + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_012_02_OK" + + Test objective + "Check that MEO fetches the on-boarded application package content identified by appDId when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/onboarded_app_packages/{ON_BOARDED_APPD_ID}/package_content", + accept set to "application/zip" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + payload set to ZIP_FILE + ; + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_012_BR" + + Test objective + "Check that MEO service sends an error when it receives a + malformed request" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/package_content", + accept set to "wrong_parameter" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_012_01_NF" + + Test objective + "Check that MEO service sends an error when it receives a request refering a wrong appPkgId" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTING_APP_PKG_ID}/package_content", + accept set to "application/zip" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_012_02_NF" + + Test objective + "Check that MEO service sends an error when it receives a request refering a wrong on-boarded appPkgId" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/onboarded_app_packages/{NON_EXISTING_ON_BOARDED_APPD_ID}/package_content", + accept set to "application/zip" + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_013_OK" + + Test objective + "Check that MEO accepts application package when submitted" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.3", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.1.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/package_content", + accept set to ACCEPTED_CONTENT_TYPE + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "202 Accepted", + not body + ; + to the MEC_OSS entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEO_PKGM_013_NF" + + Test objective + "Check that MEO service sends an error when it receives a query to accept an application package with a wrong identifier" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.3", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.1.2" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_NON_EXISTANT_PKG_ID}/package_content", + accept set to ACCEPTED_CONTENT_TYPE + ; + from the MEC_OSS entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEC_OSS entity + } + } + } + +} diff --git a/Test Purposes/MEC010p2/MEPM/LCM/PlatformConfiguration.tplan2 b/Test Purposes/MEC010p2/MEPM/LCM/PlatformConfiguration.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..659b160a3c1bff70a790859146a051e68790b14b --- /dev/null +++ b/Test Purposes/MEC010p2/MEPM/LCM/PlatformConfiguration.tplan2 @@ -0,0 +1,123 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ +Package MEC_MEC010p2_APP_INSTANCE_LCM { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_LCM_01_OK" + + Test objective + "Check that MEC API provider has created the configuration information in AppD to the MEPM-V" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{appInstanceId}/configure_platform_for_app", + body containing + ConfigPlatformForAppRequest containing + appServiceRequired set to some_values + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "202 Accepted" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_LCM_01_BR" + + Test objective + "Check that MEC API provider sends an error when it receives a malformed request + for the configuration information in AppD to the MEPM-V" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{appInstanceId}/configure_platform_for_app", + body containing + ConfigPlatformForAppRequest containing + appServiceWrongRequired set to some_values //Wrong Param + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEO entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_LCM_01_NF" + + Test objective + "Check that MEC API provider sends an error when it receives a request + for the configuration information in AppD to the MEPM-V with not valid app instance ID" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity "not" having a AppInstanceInfo containing + id indicating value NOT_EXISTING_APP_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{NOT_EXISTING_APP_ID}/configure_platform_for_app", + body containing + ConfigPlatformForAppRequest containing + appServiceWrongRequired set to some_values //Wrong Param + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEO entity + } + } + } + +} diff --git a/Test Purposes/MEC010p2/MEPM/PKGM/AppPkgMgt.tplan2 b/Test Purposes/MEC010p2/MEPM/PKGM/AppPkgMgt.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..c43822c83f961be80d9f5a2bab4a031518851b58 --- /dev/null +++ b/Test Purposes/MEC010p2/MEPM/PKGM/AppPkgMgt.tplan2 @@ -0,0 +1,1012 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ +Package MEC_MEC010p2_MEPM_PKGM { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_001_01_OK" + + Test objective + "Check that MEPM returns the list of App Packages when requested - Note 3" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditionswith { + the IUT entity having an App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgInfoList containing + AppPkgInfo containing + id set to APP_PKG_ID, + appDId set to ON_BOARDED_APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + softwareImages, + onboardingState, + operationalState set to any_value, + usageState set to any_value, + mecInfo, + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_001_02_OK" + + Test objective + "Check that MEPM returns the list of on-boarded App Packages when requested - Note 3" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditionswith { + the IUT entity having an App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/onboarded_app_packages" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgInfoList containing + AppPkgInfo containing + id set to APP_PKG_ID, + appDId set to ON_BOARDED_APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + softwareImages, + onboardingState, + operationalState set to any_value, + usageState set to any_value, + mecInfo, + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_001_BR" + + Test objective + "Check that MEPM responds with an error when it receives + a malformed request for requesting the list of existing App Packages" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages", + query_parameters containing + operationalStatus indicating value ENABLED // the query parameter should be operationalState not operationalStatus + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_002_01_OK" + + Test objective + "Check that MEPM returns the an App Package when requested - Note 3" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}"; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgInfo containing + id set to APP_PKG_ID, + appDId set to ON_BOARDED_APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + softwareImages, + onboardingState, + operationalState set to any_value, + usageState set to any_value, + mecInfo, + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_002_02_OK" + + Test objective + "Check that MEPM returns the an App Package when requested - Note 3" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/onboarded_app_packages/{ON_BOARDED_APPD_ID}"; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgInfo containing + id set to APP_PKG_ID, + appDId set to ON_BOARDED_APPD_ID, + appName set to any_value, + appSoftwareVersion set to any_value, + appDVersion set to any_value, + checksum set to any_value, + softwareImages, + onboardingState, + operationalState set to any_value, + usageState set to any_value, + mecInfo, + _links containing + self set to any_value, + appD set to any_value, + appPkgContent set to any_value, + not vnfPkgInfo // See Note 3 + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_002_NF" + + Test objective + "Check that MEPM responds with an error when it receives + a request for returning a App Package referred with a wrong ID" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_003_OK" + + Test objective + "Check that MEPM service returns an application package subscription when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.1", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_pkgm/v1/subscriptions" + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to SUBSCRIPTION_TYPE + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "201 Created", + body containing + AppPkgSubscriptionInfo containing + subscriptionId set to any_value, + subscriptionType set to SUBSCRIPTION_TYPE, + callbackUri set to URI, + _links + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_003_BR" + + Test objective + "Check that MEPM service sends an error when it receives a + malformed request for creating a new subscription on AppPackages" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.1" + + Config Id Config_MEC_2 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a POST containing + uri indicating value "/app_pkgm/v1/subscriptions", + body containing + AppPkgSubscription containing + callbackUri set to URI, + subscriptionType set to "ON-BOARDING" // Enum should be "ONBOARDING" + ; + ; + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_004_OK" + + Test objective + "Check that MEPM service returns the list of Application Package Subscriptions when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.2", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/subscriptions" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionInfoList containing + AppPkgSubscriptionInfo containing + links containing + self indicating value any_value, + subscriptions containing + href set to "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}", + subscriptionType indicating value any_value + ; + ; + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_005_OK" + + Test objective + "Check that MEPM service returns an Application Package Subscription when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.2", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + AppPkgSubscriptionInfo containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to any_value, + callbackUri set to any_value, + _links containing + self set to "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_005_NF" + + Test objective + "Check that MEPM service sends an error when it receives a query for a subscription on AppPackages + with a wrong identifier" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.2", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a Subscription containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_006_OK" + + Test objective + "Check that MEPM service deletes an Application Package Subscription when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.4" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "204 No Content" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_006_NF" + + Test objective + "Check that MEPM service sends an error when it receives a deletion request for a subscription on AppPackages + with a wrong identifier" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a Subscription containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_pkgm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_007_OK" + + Test objective + "Check that the MEPM service sends a application package notification + if the MEPM service has an associated subscription and the event is generated" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.5.3.1", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.6" + + Config Id Config_MEC_3 + PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a Subscription containing + subscriptionId set to SUBSCRIPTION_ID, + subscriptionType set to SUBSCRIPTION_TYPE, + callbackUri set to CALLBACK_URI, + _links + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a on_boarding_event containing + notificationId set to NOTIFICATION_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationId set to NOTIFICATION_ID, + notificationType indicating value any_value, + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to any_value, + appPkgId set to any_value, + appDId set to any_value, + _links containing + self set to "/app_pkgm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + ; + to the MEC_SUB entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_008_NA" + + Test objective + "Check that MEPM responds with an error when it receives + a POST request referring an application descriptor AppD" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.1" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/appd" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "405 Method Not Allow" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_009_OK" + + Test objective + "Check that MEPM returns the Application Descriptor contained on an on-boarded Application Package when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.2", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.1.2" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/appd", + accept set to ACCEPTED_CONTENT_TYPE + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + content_type, + body containing + payload set to FILE + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_009_NF" + + Test objective + "Check that MEPM responds with an error when it receives + a request for returning a App Descriptor referred with a wrong App Package ID" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.2", + "ETSI GS MEC 010-2 2.2.1, clause 6.2.1.2" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Package containing + appPkgId indicating value NON_EXISTENT_APP_PKG_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appd" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_010_FO" + + Test objective + "Check that MEPM responds with an error when it receives + a PUT request referring an application descriptor AppD" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.3" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/appd" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "403 Forbidden" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_011_NA" + + Test objective + "Check that MEPM responds with an error when it receives + a DELETE request referring an application descriptor AppD" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.4" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/appd" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "405 Method Not Allow" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_012_01_OK" + + Test objective + "Check that MEPM fetches the on-boarded application package content identified by appPkgId when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/package_content", + accept set to "application/zip" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + payload set to ZIP_FILE + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_012_02_OK" + + Test objective + "Check that MEPM fetches the on-boarded application package content identified by appDId when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/onboarded_app_packages/{ON_BOARDED_APPD_ID}/package_content", + accept set to "application/zip" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK", + body containing + payload set to ZIP_FILE + ; + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_012_01_NF" + + Test objective + "Check that MEPM fetches the on-boarded application package content identified by appPkgId when requested" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTING_APP_PKG_ID}/package_content", + accept set to "application/zip" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEO entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEPM_PKGM_012_02_NF" + + Test objective + "Check that MEPM service sends an error when it receives a query with an application package with a wrong identifier" + + Reference + "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2" + + Config Id Config_MEC_5 + PICS Selection PIC_APP_PACKAGE_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Package containing + appPkgId indicating value APP_PKG_ID, + appDId indicating value ON_BOARDED_APPD_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_pkgm/v1/onboarded_app_packages/{NON_EXISTING_ON_BOARDED_APPD_ID}/package_content", + accept set to "application/zip" + ; + from the MEO entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; + to the MEO entity + } + } + } + +} diff --git a/Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 b/Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..0ee061d994706f1c77ae73b7ab0978d4db1d55d9 --- /dev/null +++ b/Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 @@ -0,0 +1,631 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ +Package MEC_MEC010p2_APP_INSTANCE_LCM_BI { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_001_BR" + + Test objective + "Check that MEC API provider sends an error when it receives a malformed request + for the creation of a new App Instance" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.3.2-1", //CreateAppInstanceRequest + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1" //AppInstanceInfo + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances", + body containing + CreateAppInstanceRequest containing + appDDDId set to APP_D_ID //Wrong parameter into the request body + ; + ; + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; to the MEC_CONSUMER entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_003_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEC API provider fails on retrieving an App Instance when requested using wrong appInstanceId" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1" //AppInstanceInfo + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_004_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEC API provider fails on deletion of an App Instance when requested using wrong appInstanceId" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.2.3.4", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1" //AppInstanceInfo + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_005_BR" + + Test objective + "Check that MEC API provider service fails to instantiate an App Instance when it receives a malformed request" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.6.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.7.2-1" // InstantiateAppRequest + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value NOT_INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/instantiate", + body containing + InstantiateAppRequest containing + appERRORId set to APP_INSTANCE_ID //wrong name of the parameter + ; + ; + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad request" + ; to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_005_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEC API provider service fails to instantiate an App Instance when it receives a request + related to a not existing App Instance" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.6.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.7.2-1" // InstantiateAppRequest + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/instantiate" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_006_BR" + + Test objective + "Check that MEC API provider service fails to terminate an App Instance when it receives a malformed request" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.7.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.9.2-1" // TerminateAppRequest + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID, + instantiationState indicating value INSTANTIATED + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/terminate", + body containing + TerminateAppRequest containing + terminationERRORType set to GRACEFUL //wrong parameter + ; + ; + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad request" + ; to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_006_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEC API provider service fails to terminate an App Instance when it receives a request + related to a not existing App Instance" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.7.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.9.2-1" // TerminateAppRequest + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/terminate" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_007_BR" + + Test objective + "Check that MEC API provider service fails to operate on an App Instance when it receives a malformed request" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.8.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.8.2-1" // OperateAppRequest + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_Instance containing + appInstanceId indicating value APP_INSTANCE_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/operate", + body containing + OperateAppRequest containing + changeERRORStateTo set to any_value //wrong parameter + ; + ; + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad request" + ; to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_007_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEC API provider service fails to change the status of an App Instance when it receives a request + related to a not existing App Instance" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.8.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.8.2-1" // OperateAppRequest + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Instance containing + appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/operate" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_009_NF" + + Test objective + "Check that MEC API provider service sends an error when it receives a query for a not existing LCM Operation Occurrence" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.10.1.3.2", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.13.2-1" // AppLcmOpOcc + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Lcm_Op_Occ containing + appLcmOpOccId indicating value NON_EXISTENT_APP_LCM_OP_OCC_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_lcm/v1/app_lcm_op_occs/{NON_EXISTENT_APP_LCM_OP_OCC_ID}" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_010_BR" + + Test objective + "Check that MEC API provider service sends an error when it receives a malformed request to create a LCM Subscription" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.3.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.12.2-1", // AppInstSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.14.2-1", // AppLcmOpOccSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.25.2-1", // AppInstIdCreationSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.28.2-1", // AppInstIdDeletionSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.10.2-1", //AppInstSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.15.2-1", // AppLcmOpOccSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.26.2-1", // AppInstIdCreationSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.29.2-1" // AppInstIdDeletionSubscriptionInfo + + + Config Id Config_MEC_6 + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/subscriptions" + body containing + AppInstSubscriptionRequest containing + callbackERRORUri set to CALLBACK_URI //wrong parameter + ; + ; + ; + from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad Request" + ; + to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_012_NF" + + Test objective + "Check that MEC API provider service sends an error when it receives a query for a not existing LCM Subscription" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.3.3.2" + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Instance_Subscription containing + subscriptionId set to NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "/app_lcm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_013_NF" + + Test objective + "Check that MEC API provider service sends an error when it receives a deletion request for a not existing LCM Subscription" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.3.3.4" + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_Instance_Subscription containing + subscriptionId set to NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/app_lcm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_014_BR" + + Test objective + "Check that MEC API provider service fails to cancel an on going LCM Operation when it receives a malformed request" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.11.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.32.2-1" // CancelMode + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_LCM_op_occ containing + id indicating value APP_LCM_OP_OCC_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}/cancel", + body containing + CancelMode containing + CancelMode set to GRACEFULLL //It should be GRACEFUL + ; + ; + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "400 Bad request" + ; to the MEC_CONSUMER entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_014_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEC API provider service fails to cancel an on going LCM Operation when it receives a request + related to a not existing application LCM Operation" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.11.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.32.2-1" // CancelMode + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_LCM_op_occ containing + id indicating value NON_EXISTENT_APP_LCM_OP_OCC_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/app_lcm_op_occs/{NON_EXISTENT_APP_INSTANCE_ID}/cancel" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_015_NF" + + Test objective + "Check that MEC API provider service fails to make failed an on going LCM Operation when it receives a request + related to a not existing application LCM Operation" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.12.3.1" + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_LCM_op_occ containing + id indicating value NON_EXISTENT_APP_LCM_OP_OCC_ID; + + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/app_lcm_op_occs/{NON_EXISTENT_APP_INSTANCE_ID}/fail" + + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_016_NF" // Wrong APP_INSTANCE_ID + + Test objective + "Check that MEC API provider service fails to retry an LCM Operation when it receives a request + related to a not existing application LCM Operation" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.13.3.1" + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity not having a App_LCM_op_occ containing + id indicating value NON_EXISTENT_APP_LCM_OP_OCC_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/app_lcm_op_occs/{NON_EXISTENT_APP_INSTANCE_ID}/retry" + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "404 Not Found" + ; to the MEC_CONSUMER entity + } + } + } + + +} diff --git a/Test Purposes/MEX/LCM/AppInstanceMgmt_BV.tplan2 b/Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_BV.tplan2 similarity index 59% rename from Test Purposes/MEX/LCM/AppInstanceMgmt_BV.tplan2 rename to Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_BV.tplan2 index 77f7d357eac6f2b3593a0bd88e455fe94a7cafa6..d59c30a6309f08c4ffbe143cce79849a97799631 100644 --- a/Test Purposes/MEX/LCM/AppInstanceMgmt_BV.tplan2 +++ b/Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_BV.tplan2 @@ -1,18 +1,8 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC010_2_APP_INSTANCE_LCM { +Package MEC_MEC010p2_APP_INSTANCE_LCM { import all from MEC_Common; @@ -20,14 +10,14 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_001_OK" // It applies for MM1 and MM3 on MEC10-2 + TP Id "TP_MEC_MEC010p2_MEX_LCM_001_OK" // It applies for MM1 and MM3 on MEC10-2 Test objective "Check that MEC API provider creates a new App Package when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.1.3.1", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.3.2-1", //CreateAppInstanceRequest - "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.1.3.1", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.3.2-1", //CreateAppInstanceRequest + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1" //AppInstanceInfo Config Id Config_MEC_6 @@ -41,7 +31,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances", + uri indicating value "/app_lcm/v1/app_instances", body containing CreateAppInstanceRequest containing appDId set to APP_D_ID @@ -54,7 +44,7 @@ Package MEC010_2_APP_INSTANCE_LCM { status set to "201 Created", body containing AppInstanceInfo containing - appInstanceId set to any_value, + id set to any_value, appDId set to APP_D_ID, appProvider set to any_value, appName set to any_value, @@ -62,7 +52,9 @@ Package MEC010_2_APP_INSTANCE_LCM { appDVersion set to any_value, appPkgId set to any_value, instantiationState set to NOT_INSTANTIATED, - attribute _links + _links containing + self set to "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}" + ; ; ; ; to the MEC_CONSUMER entity @@ -72,13 +64,13 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_002_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_002_OK" Test objective "Check that MEC API provider retrieves the list of App instances when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.1.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.1.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1" //AppInstanceInfo Config Id Config_MEC_6 @@ -93,7 +85,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_instances" + uri indicating value "/app_lcm/v1/app_instances" ; from the MEC_CONSUMER entity } then { @@ -110,7 +102,9 @@ Package MEC010_2_APP_INSTANCE_LCM { appDVersion set to any_value, appPkgId set to any_value, instantiationState set to any_value, - attribute _links + _links containing + self set to "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}" + ; ; ; ; @@ -120,13 +114,13 @@ Package MEC010_2_APP_INSTANCE_LCM { } Test Purpose { - TP Id "TP_MEC_MEX_LCM_003_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_003_OK" Test objective "Check that MEC API provider retrieves an App Package when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1" //AppInstanceInfo + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.2.3.2", + "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1" //AppInstanceInfo Config Id Config_MEC_6 @@ -141,7 +135,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}" + uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}" ; from the MEC_CONSUMER entity } then { @@ -157,7 +151,9 @@ Package MEC010_2_APP_INSTANCE_LCM { appDVersion set to any_value, appPkgId set to any_value, instantiationState set to any_value, - attribute _links + _links containing + self set to "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}" + ; ; ; ; to the MEC_CONSUMER entity @@ -168,12 +164,12 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_004_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_004_OK" Test objective "Check that MEC API provider service deletes an App Instance when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.2.3.4" + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.2.3.4" Config Id Config_MEC_6 @@ -188,7 +184,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}" + uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}" ; from the MEC_CONSUMER entity } then { @@ -201,13 +197,13 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_005_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_005_OK" Test objective "Check that MEC API provider service instantiates an App Instance when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.7.2-1" // InstantiateAppRequest + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.6.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.7.2-1" // InstantiateAppRequest Config Id Config_MEC_6 @@ -224,10 +220,9 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/instantiate", + uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/instantiate", body containing InstantiateAppRequest containing - appInstanceId set to APP_INSTANCE_ID, selectedMECHostInfo set to SELECTED_MEC_HOST_INFO ; ; @@ -237,7 +232,7 @@ Package MEC010_2_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "202 Accepted", headers containing - Location set to any_value + Location set to "/app_lcm/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}" ; ; to the MEC_CONSUMER entity } @@ -246,13 +241,13 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_006_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_006_OK" Test objective "Check that MEC API provider service terminates an App Instance when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.9.2-1" // TerminateAppRequest + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.7.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.9.2-1" // TerminateAppRequest Config Id Config_MEC_6 @@ -269,7 +264,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/terminate", + uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/terminate", body containing TerminateAppRequest containing terminationType set to TERMINATION_TYPE @@ -281,7 +276,7 @@ Package MEC010_2_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "202 Accepted", headers containing - Location set to any_value + Location set to LOCATION_OF_APP_OP_OCC ; ; to the MEC_CONSUMER entity } @@ -291,7 +286,7 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_007_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_007_OK" Test objective "Check that MEC API provider service changes the status of an App Instance from its INITIAL_STATE to a given FINAL_STATE, when requested. @@ -299,8 +294,8 @@ Package MEC010_2_APP_INSTANCE_LCM { - STARTED/STOP - STOPPED/START" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.8.2-1" // OperateAppRequest + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.8.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.8.2-1" // OperateAppRequest Config Id Config_MEC_6 @@ -318,7 +313,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/operate", + uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/operate", body containing OperateAppRequest containing changeStateTo set to FINAL_STATE @@ -330,7 +325,7 @@ Package MEC010_2_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "202 Accepted", headers containing - Location set to any_value + Location set to LOCATION_OF_APP_OP_OCC ; ; to the MEC_CONSUMER entity } @@ -340,13 +335,13 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_008_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_008_OK" Test objective - "Check that MEC API provider service retrieves info about LCM Operation Occurrency on App Instances when requested" + "Check that MEC API provider service retrieves info about LCM Operation Occurrence on App Instances when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.9.1.3.2", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.9.3.2", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.13.2-1" // AppLcmOpOcc Config Id Config_MEC_6 @@ -362,7 +357,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_lcm_op_occs" + uri indicating value "/app_lcm/v1/app_lcm_op_occs" ; from the MEC_CONSUMER entity } then { @@ -371,32 +366,33 @@ Package MEC010_2_APP_INSTANCE_LCM { body containing AppLcmOpOccList containing AppInstanceLcmOpOcc containing - appLcmOpOccId set to APP_LCM_OP_OCC_ID, + id set to APP_LCM_OP_OCC_ID, operationState set to any_value, stateEnteredTime set to any_value, startTime set to any_value, lcmOperation set to any_value, - attribute _links containing - self set to "/alcmi/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}", + _links containing + self set to "/app_lcm/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}", appInstance set to any_value + ; ; ; ; ; - ; to the MEC_CONSUMER entity + to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEX_LCM_009_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_009_OK" Test objective - "Check that MEC API provider service retrieves info about LCM Operation Occurrency on an App Instance when requested" + "Check that MEC API provider service retrieves info about LCM Operation Occurrence on an App Instance when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.14.2-1" // AppLcmOpOcc + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.10.3.2", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.14.2-1" // AppLcmOpOcc Config Id Config_MEC_6 @@ -412,7 +408,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}" + uri indicating value "/app_lcm/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}" ; from the MEC_CONSUMER entity } then { @@ -420,33 +416,40 @@ Package MEC010_2_APP_INSTANCE_LCM { status set to "200 OK", body containing AppInstanceLcmOpOcc containing - appLcmOpOccId set to APP_LCM_OP_OCC_ID, + id set to APP_LCM_OP_OCC_ID, operationState set to any_value, stateEnteredTime set to any_value, startTime set to any_value, lcmOperation set to any_value, - attribute _links containing - self set to "/alcmi/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}", + _links containing + self set to "/app_lcm/v1/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}", appInstance set to any_value + ; ; ; ; - ; to the MEC_CONSUMER entity + to the MEC_CONSUMER entity } } } Test Purpose { - TP Id "TP_MEC_MEX_LCM_010_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_010_OK" Test objective "Check that MEC API provider service creates a LCM Subscription when requested, where the subscription request can have SUBSCRIPTION_TYPE AppInstanceStateChangeSubscription or AppLcmOpOccStateChangeSubscription" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.3.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.13.2-1", // AppInstSubscriptionRequest - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.10.2-1" // AppInstSubscriptionInfo + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.3.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.12.2-1", // AppInstSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.14.2-1", // AppLcmOpOccSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.25.2-1", // AppInstIdCreationSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.28.2-1", // AppInstIdDeletionSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.10.2-1", //AppInstSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.15.2-1", // AppLcmOpOccSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.26.2-1", // AppInstIdCreationSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.29.2-1" // AppInstIdDeletionSubscriptionInfo Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -459,9 +462,9 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/subscriptions" + uri indicating value "/app_lcm/v1/subscriptions" body containing - SubscriptionRequest containing + AppInstSubscriptionRequest containing callbackUri set to CALLBACK_URI, subscriptionType set to SUBSCRIPTION_TYPE ; @@ -473,11 +476,13 @@ Package MEC010_2_APP_INSTANCE_LCM { the IUT entity sends a HTTP_RESPONSE containing status set to "201 Created", body containing - SubscriptionInfo containing + AppInstSubscriptionRequest containing subscriptionId set to any_value, subscriptionType set to SUBSCRIPTION_TYPE, callbackUri set to CALLBACK_URI, - attribute _links + _links containing + _self set to "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; ; ; ; @@ -490,16 +495,20 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_011_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_011_OK" Test objective "Check that MEC API provider service sends the list of LCM Subscriptions when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.3.3.2", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.13.2-1", // AppInstSubscriptionRequest - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.15.2-1", // AppLcmOpOccSubscriptionRequest - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.10.2-1", // AppInstSubscriptionInfo - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.3.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.12.2-1", // AppInstSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.14.2-1", // AppLcmOpOccSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.25.2-1", // AppInstIdCreationSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.28.2-1", // AppInstIdDeletionSubscriptionRequest + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.10.2-1", //AppInstSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.15.2-1", // AppLcmOpOccSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.26.2-1", // AppInstIdCreationSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.29.2-1" // AppInstIdDeletionSubscriptionInfo Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -516,7 +525,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/subscriptions" + uri indicating value "/app_lcm/v1/subscriptions" ; from the MEC_CONSUMER entity } @@ -529,7 +538,9 @@ Package MEC010_2_APP_INSTANCE_LCM { subscriptionId set to SUBSCRIPTION_ID, subscriptionType set to SUBSCRIPTION_TYPE, callbackUri set to URI, - attribute _links + _links containing + _self set to "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; ; ; ; @@ -541,14 +552,16 @@ Package MEC010_2_APP_INSTANCE_LCM { Test Purpose { - TP Id "TP_MEC_MEX_LCM_012_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_012_OK" Test objective "Check that MEC API provider service sends the information about an existing LCM subscription when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.4.3.2", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.10.2-1", // AppInstSubscriptionInfo - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.4.3.2", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.10.2-1", //AppInstSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.15.2-1", // AppLcmOpOccSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.26.2-1", // AppInstIdCreationSubscriptionInfo + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.29.2-1" // AppInstIdDeletionSubscriptionInfo Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -565,7 +578,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/subscriptions/{SUBSCRIPTION_ID}" + uri indicating value "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_CONSUMER entity } @@ -577,7 +590,9 @@ Package MEC010_2_APP_INSTANCE_LCM { subscriptionId set to SUBSCRIPTION_ID, subscriptionType set to SUBSCRIPTION_TYPE, callbackUri set to URI, - attribute _links + _links containing + _self set to "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; ; ; ; @@ -586,17 +601,14 @@ Package MEC010_2_APP_INSTANCE_LCM { } } - - - - + Test Purpose { - TP Id "TP_MEC_MEX_LCM_013_OK" + TP Id "TP_MEC_MEC010p2_MEX_LCM_013_OK" Test objective "Check that MEC API provider service delete an existing LCM Subscription when requested" - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.4.3.4" + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.4.3.4" Config Id Config_MEC_6 PICS Selection PIC_APP_LCM_MANAGEMENT @@ -611,7 +623,7 @@ Package MEC010_2_APP_INSTANCE_LCM { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/subscriptions/{SUBSCRIPTION_ID}" + uri indicating value "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}" ; from the MEC_CONSUMER entity } @@ -625,5 +637,127 @@ Package MEC010_2_APP_INSTANCE_LCM { } +Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_014_OK" + + Test objective + "Check that MEC API provider service cancels an on going LCM Operation" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.11.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.32.2-1" // CancelMode + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_LCM_op_occ containing + id indicating value APP_LCM_OP_OCC_ID; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}/cancel" + body containing + CancelMode containing + CancelMode set to GRACEFUL + ; + ; + ; from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "202 Accepted" + ; to the MEC_CONSUMER entity + } + } + } + + +Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_015_OK" + + Test objective + "Check that MEC API provider service makes failed an on going LCM Operation" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.12.3.1" + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_LCM_op_occ containing + id indicating value APP_LCM_OP_OCC_ID, + operationStates indicating value FAILED_TEMP; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}/fail"; + from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 OK" + body containing + AppLcmOpOcc containing + SubscriptionInfo containing + id set to APP_LCM_OP_OCC_ID, + operationState set to FAILED, + stateEnteredTime set to any_value, + startTime set to any_value, + lcmOperation set to any_value, + _links containing + _self set to "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}", + appInstance set to "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}" + ; + ; + ; + ; + + + ; to the MEC_CONSUMER entity + } + } + } + + +Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_016_OK" + + Test objective + "Check that MEC API provider service retries an on going LCM Operation" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.13.3.1" + + Config Id Config_MEC_6 + + PICS Selection PIC_APP_LCM_MANAGEMENT + + Initial conditions with { + the IUT entity having a App_LCM_op_occ containing + id indicating value APP_LCM_OP_OCC_ID, + operationStates indicating value FAILED_TEMP; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/app_lcm/v1/app_instances/app_lcm_op_occs/{APP_LCM_OP_OCC_ID}/retry"; + from the MEC_CONSUMER entity + } + then { + the IUT entity sends a HTTP_RESPONSE containing + status set to "200 Accepted"; + to the MEC_CONSUMER entity + } + } + } } diff --git a/Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_notifications.tplan2 b/Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_notifications.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..2b15706bc4e30bf3e4134d04e5a447bd9e40f210 --- /dev/null +++ b/Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_notifications.tplan2 @@ -0,0 +1,62 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ +Package MEC_MEC010p2_LCM_NOTIF { + + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC010p2_MEX_LCM_017_OK" + + Test objective + "Check that MEC API provider sends a notification to the subscriber when an application LCM change event occurs" + + Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.5.3.1", + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.11.2-1", // AppInstNotification + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.16.2-1", // AppLcmOpOccNotification + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.27.2-1", // AppInstanceIdentifierCreationNotification + "ETSI GS MEC 010-2 2.2.1, table 6.2.2.30.2-1" // AppInstanceIdentifierDeletionNotification + + + Config Id Config_MEC_6 + PICS Selection PIC_APP_LCM_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a App_Instance_Subscription containing + subscriptionType indicating value SUBSCRIPTION_TYPE, + callbackUri indicating value CALLBACK_URI, + _links containing + self indicating value "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}" + ; + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity generates a application_lcm_change_event containing + notificationId set to NOTIFICATION_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + Notification containing + id set to NOTIFICATION_ID, + notificationType set to NOTIFICATION_TYPE, + subscriptionId set to SUBSCRIPTION_ID, + timeStamp set to any_value, + appInstanceId set to APP_INSTANCE_ID, + appDId set to any_value, + _links containing + subscription set to "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}" + ; + ; + ; + ; to the MEC_SUB entity + } + } + } + +} diff --git a/Test Purposes/SRV/APPSAQ/PlatAppServices.tplan2 b/Test Purposes/MEC011/SRV/APPSAQ/PlatAppServices.tplan2 similarity index 72% rename from Test Purposes/SRV/APPSAQ/PlatAppServices.tplan2 rename to Test Purposes/MEC011/SRV/APPSAQ/PlatAppServices.tplan2 index 3d1336d9bc1b02af2a1b5c508ccda406c98542fc..eb2a73e8b1e7fe5602c066367d5768f7507e7889 100644 --- a/Test Purposes/SRV/APPSAQ/PlatAppServices.tplan2 +++ b/Test Purposes/MEC011/SRV/APPSAQ/PlatAppServices.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_APPSAQ { +Package MEC_MEC011_SRV_APPSAQ { import all from MEC_Common; @@ -22,14 +12,14 @@ Package MEC_SRV_APPSAQ { * Application Service Availability Query (APPSAQ) */ Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_001_OK" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_001_OK" Test objective "Check that the IUT responds with a list of available MEC services for a given application instance when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.15.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.6.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L722#/definitions/ServiceInfo" //Outdated Config Id Config_MEC_1 @@ -42,7 +32,7 @@ Package MEC_SRV_APPSAQ { ; } - // MEC 011 2.1.1, clause 5.2.5 + // MEC 011 2.2.1, clause 5.2.5 Expected behaviour ensure that { when { @@ -52,13 +42,11 @@ Package MEC_SRV_APPSAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.15.3.1 + // MEC 011 2.2.1, clause 8.2.6.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - ServiceInfoList containing - ServiceInfo set to any_value - ; + ServiceInfo set to any_value // @TODO: Should be a list of ServiceInfos. How can we express it in TDL? ; ; to the MEC_APP entity @@ -68,13 +56,13 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_001_BR" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_001_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.15.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.6.3.1" Config Id Config_MEC_1 @@ -87,7 +75,7 @@ Package MEC_SRV_APPSAQ { ; } - // MEC 011 2.1.1, clause 5.2.5 + // MEC 011 2.2.1, clause 5.2.5 Expected behaviour ensure that { when { @@ -101,7 +89,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.15.3.1 + // MEC 011 2.2.1, clause 8.2.6.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -112,14 +100,14 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_002_OK" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_002_OK" Test objective "Check that the IUT notifies the authorised relevant (subscribed) application instances when a new service for a given application instance is registered" - Reference "ETSI GS MEC 011 2.1.1, clause 7.15.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.6.3.4", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L722#/definitions/ServiceInfo" //Outdated Config Id Config_MEC_1 @@ -134,7 +122,7 @@ Package MEC_SRV_APPSAQ { the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A } - // MEC 011 2.1.1, clause 5.2.4 + // MEC 011 2.2.1, clause 5.2.4 Expected behaviour ensure that { when { @@ -149,7 +137,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP_Registrant entity } then { - // MEC 011 2.1.1, clause 7.15.3.4 + // MEC 011 2.2.1, clause 8.2.6.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location set to LOCATION, @@ -161,7 +149,7 @@ Package MEC_SRV_APPSAQ { ; to the MEC_APP_Registrant entity and - // MEC 011 2.1.1, clause 6.4.2 + the IUT entity sends a notification_message containing body containing notificationType set to "SerAvailabilityNotification", @@ -180,13 +168,13 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_002_BR" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_002_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.15.3.4" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.6.3.4" Config Id Config_MEC_1 @@ -201,7 +189,7 @@ Package MEC_SRV_APPSAQ { the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A } - // MEC 011 2.1.1, clause 5.2.4 + // MEC 011 2.2.1, clause 5.2.4 Expected behaviour ensure that { when { @@ -217,7 +205,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP_Registrant entity } then { - // MEC 011 2.1.1, clause 7.15.3.4 + // MEC 011 2.2.1, clause 8.2.6.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -228,13 +216,13 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_002_NF" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_002_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.15.3.4" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.6.3.4" Config Id Config_MEC_1 @@ -242,14 +230,14 @@ Package MEC_SRV_APPSAQ { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing + the IUT entity not having a apps_instance containing instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; and the MEC_APP_Registrant entity being_in idle_state and the MEC_APP_Subscriber entity subscribed_to the MP1_SUBSCRIPTION_A } - // MEC 011 2.1.1, clause 5.2.4 + // MEC 011 2.2.1, clause 5.2.4 Expected behaviour ensure that { when { @@ -264,7 +252,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP_Registrant entity } then { - // MEC 011 2.1.1, clause 7.15.3.4 + // MEC 011 2.2.1, clause 8.2.6.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -275,14 +263,14 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_003_OK" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_003_OK" Test objective "Check that the IUT responds with the information on a specific service for a given application instance when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.14.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L722#/definitions/ServiceInfo" //Outdated Config Id Config_MEC_1 @@ -298,7 +286,7 @@ Package MEC_SRV_APPSAQ { ; } - // MEC 011 2.1.1, clause 5.2.5 + // MEC 011 2.2.1, clause 5.2.5 Expected behaviour ensure that { when { @@ -308,7 +296,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.14.3.1 + // MEC 011 2.2.1, clause 8.2.7.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -324,13 +312,13 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_003_NF" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_003_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.14.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.1" Config Id Config_MEC_1 @@ -341,12 +329,12 @@ Package MEC_SRV_APPSAQ { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity "not" having a services_running containing + the IUT entity not having a services_running containing service_id indicating value NON_EXISTENT_SERVICE_ID ; } - // MEC 011 2.1.1, clause 5.2.5 + // MEC 011 2.2.1, clause 5.2.5 Expected behaviour ensure that { when { @@ -356,7 +344,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.14.3.1 + // MEC 011 2.2.1, clause 8.2.7.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -367,14 +355,14 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_004_OK" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_004_OK" Test objective "Check that the IUT updates a service information for a given application instance when commanded by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.14.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.2", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L722#/definitions/ServiceInfo" //Outdated Config Id Config_MEC_1 @@ -391,13 +379,12 @@ Package MEC_SRV_APPSAQ { ; } - // MEC 011 2.1.1, clause 5.2.4 + // MEC 011 2.2.1, clause 5.2.4 Expected behaviour ensure that { when { the IUT entity receives a vPUT containing uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value PROPER_ETAG, body containing ServiceInfo containing version indicating value NEW_VERSION @@ -407,7 +394,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.14.3.2 + // MEC 011 2.2.1, clause 8.2.7.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -423,13 +410,13 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_004_BR" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_004_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.14.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.2" Config Id Config_MEC_1 @@ -445,13 +432,12 @@ Package MEC_SRV_APPSAQ { ; } - // MEC 011 2.1.1, clause 5.2.4 + // MEC 011 2.2.1, clause 5.2.4 Expected behaviour ensure that { when { the IUT entity receives a vPUT containing uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}", - if_match indicating value PROPER_ETAG, body containing ServiceInfo containing // Wrong parameter name should trigger an error response. @@ -462,7 +448,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.14.3.2 + // MEC 011 2.2.1, clause 8.2.7.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -473,13 +459,13 @@ Package MEC_SRV_APPSAQ { Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_004_NF" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_004_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.14.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.2" Config Id Config_MEC_1 @@ -490,18 +476,17 @@ Package MEC_SRV_APPSAQ { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity "not" having a services_running containing + the IUT entity not having a services_running containing service_id indicating value NON_EXISTENT_SERVICE_ID ; } - // MEC 011 2.1.1, clause 5.2.4 + // MEC 011 2.2.1, clause 5.2.4 Expected behaviour ensure that { when { the IUT entity receives a vPUT containing uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}", - if_match indicating value PROPER_ETAG, body containing ServiceInfo containing version indicating value NEW_VERSION @@ -511,7 +496,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.14.3.2 + // MEC 011 2.2.1, clause 8.2.7.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -520,15 +505,15 @@ Package MEC_SRV_APPSAQ { } } - +/* Removed cause the ETag is not mandatory. Cannot be tested Test Purpose { - TP Id "TP_MEC_SRV_APPSAQ_004_PF" + TP Id "TP_MEC_MEC011_SRV_APPSAQ_004_PF" Test objective "Check that the IUT responds with an error when a request sent by a MEC Application doesn't comply with a required condition" - Reference "ETSI GS MEC 011 2.1.1, clause 7.14.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.2" Config Id Config_MEC_1 @@ -544,7 +529,7 @@ Package MEC_SRV_APPSAQ { ; } - // MEC 011 2.1.1, clause 5.2.4 + // MEC 011 2.2.1, clause 5.2.4 Expected behaviour ensure that { when { @@ -560,7 +545,7 @@ Package MEC_SRV_APPSAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.14.3.2 + // MEC 011 2.2.1, clause 8.2.7.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" ; @@ -568,4 +553,84 @@ Package MEC_SRV_APPSAQ { } } } + + */ + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_APPSAQ_005_OK" + + Test objective + "Check that the IUT executes the deletion of a service + for a given application instance when requested by a MEC Application" + + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011 2.2.1, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{SERVICE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 8.2.7.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_APPSAQ_005_NF" + + Test objective + "Check that the IUT responds with an error when + a request for deletion of a unknown service is sent by a MEC Application" + + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.7.3.5" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity not having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011 2.2.1, clause 5.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "/mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/services/{NON_EXISTENT_SERVICE_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 8.2.7.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } } diff --git a/Test Purposes/SRV/APPSUB/PlatAppSubscriptions.tplan2 b/Test Purposes/MEC011/SRV/APPSUB/PlatAppSubscriptions.tplan2 similarity index 76% rename from Test Purposes/SRV/APPSUB/PlatAppSubscriptions.tplan2 rename to Test Purposes/MEC011/SRV/APPSUB/PlatAppSubscriptions.tplan2 index 37bb9cbb03638337b82bd9f3561e484462f7204f..1264874fe9f68d4555ed995464787a9eb1df4276 100644 --- a/Test Purposes/SRV/APPSUB/PlatAppSubscriptions.tplan2 +++ b/Test Purposes/MEC011/SRV/APPSUB/PlatAppSubscriptions.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_APPSUB { +Package MEC_MEC011_SRV_APPSUB { import all from MEC_Common; @@ -22,14 +12,14 @@ Package MEC_SRV_APPSUB { * Application Subscriptions (APPSUB) */ Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_001_OK" + TP Id "TP_MEC_MEC011_SRV_APPSUB_001_OK" Test objective "Check that the IUT responds with a list of subscriptions for notifications on services availability when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.6.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/Mp1SubscriptionLinkList" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.3.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L574#/definitions/MecAppSuptApiSubscriptionLinkList" //Outdated Config Id Config_MEC_1 @@ -42,7 +32,7 @@ Package MEC_SRV_APPSUB { ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -52,7 +42,7 @@ Package MEC_SRV_APPSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.6.3.1 + // MEC 011 2.2.1, clause 7.2.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -66,13 +56,13 @@ Package MEC_SRV_APPSUB { Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_001_NF" + TP Id "TP_MEC_MEC011_SRV_APPSUB_001_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.6.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.3.3.1" Config Id Config_MEC_1 @@ -80,12 +70,12 @@ Package MEC_SRV_APPSUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing + the IUT entity not having a apps_instance containing instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -95,7 +85,7 @@ Package MEC_SRV_APPSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.6.3.1 + // MEC 011 2.2.1, clause 7.2.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -106,14 +96,14 @@ Package MEC_SRV_APPSUB { Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_002_OK" + TP Id "TP_MEC_MEC011_SRV_APPSUB_002_OK" Test objective "Check that the IUT acknowledges the subscription by a MEC Application - to notifications on service availability events" + to notifications on termination events" - Reference "ETSI GS MEC 011 2.1.1, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.3.3.4", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L383#/definitions/AppTerminationNotificationSubscription" //Outdated Config Id Config_MEC_1 @@ -126,7 +116,7 @@ Package MEC_SRV_APPSUB { ; } - // MEC 011 2.1.1, clause 5.2.6.2 + // MEC 011 2.2.1, clause 7.2.3.3.4 Expected behaviour ensure that { when { @@ -142,7 +132,7 @@ Package MEC_SRV_APPSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.6.3.4 + // MEC 011 2.2.1, clause 7.2.3.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location set to LOCATION, @@ -160,13 +150,13 @@ Package MEC_SRV_APPSUB { Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_002_BR" + TP Id "TP_MEC_MEC011_SRV_APPSUB_002_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.6.3.4" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.3.3.4" Config Id Config_MEC_1 @@ -179,7 +169,7 @@ Package MEC_SRV_APPSUB { ; } - // MEC 011 2.1.1, clause 5.2.6.2 + // MEC 011 2.2.1, clause 5.2.6.2 Expected behaviour ensure that { when { @@ -188,7 +178,7 @@ Package MEC_SRV_APPSUB { body containing AppTerminationNotificationSubscription containing // Unknown value should trigger an error response. - subscriptionType indicating value INVALID_SUBSCRIPTION, + subscriptionType indicating value INVALID_SUBSCRIPTION_TYPE, callbackReference indicating value some_uri ; ; @@ -196,7 +186,7 @@ Package MEC_SRV_APPSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.6.3.4 + // MEC 011 2.2.1, clause 7.2.3.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -207,14 +197,14 @@ Package MEC_SRV_APPSUB { Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_003_OK" + TP Id "TP_MEC_MEC011_SRV_APPSUB_003_OK" Test objective "Check that the IUT responds with the information on a specific subscription when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.4.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L383#/definitions/AppTerminationNotificationSubscription" //Outdated Config Id Config_MEC_1 @@ -230,7 +220,7 @@ Package MEC_SRV_APPSUB { ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -240,7 +230,7 @@ Package MEC_SRV_APPSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.5.3.1 + // MEC 011 2.2.1, clause 7.2.4.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -256,14 +246,14 @@ Package MEC_SRV_APPSUB { Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_003_NF" + TP Id "TP_MEC_MEC011_SRV_APPSUB_003_NF" Test objective "Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.5.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.4.3.1" Config Id Config_MEC_1 @@ -274,12 +264,12 @@ Package MEC_SRV_APPSUB { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -289,7 +279,7 @@ Package MEC_SRV_APPSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.5.3.1 + // MEC 011 2.2.1, clause 7.2.4.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -300,13 +290,13 @@ Package MEC_SRV_APPSUB { Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_004_OK" + TP Id "TP_MEC_MEC011_SRV_APPSUB_004_OK" Test objective - "Check that the IUT acknowledges the unsubscribe from service availability event notifications - when commanded by a MEC Application" + "Check that the IUT acknowledges the unsubscribe from app termination + event notifications when commanded by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.5.3.5" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.4.3.5" Config Id Config_MEC_1 @@ -322,7 +312,7 @@ Package MEC_SRV_APPSUB { ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -332,7 +322,7 @@ Package MEC_SRV_APPSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.5.3.5 + // MEC 011 2.2.1, clause 7.2.4.3.5 the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; @@ -343,14 +333,14 @@ Package MEC_SRV_APPSUB { Test Purpose { - TP Id "TP_MEC_SRV_APPSUB_004_NF" + TP Id "TP_MEC_MEC011_SRV_APPSUB_004_NF" Test objective "Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.5.3.5" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.4.3.5" Config Id Config_MEC_1 @@ -358,7 +348,7 @@ Package MEC_SRV_APPSUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing + the IUT entity not having a apps_instance containing instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; and the IUT entity having a subscriptions containing @@ -366,7 +356,7 @@ Package MEC_SRV_APPSUB { ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -376,7 +366,7 @@ Package MEC_SRV_APPSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.5.3.5 + // MEC 011 2.2.1, clause 7.2.4.3.5 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; diff --git a/Test Purposes/MEC011/SRV/CONFTASK/ConfirmTasks.tplan2 b/Test Purposes/MEC011/SRV/CONFTASK/ConfirmTasks.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..0cbee430b86e849aee35c76a7cb35df18e6ded99 --- /dev/null +++ b/Test Purposes/MEC011/SRV/CONFTASK/ConfirmTasks.tplan2 @@ -0,0 +1,193 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC011_SRV_CONFTASK { + + import all from MEC_Common; + + + /* + * Confirmation Tasks (ready / termination ) + */ + + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_CONFTASK_001_OK" + + Test objective + "Check that the IUT responds that it has completed the application level termination" + + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.11.3.4", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L320#/definitions/AppTerminationConfirmation" //Outdated + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011 2.2.1, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/confirm_termination" + body containing + AppTerminationConfirmation containing + operationAction indicating value "TERMINATING" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 7.2.11.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_CONFTASK_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an operationAction is sent to an unknown application" + + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.11.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity not having a apps_instance containing + instance_id indicating value NON_EXSITENT_APP_INSTANCE_ID + ; + } + + // MEC 011 2.2.1, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mec_app_support/v1/applications/{NON_EXSITENT_APP_INSTANCE_ID}/confirm_termination" + body containing + AppTerminationConfirmation containing + operationAction indicating value "TERMINATING" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 7.2.10.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_CONFTASK_002_OK" + + Test objective + "Check that the IUT responds that the MEC application is up and running" + + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.12.3.4", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L311#/definitions/AppReadyConfirmation" //Outdated + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID + ; + } + + // MEC 011 2.2.1, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/confirm_ready" + body containing + AppReadyConfirmation containing + indication indicating value "READY" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 7.2.12.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_CONFTASK_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an indication is sent to an unknown application" + + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.12.3.4" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity not having a apps_instance containing + instance_id indicating value NON_EXSITENT_APP_INSTANCE_ID + ; + } + + // MEC 011 2.2.1, clause 5.2.8 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "mec_app_support/v1/applications/{NON_EXSITENT_APP_INSTANCE_ID}/confirm_ready" + body containing + AppReadyConfirmation containing + indication indicating value "READY" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 7.2.12.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/DNS/PlatDnsRules.tplan2 b/Test Purposes/MEC011/SRV/DNS/PlatDnsRules.tplan2 similarity index 78% rename from Test Purposes/SRV/DNS/PlatDnsRules.tplan2 rename to Test Purposes/MEC011/SRV/DNS/PlatDnsRules.tplan2 index 556a363e3d2bfa15169b3fca2adc5a1622271d27..bcc9fa89b6f092ade6a895f2bf44b8e487f4fe06 100644 --- a/Test Purposes/SRV/DNS/PlatDnsRules.tplan2 +++ b/Test Purposes/MEC011/SRV/DNS/PlatDnsRules.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_DNS { +Package MEC_MEC011_SRV_DNS { import all from MEC_Common; @@ -22,14 +12,14 @@ Package MEC_SRV_DNS { * DNS rules (DNS) */ Test Purpose { - TP Id "TP_MEC_SRV_DNS_001_OK" + TP Id "TP_MEC_MEC011_SRV_DNS_001_OK" Test objective "Check that the IUT responds with a list of active DNS rules when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.12.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.9.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L507#/definitions/DnsRule" //Outdated Config Id Config_MEC_1 @@ -42,7 +32,7 @@ Package MEC_SRV_DNS { ; } - // MEC 011 2.1.1, clause 5.2.8 + // MEC 011 2.2.1, clause 5.2.8 Expected behaviour ensure that { when { @@ -52,13 +42,11 @@ Package MEC_SRV_DNS { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.12.3.1 + // MEC 011 2.2.1, clause 7.2.9.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - DnsRuleList containing - DnsRule set to any_value - ; + DnsRule set to any_value //@TODO: Should be a list of DnsRules. How can this be expressed in TDL? ; ; to the MEC_APP entity @@ -68,14 +56,14 @@ Package MEC_SRV_DNS { Test Purpose { - TP Id "TP_MEC_SRV_DNS_002_OK" + TP Id "TP_MEC_MEC011_SRV_DNS_002_OK" Test objective "Check that the IUT responds with the information on a specific DNS rule when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.13.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.10.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L507#/definitions/DnsRule" //Outdated Config Id Config_MEC_1 @@ -91,7 +79,7 @@ Package MEC_SRV_DNS { ; } - // MEC 011 2.1.1, clause 5.2.8 + // MEC 011 2.2.1, clause 5.2.8 Expected behaviour ensure that { when { @@ -101,7 +89,7 @@ Package MEC_SRV_DNS { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.13.3.1 + // MEC 011 2.2.1, clause 7.2.10.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -117,13 +105,13 @@ Package MEC_SRV_DNS { Test Purpose { - TP Id "TP_MEC_SRV_DNS_002_NF" + TP Id "TP_MEC_MEC011_SRV_DNS_002_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.13.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.10.3.1" Config Id Config_MEC_1 @@ -134,12 +122,12 @@ Package MEC_SRV_DNS { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity "not" having a dns_rules containing + the IUT entity not having a dns_rules containing rule_id indicating value NON_EXISTENT_DNS_RULE_ID ; } - // MEC 011 2.1.1, clause 5.2.8 + // MEC 011 2.2.1, clause 5.2.8 Expected behaviour ensure that { when { @@ -149,7 +137,7 @@ Package MEC_SRV_DNS { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.13.3.1 + // MEC 011 2.2.1, clause 7.2.10.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -160,14 +148,14 @@ Package MEC_SRV_DNS { Test Purpose { - TP Id "TP_MEC_SRV_DNS_003_OK" + TP Id "TP_MEC_MEC011_SRV_DNS_003_OK" Test objective "Check that the IUT updates a specific DNS rule when commanded by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.13.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/DnsRule" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.10.3.2", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L507#/definitions/DnsRule" //Outdated Config Id Config_MEC_1 @@ -183,7 +171,7 @@ Package MEC_SRV_DNS { ; } - // MEC 011 2.1.1, clause 5.2.8 + // MEC 011 2.2.1, clause 5.2.8 Expected behaviour ensure that { when { @@ -198,7 +186,7 @@ Package MEC_SRV_DNS { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.13.3.2 + // MEC 011 2.2.1, clause 7.2.10.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -215,13 +203,13 @@ Package MEC_SRV_DNS { Test Purpose { - TP Id "TP_MEC_SRV_DNS_003_BR" + TP Id "TP_MEC_MEC011_SRV_DNS_003_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.13.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.10.3.2" Config Id Config_MEC_1 @@ -237,7 +225,7 @@ Package MEC_SRV_DNS { ; } - // MEC 011 2.1.1, clause 5.2.8 + // MEC 011 2.2.1, clause 5.2.8 Expected behaviour ensure that { when { @@ -253,7 +241,7 @@ Package MEC_SRV_DNS { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.13.3.2 + // MEC 011 2.2.1, clause 7.2.10.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -264,13 +252,13 @@ Package MEC_SRV_DNS { Test Purpose { - TP Id "TP_MEC_SRV_DNS_003_NF" + TP Id "TP_MEC_MEC011_SRV_DNS_003_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.13.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.10.3.2" Config Id Config_MEC_1 @@ -281,12 +269,12 @@ Package MEC_SRV_DNS { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity "not" having a dns_rules containing + the IUT entity not having a dns_rules containing rule_id indicating value NON_EXISTENT_DNS_RULE_ID ; } - // MEC 011 2.1.1, clause 5.2.8 + // MEC 011 2.2.1, clause 5.2.8 Expected behaviour ensure that { when { @@ -301,7 +289,7 @@ Package MEC_SRV_DNS { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.13.3.2 + // MEC 011 2.2.1, clause 7.2.10.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -310,15 +298,16 @@ Package MEC_SRV_DNS { } } - +/* + * @TODO: Removed cause the ETag is not a mandatory header attribute Test Purpose { - TP Id "TP_MEC_SRV_DNS_003_PF" + TP Id "TP_MEC_MEC011_SRV_DNS_003_PF" Test objective "Check that the IUT responds with an error when a request sent by a MEC Application doesn't comply with a required condition" - Reference "ETSI GS MEC 011 2.1.1, clause 7.13.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.10.3.2" Config Id Config_MEC_1 @@ -334,7 +323,7 @@ Package MEC_SRV_DNS { ; } - // MEC 011 2.1.1, clause 5.2.8 + // MEC 011 2.2.1, clause 5.2.8 Expected behaviour ensure that { when { @@ -349,7 +338,7 @@ Package MEC_SRV_DNS { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.13.3.2 + // MEC 011 2.2.1, clause 7.2.10.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" ; @@ -357,4 +346,5 @@ Package MEC_SRV_DNS { } } } + */ } diff --git a/Test Purposes/MEC011/SRV/LIV/Liveness.tplan2 b/Test Purposes/MEC011/SRV/LIV/Liveness.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..f300c33f51e6a950dcb48684215f7188ba68c3f5 --- /dev/null +++ b/Test Purposes/MEC011/SRV/LIV/Liveness.tplan2 @@ -0,0 +1,212 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC011_SRV_LIV { + + import all from MEC_Common; + + + /* + * MEC SERVICE LIVENESS (MSL) + */ + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_MSL_001_OK" + + Test objective + "Check that the IUT responds with the liveness of a MEC service instance + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.10.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID, + _links containing + self set to "link/to/this/resource", + liveness set to "link/to/individual/mecServiceLiveness" + ; + ; + } + + // MEC 011 2.2.1, clause 5.2.12 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "link/to/individual/mecServiceLiveness" + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 8.2.10.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ServiceLivenessInfo containing + ServiceState set to "ACTIVE" + ; + ; + ; + to the MEC_APP entity + } + } + } + + +Test Purpose { + TP Id "TP_MEC_MEC011_SRV_MSL_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an URI that cannot be mapped to a valid resource URI + is sent by a MEC Application" + + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.10.3.1" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID, + _links containing + self set to "link/to/this/resource", + liveness set to "link/to/individual/mecServiceLiveness" + ; + ; + } + + // MEC 011 2.2.1, clause 5.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "not_existing_link/to/individual/mecServiceLiveness" + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 8.2.10.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_MSL_002_OK" + + Test objective + "Check that the IUT updates the liveness of a MEC service instance + when requested by a MEC Application" + + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.10.3.3" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID, + state set to "SUSPENDED", + _links containing + self set to "link/to/this/resource", + liveness set to "link/to/individual/mecServiceLiveness" + ; + ; + } + + // MEC 011 2.2.1, clause 5.2.12 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + Uri indicating value "link/to/individual/mecServiceLiveness", + body containing + ServiceLivenessUpdate containing + state set to "ACTIVE" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 8.2.10.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ServiceLivenessInfo containing + state set to "ACTIVE" + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_MSL_002_BR" + + Test objective + "Check that the IUT responds with an error when + incorrect parameters were sent by a MEC Application" + + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.10.3.3" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a services_running containing + service_id indicating value SERVICE_ID, + state set to "INACTIVE", + _links containing + self set to "link/to/this/resource", + liveness set to "link/to/individual/mecServiceLiveness" + ; + ; + } + + // MEC 011 2.2.1, clause 5.2.12 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + Uri indicating value "link/to/individual/mecServiceLiveness", + body containing + ServiceLivenessInfo containing + state set to "INACTIVE" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 8.2.10.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + +} diff --git a/Test Purposes/SRV/SAQ/PlatServices.tplan2 b/Test Purposes/MEC011/SRV/SAQ/PlatServices.tplan2 similarity index 64% rename from Test Purposes/SRV/SAQ/PlatServices.tplan2 rename to Test Purposes/MEC011/SRV/SAQ/PlatServices.tplan2 index a0c34da44e7954431937ba1d18ac5c24b629e606..e30737e2979d1220ebb9883c5bf20806ae21ee29 100644 --- a/Test Purposes/SRV/SAQ/PlatServices.tplan2 +++ b/Test Purposes/MEC011/SRV/SAQ/PlatServices.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_SAQ { +Package MEC_MEC011_SRV_SAQ { import all from MEC_Common; @@ -22,14 +12,14 @@ Package MEC_SRV_SAQ { * Service Availability Query (SAQ) */ Test Purpose { - TP Id "TP_MEC_SRV_SAQ_001_OK" + TP Id "TP_MEC_MEC011_SRV_SAQ_001_OK" Test objective "Check that the IUT responds with a list of available MEC services when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.3.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L722#/definitions/ServiceInfo" //Outdated Config Id Config_MEC_1 @@ -39,23 +29,21 @@ Package MEC_SRV_SAQ { the IUT entity being_in idle_state } - // MEC 011 2.1.1, clause 5.2.5 + // MEC 011 2.2.1, clause 5.2.5 Expected behaviour ensure that { when { the IUT entity receives a vGET containing - Uri indicating value"/mec_service_mgmt/v1/services" + uri indicating value"/mec_service_mgmt/v1/services" ; from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.4.3.1 + // MEC 011 2.2.1, clause 8.2.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - ServiceInfoList containing - ServiceInfo set to any_value - ; + ServiceInfo set to any_value // @TODO: It should be a list of ServiceInfos. How to express it in TDL? ; ; to the MEC_APP entity @@ -65,13 +53,13 @@ Package MEC_SRV_SAQ { Test Purpose { - TP Id "TP_MEC_SRV_SAQ_001_BR" + TP Id "TP_MEC_MEC011_SRV_SAQ_001_BR" Test objective "Check that the IUT responds with an error when incorrect parameters were sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.4.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.3.3.1" Config Id Config_MEC_1 @@ -81,12 +69,12 @@ Package MEC_SRV_SAQ { the IUT entity being_in idle_state } - // MEC 011 2.1.1, clause 5.2.5 + // MEC 011 2.2.1, clause 5.2.5 Expected behaviour ensure that { when { the IUT entity receives a vGET containing - Uri indicating value"/mec_service_mgmt/v1/services" + uri indicating value"/mec_service_mgmt/v1/services" query_parameters containing // Wrong parameter name should trigger an error response. instance_id indicating value any_value @@ -95,7 +83,7 @@ Package MEC_SRV_SAQ { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.4.3.1 + // MEC 011 2.2.1, clause 8.2.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -106,14 +94,14 @@ Package MEC_SRV_SAQ { Test Purpose { - TP Id "TP_MEC_SRV_SAQ_002_OK" + TP Id "TP_MEC_MEC011_SRV_SAQ_002_OK" Test objective "Check that the IUT responds with the information on a specific service when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/ServiceInfo" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.4.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L722#/definitions/ServiceInfo" //Outdated Config Id Config_MEC_1 @@ -126,22 +114,26 @@ Package MEC_SRV_SAQ { ; } - // MEC 011 2.1.1, clause 5.2.5 + // MEC 011 2.2.1, clause 5.2.5 Expected behaviour ensure that { when { the IUT entity receives a vGET containing - Uri indicating value"/mec_service_mgmt/v1/services/{SERVICE_ID}" + uri indicating value"/mec_service_mgmt/v1/services/{SERVICE_ID}" ; from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.3.3.1 + // MEC 011 2.2.1, clause 8.2.4.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing ServiceInfo containing - serInstanceId set to SERVICE_ID + serInstanceId set to SERVICE_ID, + _links containing + self set to "link/to/resource", + liveness set to "ACTIVE" + ; ; ; ; @@ -152,14 +144,14 @@ Package MEC_SRV_SAQ { Test Purpose { - TP Id "TP_MEC_SRV_SAQ_002_NF" + TP Id "TP_MEC_MEC011_SRV_SAQ_002_NF" Test objective "Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.3.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.4.3.1" Config Id Config_MEC_1 @@ -167,22 +159,22 @@ Package MEC_SRV_SAQ { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a services_running containing + the IUT entity not having a services_running containing service_id indicating value NON_EXISTENT_SERVICE_ID ; } - // MEC 011 2.1.1, clause 5.2.5 + // MEC 011 2.2.1, clause 5.2.5 Expected behaviour ensure that { when { the IUT entity receives a vGET containing - Uri indicating value"/mec_service_mgmt/v1/services/{NON_EXISTENT_SERVICE_ID}" + uri indicating value"/mec_service_mgmt/v1/services/{NON_EXISTENT_SERVICE_ID}" ; from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.3.3.1 + // MEC 011 2.2.1, clause 8.2.4.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; diff --git a/Test Purposes/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 b/Test Purposes/MEC011/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 similarity index 76% rename from Test Purposes/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 rename to Test Purposes/MEC011/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 index 47d30efe709d2d4edc4ef4ac9b1d9818ff56cdfa..5f34ea25a2cefabeb7bbaf680a1dd487d7acb4a2 100644 --- a/Test Purposes/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 +++ b/Test Purposes/MEC011/SRV/SRVSUB/PlatSrvSubscriptions.tplan2 @@ -1,19 +1,8 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ - -Package MEC_SRV_SRVSUB { +Package MEC_MEC011_SRV_SRVSUB { import all from MEC_Common; @@ -22,14 +11,14 @@ Package MEC_SRV_SRVSUB { * Service Subscriptions (SRVSUB) */ Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_001_OK" + TP Id "TP_MEC_MEC011_SRV_SRVSUB_001_OK" Test objective "Check that the IUT responds with a list of subscriptions for notifications on services availability when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause7.2.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/Mp1SubscriptionLinkList" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.8.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L408#/definitions/MecServiceMgmtApiSubscriptionLinkList" //Outdated Config Id Config_MEC_1 @@ -42,7 +31,7 @@ Package MEC_SRV_SRVSUB { ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -52,11 +41,15 @@ Package MEC_SRV_SRVSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.2.3.2 + // MEC 011 2.2.1, clause 8.2.8.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - SubscriptionLinkList set to any_value + SubscriptionLinkList containing + _links containing + self set to any_value + ; + ; ; ; to the MEC_APP entity @@ -66,13 +59,13 @@ Package MEC_SRV_SRVSUB { Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_001_NF" + TP Id "TP_MEC_MEC011_SRV_SRVSUB_001_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.6.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.8.3.1" Config Id Config_MEC_1 @@ -80,12 +73,12 @@ Package MEC_SRV_SRVSUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing + the IUT entity not having a apps_instance containing instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -95,7 +88,7 @@ Package MEC_SRV_SRVSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.6.3.1 + // MEC 011 2.2.1, clause 8.2.8.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -106,14 +99,14 @@ Package MEC_SRV_SRVSUB { Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_002_OK" + TP Id "TP_MEC_MEC011_SRV_SRVSUB_002_OK" Test objective "Check that the IUT acknowledges the subscription by a MEC Application to notifications on service availability events" - Reference "ETSI GS MEC 011 2.1.1, clause 7.6.3.4", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.8.3.4", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L508#/definitions/SerAvailabilityNotificationSubscription" //Outdated Config Id Config_MEC_1 @@ -126,7 +119,7 @@ Package MEC_SRV_SRVSUB { ; } - // MEC 011 2.1.1, clause 5.2.6.2 + // MEC 011 2.2.1, clause 5.2.6.2 Expected behaviour ensure that { when { @@ -142,7 +135,7 @@ Package MEC_SRV_SRVSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.6.3.4 + // MEC 011 2.2.1, clause 8.2.8.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location set to LOCATION, @@ -160,13 +153,13 @@ Package MEC_SRV_SRVSUB { Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_002_BR" + TP Id "TP_MEC_MEC011_SRV_SRVSUB_002_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.6.3.4" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.8.3.4" Config Id Config_MEC_1 @@ -179,7 +172,7 @@ Package MEC_SRV_SRVSUB { ; } - // MEC 011 2.1.1, clause 5.2.6.2 + // MEC 011 2.2.1, clause 5.2.6.2 Expected behaviour ensure that { when { @@ -196,7 +189,7 @@ Package MEC_SRV_SRVSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.6.3.4 + // MEC 011 2.2.1, clause 8.2.8.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -207,14 +200,14 @@ Package MEC_SRV_SRVSUB { Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_003_OK" + TP Id "TP_MEC_MEC011_SRV_SRVSUB_003_OK" Test objective "Check that the IUT responds with the information on a specific subscription when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.5.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/SerAvailabilityNotificationSubscription" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.9.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L508#/definitions/SerAvailabilityNotificationSubscription" //Outdated Config Id Config_MEC_1 @@ -230,7 +223,7 @@ Package MEC_SRV_SRVSUB { ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -240,7 +233,7 @@ Package MEC_SRV_SRVSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.5.3.1 + // MEC 011 2.2.1, clause 8.2.9.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -256,14 +249,14 @@ Package MEC_SRV_SRVSUB { Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_003_NF" + TP Id "TP_MEC_MEC011_SRV_SRVSUB_003_NF" Test objective "Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.5.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.9.3.1" Config Id Config_MEC_1 @@ -274,12 +267,12 @@ Package MEC_SRV_SRVSUB { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -289,7 +282,7 @@ Package MEC_SRV_SRVSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.5.3.1 + // MEC 011 2.2.1, clause 8.2.9.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -300,13 +293,13 @@ Package MEC_SRV_SRVSUB { Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_004_OK" + TP Id "TP_MEC_MEC011_SRV_SRVSUB_004_OK" Test objective "Check that the IUT acknowledges the unsubscribe from service availability event notifications when commanded by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.5.3.5" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.9.3.5" Config Id Config_MEC_1 @@ -322,7 +315,7 @@ Package MEC_SRV_SRVSUB { ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { @@ -332,7 +325,7 @@ Package MEC_SRV_SRVSUB { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.5.3.5 + // MEC 011 2.2.1, clause 8.2.9.3.5 the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; @@ -343,14 +336,14 @@ Package MEC_SRV_SRVSUB { Test Purpose { - TP Id "TP_MEC_SRV_SRVSUB_004_NF" + TP Id "TP_MEC_MEC011_SRV_SRVSUB_004_NF" Test objective "Check that the IUT responds with an error when a request for an URI that cannot be mapped to a valid resource URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.5.3.5" + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.9.3.5" Config Id Config_MEC_1 @@ -358,25 +351,25 @@ Package MEC_SRV_SRVSUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing - instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID + the IUT entity having a apps_instance containing + instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity having a subscriptions containing - subscription_id indicating value SUBSCRIPTION_ID + the IUT entity not having a subscriptions containing + subscription_id indicating value NOT_EXISTENT_SUBSCRIPTION_ID ; } - // MEC 011 2.1.1, clause 5.2.6 + // MEC 011 2.2.1, clause 5.2.6 Expected behaviour ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "mec_service_mgmt/v1/applications/{NON_EXISTENT_APP_INSTANCE_ID}/subscriptions/{SUBSCRIPTION_ID}" + uri indicating value "mec_service_mgmt/v1/applications/{APP_INSTANCE_ID}/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.5.3.5 + // MEC 011 2.2.1, clause 8.2.9.3.5 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; diff --git a/Test Purposes/SRV/TIME/PlatTiming.tplan2 b/Test Purposes/MEC011/SRV/TIME/PlatTiming.tplan2 similarity index 58% rename from Test Purposes/SRV/TIME/PlatTiming.tplan2 rename to Test Purposes/MEC011/SRV/TIME/PlatTiming.tplan2 index 279b7387f668f8973657dbe98e5140f5ff22a812..90378764ed66c83575cb0dbf13d123d3bcdcfe8a 100644 --- a/Test Purposes/SRV/TIME/PlatTiming.tplan2 +++ b/Test Purposes/MEC011/SRV/TIME/PlatTiming.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_TIME { +Package MEC_MEC011_SRV_TIME { import all from MEC_Common; @@ -22,14 +12,14 @@ Package MEC_SRV_TIME { * Timing capabilities (TIME) */ Test Purpose { - TP Id "TP_MEC_SRV_TIME_001_OK" + TP Id "TP_MEC_MEC011_SRV_TIME_001_OK" Test objective "Check that the IUT responds with timing capabilities when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.7.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TimingCaps" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.5.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L758#/definition/TimingCaps" //Outdated Config Id Config_MEC_1 @@ -39,7 +29,7 @@ Package MEC_SRV_TIME { the IUT entity being_in idle_state } - // MEC 011 2.1.1, clause 5.2.10.3 + // MEC 011 2.2.1, clause 5.2.10.3 Expected behaviour ensure that { when { @@ -49,7 +39,7 @@ Package MEC_SRV_TIME { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.7.3.1 + // MEC 011 2.2.1, clause 7.2.5.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -63,14 +53,14 @@ Package MEC_SRV_TIME { Test Purpose { - TP Id "TP_MEC_SRV_TIME_002_OK" + TP Id "TP_MEC_MEC011_SRV_TIME_002_OK" Test objective "Check that the IUT responds with current time when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.8.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/CurrentTime" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.6.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L410#/definitions/CurrentTime" //Outdated Config Id Config_MEC_1 @@ -80,7 +70,7 @@ Package MEC_SRV_TIME { the IUT entity being_in idle_state } - // MEC 011 2.1.1, clause 5.2.10.2 + // MEC 011 2.2.1, clause 5.2.10.2 Expected behaviour ensure that { when { @@ -90,11 +80,15 @@ Package MEC_SRV_TIME { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.8.3.1 + // MEC 011 2.2.1, clause 7.2.6.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - CurrentTime set to any_value + CurrentTime containing + seconds set to CURRENT_TIME_SECONDS, + nanoSeconds set to CURRENT_TIME_NANOSECONDS, + timeSourceStatus set to TIME_SOURCE_STATUS + ; ; ; to the MEC_APP entity diff --git a/Test Purposes/SRV/TRAF/PlatTrafficRules.tplan2 b/Test Purposes/MEC011/SRV/TRAF/PlatTrafficRules.tplan2 similarity index 76% rename from Test Purposes/SRV/TRAF/PlatTrafficRules.tplan2 rename to Test Purposes/MEC011/SRV/TRAF/PlatTrafficRules.tplan2 index b12f9d2048c70096bc2732d5460756489bfe86cd..e934d16fdc902d9ff55c30ca127fdef747ddf963 100644 --- a/Test Purposes/SRV/TRAF/PlatTrafficRules.tplan2 +++ b/Test Purposes/MEC011/SRV/TRAF/PlatTrafficRules.tplan2 @@ -1,35 +1,24 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_TRAF { +Package MEC_MEC011_SRV_TRAF { import all from MEC_Common; - /* * Traffic rules (TRAF) */ Test Purpose { - TP Id "TP_MEC_SRV_TRAF_001_OK" + TP Id "TP_MEC_MEC011_SRV_TRAF_001_OK" Test objective "Check that the IUT responds with a list of available traffic rules when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.10.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.7.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L1352#/definitions/TrafficRule" //Outdated Config Id Config_MEC_1 @@ -42,7 +31,7 @@ Package MEC_SRV_TRAF { ; } - // MEC 011 2.1.1, clause 5.2.7 + // MEC 011 2.2.1, clause 5.2.7 Expected behaviour ensure that { when { @@ -52,13 +41,11 @@ Package MEC_SRV_TRAF { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.10.3.1 + // MEC 011 2.2.1, clause 7.2.7.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing - TrafficRuleList containing - TrafficRule set to any_value - ; + TrafficRule set to any_value //@TODO: Should be a list of TrafficRules. How can this be expressed in TDL ; ; to the MEC_APP entity @@ -68,13 +55,13 @@ Package MEC_SRV_TRAF { Test Purpose { - TP Id "TP_MEC_SRV_TRAF_001_NF" + TP Id "TP_MEC_MEC011_SRV_TRAF_001_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.10.3.1" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.7.3.1" Config Id Config_MEC_1 @@ -82,12 +69,12 @@ Package MEC_SRV_TRAF { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a apps_instance containing + the IUT entity not having a apps_instance containing instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } - // MEC 011 2.1.1, clause 5.2.7 + // MEC 011 2.2.1, clause 5.2.7 Expected behaviour ensure that { when { @@ -97,7 +84,7 @@ Package MEC_SRV_TRAF { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.10.3.1 + // MEC 011 2.2.1, clause 7.2.7.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -108,14 +95,14 @@ Package MEC_SRV_TRAF { Test Purpose { - TP Id "TP_MEC_SRV_TRAF_002_OK" + TP Id "TP_MEC_MEC011_SRV_TRAF_002_OK" Test objective "Check that the IUT responds with the information on a specific traffic rule when queried by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.11.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.8.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L1352#/definitions/TrafficRule" //Outdated Config Id Config_MEC_1 @@ -131,7 +118,7 @@ Package MEC_SRV_TRAF { ; } - // MEC 011 2.1.1, clause 5.2.7 + // MEC 011 2.2.1, clause 5.2.7 Expected behaviour ensure that { when { @@ -141,7 +128,7 @@ Package MEC_SRV_TRAF { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.11.3.1 + // MEC 011 2.2.1, clause 7.2.8.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -157,14 +144,14 @@ Package MEC_SRV_TRAF { Test Purpose { - TP Id "TP_MEC_SRV_TRAF_003_OK" + TP Id "TP_MEC_MEC011_SRV_TRAF_003_OK" Test objective "Check that the IUT updates a specific traffic rule when commanded by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.11.3.2", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TrafficRule" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.8.3.2", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecAppSupportApi.yaml#L1352#/definitions/TrafficRule" //Outdated Config Id Config_MEC_1 @@ -180,13 +167,12 @@ Package MEC_SRV_TRAF { ; } - // MEC 011 2.1.1, clause 5.2.7 + // MEC 011 2.2.1, clause 5.2.7 Expected behaviour ensure that { when { the IUT entity receives a vPUT containing uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - if_match indicating value PROPER_ETAG body containing TrafficRule containing action indicating value "DROP" @@ -196,7 +182,7 @@ Package MEC_SRV_TRAF { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.11.3.2 + // MEC 011 2.2.1, clause 7.2.8.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK" body containing @@ -213,13 +199,13 @@ Package MEC_SRV_TRAF { Test Purpose { - TP Id "TP_MEC_SRV_TRAF_003_BR" + TP Id "TP_MEC_MEC011_SRV_TRAF_003_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.11.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.8.3.2" Config Id Config_MEC_1 @@ -235,13 +221,12 @@ Package MEC_SRV_TRAF { ; } - // MEC 011 2.1.1, clause 5.2.7 + // MEC 011 2.2.1, clause 5.2.7 Expected behaviour ensure that { when { the IUT entity receives a vPUT containing uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{TRAFFIC_RULE_ID}", - if_match indicating value PROPER_ETAG body containing TrafficRule containing // Invalid parameter value should trigger an error response. @@ -252,7 +237,7 @@ Package MEC_SRV_TRAF { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.11.3.2 + // MEC 011 2.2.1, clause 7.2.8.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -263,13 +248,13 @@ Package MEC_SRV_TRAF { Test Purpose { - TP Id "TP_MEC_SRV_TRAF_003_NF" + TP Id "TP_MEC_MEC011_SRV_TRAF_003_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 011 2.1.1, clause 7.11.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.8.3.2" Config Id Config_MEC_1 @@ -280,18 +265,17 @@ Package MEC_SRV_TRAF { the IUT entity having a apps_instance containing instance_id indicating value APP_INSTANCE_ID ; and - the IUT entity "not" having a traffic_rules containing + the IUT entity not having a traffic_rules containing rule_id indicating value NON_EXISTENT_TRAFFIC_RULE_ID ; } - // MEC 011 2.1.1, clause 5.2.7 + // MEC 011 2.2.1, clause 5.2.7 Expected behaviour ensure that { when { the IUT entity receives a vPUT containing uri indicating value "mec_app_support/v1/applications/{APP_INSTANCE_ID}/traffic_rules/{NON_EXISTENT_TRAFFIC_RULE_ID}", - if_match indicating value PROPER_ETAG body containing TrafficRule containing action indicating value "DROP" @@ -301,7 +285,7 @@ Package MEC_SRV_TRAF { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.11.3.2 + // MEC 011 2.2.1, clause 7.2.8.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -310,15 +294,18 @@ Package MEC_SRV_TRAF { } } - +/* + + //@TODO: Commented as ETag is not mandatory + Test Purpose { - TP Id "TP_MEC_SRV_TRAF_003_PF" + TP Id "TP_MEC_MEC011_SRV_TRAF_003_PF" Test objective "Check that the IUT responds with an error when a request sent by a MEC Application doesn't comply with a required condition" - Reference "ETSI GS MEC 011 2.1.1, clause 7.11.3.2" + Reference "ETSI GS MEC 011 2.2.1, clause 7.2.8.3.2" Config Id Config_MEC_1 @@ -334,7 +321,7 @@ Package MEC_SRV_TRAF { ; } - // MEC 011 2.1.1, clause 5.2.7 + // MEC 011 2.2.1, clause 5.2.7 Expected behaviour ensure that { when { @@ -350,7 +337,7 @@ Package MEC_SRV_TRAF { from the MEC_APP entity } then { - // MEC 011 2.1.1, clause 7.11.3.2 + // MEC 011 2.2.1, clause 7.2.8.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "412 Precondition Failed" ; @@ -358,4 +345,5 @@ Package MEC_SRV_TRAF { } } } +*/ } diff --git a/Test Purposes/MEC011/SRV/TRANS/PlatTransport.tplan2 b/Test Purposes/MEC011/SRV/TRANS/PlatTransport.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..5d7ee30b6a97572a037896010e91101ffb299169 --- /dev/null +++ b/Test Purposes/MEC011/SRV/TRANS/PlatTransport.tplan2 @@ -0,0 +1,53 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC011_SRV_TRANS { + + import all from MEC_Common; + + + /* + * Transport (TRANS) + */ + Test Purpose { + TP Id "TP_MEC_MEC011_SRV_TRANS_001_OK" + + Test objective + "Check that the IUT responds with a list of available transports + when queried by a MEC Application" + + Reference "ETSI GS MEC 011 2.2.1, clause 8.2.5.3.1", + "https://forge.etsi.org/rep/mec/gs011-app-enablement-api/blob/master/MecServiceMgmtApi.yaml#L783#/definitions/TransportInfo" //Outdated + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 011 2.2.1, clause 5.2.9 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mec_service_mgmt/v1/transports" + ; + from the MEC_APP entity + } + then { + // MEC 011 2.2.1, clause 8.2.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + TransportInfo set to any_value // @TODOL Should be a TransportInfo list. How to express this in TDL? + ; + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 b/Test Purposes/MEC012/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 similarity index 74% rename from Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 rename to Test Purposes/MEC012/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 index e60a0bb1e86fd316f0affdd5aa56812d08c579fe..392f9dc1d5983208de16b48085ab7d6a02c79fd1 100644 --- a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 +++ b/Test Purposes/MEC012/SRV/RNIS/RnisAllSubscriptions_BO_BI.tplan2 @@ -1,24 +1,14 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC012_SRV_RNIS_SUBS_BI { +Package MEC_MEC012_SRV_RNIS_SUBS_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_RNIS_011_BR" // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType) + TP Id "TP_MEC_MEC012_SRV_RNIS_011_BR" // Negative test: Trying to get a 400 Bad Request using incorrect parameters (Not existent subscriptionType) Test objective "Check that the RNIS service responds with an error when it receives a request to get all RNIS subscriptions with a wrong subscription type" @@ -54,7 +44,7 @@ Package MEC012_SRV_RNIS_SUBS_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_012_BR" // 400 Bad Request + TP Id "TP_MEC_MEC012_SRV_RNIS_012_BR" // 400 Bad Request 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 format" diff --git a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 b/Test Purposes/MEC012/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 similarity index 83% rename from Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 rename to Test Purposes/MEC012/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 index 209ae20b891076c898b61bd726fe4a0e4ab79eb5..dd24cfc9c92b0abf10b4e0efdb11d96bbb4f9f80 100644 --- a/Test Purposes/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 +++ b/Test Purposes/MEC012/SRV/RNIS/RnisAllSubscriptions_BV.tplan2 @@ -1,24 +1,14 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC012_SRV_RNIS_SUBS_BV { +Package MEC_MEC012_SRV_RNIS_SUBS_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_RNIS_011_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_011_OK" Test objective "Check that the RNIS service sends the list of links to the relevant RNIS subscriptions when requested. @@ -72,7 +62,7 @@ Package MEC012_SRV_RNIS_SUBS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_012_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_012_OK" Test objective "Check that the RNIS service creates a new RNIS subscription. diff --git a/Test Purposes/SRV/RNIS/RnisNotifications.tplan2 b/Test Purposes/MEC012/SRV/RNIS/RnisNotifications.tplan2 similarity index 93% rename from Test Purposes/SRV/RNIS/RnisNotifications.tplan2 rename to Test Purposes/MEC012/SRV/RNIS/RnisNotifications.tplan2 index d2632ab2bb32926715514496598dd952f899da9b..033cc2f3fba9ed63a9219aea768983abb4abb9f9 100644 --- a/Test Purposes/SRV/RNIS/RnisNotifications.tplan2 +++ b/Test Purposes/MEC012/SRV/RNIS/RnisNotifications.tplan2 @@ -1,24 +1,14 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC012_SRV_RNIS_NOTIF_BV { +Package MEC_MEC012_SRV_RNIS_NOTIF_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_RNIS_001_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_001_OK" Test objective "Check that the RNIS service sends an RNIS notification about cell change @@ -64,7 +54,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_002_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_002_OK" Test objective "Check that the RNIS service sends an RNIS notification about RAB establishment @@ -112,7 +102,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_003_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_003_OK" Test objective "Check that the RNIS service sends an RNIS notification about RAB modification @@ -154,7 +144,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_004_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_004_OK" Test objective "Check that the RNIS service sends an RNIS notification about RAB release @@ -197,7 +187,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_005_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_005_OK" Test objective "Check that the RNIS service sends an RNIS notification about UE measurement report @@ -241,7 +231,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_006_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_006_OK" Test objective "Check that the RNIS service sends an RNIS notification about UE timing advance @@ -284,7 +274,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_007_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_007_OK" Test objective "Check that the RNIS service sends an RNIS notification about UE carrier aggregation reconfiguration @@ -327,7 +317,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_008_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_008_OK" Test objective "Check that the RNIS service sends an RNIS notification about S1-U bearer @@ -372,7 +362,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_009_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_009_OK" Test objective "Check that the RNIS service sends an RNIS notification about 5G NR UE measurement report @@ -411,7 +401,7 @@ Package MEC012_SRV_RNIS_NOTIF_BV { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_010_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_010_OK" Test objective "Check that the RNIS service sends an RNIS notification on subscription expiration diff --git a/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 b/Test Purposes/MEC012/SRV/RNIS/RnisQuery_BO_BI.tplan2 similarity index 84% rename from Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 rename to Test Purposes/MEC012/SRV/RNIS/RnisQuery_BO_BI.tplan2 index 3b7fec67a821470e0a99b4fb9b87563334316b52..5216e45c7ad328de516a8fc6458ebeed416a27a6 100644 --- a/Test Purposes/SRV/RNIS/RnisQuery_BO_BI.tplan2 +++ b/Test Purposes/MEC012/SRV/RNIS/RnisQuery_BO_BI.tplan2 @@ -1,24 +1,14 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC012_SRV_RNIS_QUERY_BI { +Package MEC_MEC012_SRV_RNIS_QUERY_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_RNIS_016_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC012_SRV_RNIS_016_BR" // Negative test: 400 Bad request Test objective "Check that the RNIS service returns an error when the RAB information is requested with a malformatted message" @@ -56,7 +46,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_016_NF" // Negative test: 404 Not found + TP Id "TP_MEC_MEC012_SRV_RNIS_016_NF" // Negative test: 404 Not found Test objective "Check that the RNIS service returns an error when the RAB information for a not existing element is requested" @@ -68,7 +58,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { PICS Selection PIC_RNIS_QUERY Initial conditions with { - the IUT entity "not" having a RabInfo containing + the IUT entity not having a RabInfo containing cellUserInfo containing ecgi indicating value CELL_ID ; @@ -94,7 +84,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_017_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC012_SRV_RNIS_017_BR" // Negative test: 400 Bad request Test objective "Check that the RNIS service returns an error when the PLMN information is requested with a malformatted message" @@ -130,7 +120,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_017_NF" // Negative test: 404 Not found + TP Id "TP_MEC_MEC012_SRV_RNIS_017_NF" // Negative test: 404 Not found Test objective "Check that the RNIS service returns an error when the PLMN information for a not existing element is requested" @@ -142,7 +132,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { PICS Selection PIC_RNIS_QUERY Initial conditions with { - the IUT entity "not" having a PlmnInfo containing + the IUT entity not having a PlmnInfo containing appInstanceId indicating value NOT_EXISTENT_APP_INSTANCE_ID ; } @@ -166,7 +156,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_018_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC012_SRV_RNIS_018_BR" // Negative test: 400 Bad request Test objective "Check that the RNIS service returns an error when the S1 bearer information is requested with a malformatted message" @@ -205,7 +195,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_018_NF" // Negative test: 404 Not found + TP Id "TP_MEC_MEC012_SRV_RNIS_018_NF" // Negative test: 404 Not found Test objective "Check that the RNIS service returns an error when the S1 bearer information for a not existing element is requested" @@ -217,7 +207,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { PICS Selection PIC_RNIS_QUERY Initial conditions with { - the IUT entity "not" having a S1BearerInfo containing + the IUT entity not having a S1BearerInfo containing s1UeInfo containing ecgi indicating value NOT_EXISTENT_CELL_ID ; @@ -243,7 +233,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_019_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC012_SRV_RNIS_019_BR" // Negative test: 400 Bad request Test objective "Check that the RNIS service returns an error when the L2 measurements information is requested with a malformatted message" @@ -281,7 +271,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_019_NF" // Negative test: 404 Not found + TP Id "TP_MEC_MEC012_SRV_RNIS_019_NF" // Negative test: 404 Not found Test objective "Check that the RNIS service returns an error when the L2 measurements information for a not existing element is requested" @@ -293,7 +283,7 @@ Package MEC012_SRV_RNIS_QUERY_BI { PICS Selection PIC_RNIS_QUERY Initial conditions with { - the IUT entity "not" having a L2_Meas_information containing + the IUT entity not having a L2_Meas_information containing cellInfo containing ecgi indicating value NOT_EXISTENT_CELL_ID ; diff --git a/Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 b/Test Purposes/MEC012/SRV/RNIS/RnisQuery_BV.tplan2 similarity index 87% rename from Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 rename to Test Purposes/MEC012/SRV/RNIS/RnisQuery_BV.tplan2 index b6af8b3008867d265eca88d4fbbd56a832e6584d..46e375afb9e8399d353cda700fbd2856bbe19e49 100644 --- a/Test Purposes/SRV/RNIS/RnisQuery_BV.tplan2 +++ b/Test Purposes/MEC012/SRV/RNIS/RnisQuery_BV.tplan2 @@ -1,24 +1,14 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC012_SRV_RNIS_QUERY_BV { +Package MEC_MEC012_SRV_RNIS_QUERY_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_RNIS_016_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_016_OK" Test objective "Check that the RNIS service returns the RAB information when requested" @@ -67,7 +57,7 @@ Package MEC012_SRV_RNIS_QUERY_BV { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_017_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_017_OK" Test objective "Check that the RNIS service returns the PLMN information when requested" @@ -109,7 +99,7 @@ Package MEC012_SRV_RNIS_QUERY_BV { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_018_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_018_OK" Test objective "Check that the RNIS service returns the S1 bearer information" @@ -157,7 +147,7 @@ Package MEC012_SRV_RNIS_QUERY_BV { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_019_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_019_OK" Test objective "Check that the RNIS service returns the L2 measurements information" diff --git a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 b/Test Purposes/MEC012/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 similarity index 80% rename from Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 rename to Test Purposes/MEC012/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 index c7c959e32b6272d6640237b53833eea1c279f9f3..2efcf176550ee08fbba10abfd764f47a96862d54 100644 --- a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 +++ b/Test Purposes/MEC012/SRV/RNIS/RnisSpecificSubscription_BO_BI.tplan2 @@ -1,23 +1,13 @@ -/** -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. +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC012_SRV_RNIS_SUB_BI { +Package MEC_MEC012_SRV_RNIS_SUB_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_RNIS_013_NF" // Negative test: 404 Not Found + TP Id "TP_MEC_MEC012_SRV_RNIS_013_NF" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when a not existing RNIS subscription is requested" @@ -29,7 +19,7 @@ Package MEC012_SRV_RNIS_SUB_BI { PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { - the IUT entity "not" having a RNIS_subscription containing + the IUT entity not having a RNIS_subscription containing _links containing self set to "/rni/v2/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; @@ -53,7 +43,7 @@ Package MEC012_SRV_RNIS_SUB_BI { Test Purpose { // Negative test: 400 Bad request - TP Id "TP_MEC_SRV_RNIS_014_BR" + TP Id "TP_MEC_MEC012_SRV_RNIS_014_BR" Test objective "Check that the RNIS service sends an error when it receives a malformed modify request for a RNIS subscription" @@ -97,7 +87,7 @@ Package MEC012_SRV_RNIS_SUB_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_014_NF" // Negative test: 404 Not Found + TP Id "TP_MEC_MEC012_SRV_RNIS_014_NF" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when a modification for a not existing RNIS subscription is requested" @@ -109,7 +99,7 @@ Package MEC012_SRV_RNIS_SUB_BI { PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { - the IUT entity "not" having a RNIS_subscription containing + the IUT entity not having a RNIS_subscription containing _links containing self set to "/rni/v2/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; @@ -133,7 +123,7 @@ Package MEC012_SRV_RNIS_SUB_BI { } Test Purpose { - TP Id "TP_MEC_SRV_RNIS_015_NF" // Negative test: 404 Not Found + TP Id "TP_MEC_MEC012_SRV_RNIS_015_NF" // Negative test: 404 Not Found Test objective "Check that the RNIS service responds with error when the deletion of a not existing RNIS subscription is requested" @@ -145,7 +135,7 @@ Package MEC012_SRV_RNIS_SUB_BI { PICS Selection PIC_RNIS_SPECIFIC_SUBSCRIPTION Initial conditions with { - the IUT entity "not" having a RNIS_subscription containing + the IUT entity not having a RNIS_subscription containing _links containing self set to "/rni/v2/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" ; diff --git a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 b/Test Purposes/MEC012/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 similarity index 85% rename from Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 rename to Test Purposes/MEC012/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 index 91250174176a07ff26f4fda6a8aad66f88ee6089..fe1d6ee533ce703bf9d475e9e0588a83dd667c62 100644 --- a/Test Purposes/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 +++ b/Test Purposes/MEC012/SRV/RNIS/RnisSpecificSubscription_BV.tplan2 @@ -1,24 +1,14 @@ -/** -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. +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC012_SRV_RNIS_SUB_BV { +Package MEC_MEC012_SRV_RNIS_SUB_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_RNIS_013_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_013_OK" Test objective "Check that the RNIS service sends a RNIS subscription when requested. @@ -74,7 +64,7 @@ Package MEC012_SRV_RNIS_SUB_BV { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_014_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_014_OK" Test objective "Check that the RNIS service modifies a RNIS subscription when requested" @@ -130,7 +120,7 @@ Package MEC012_SRV_RNIS_SUB_BV { Test Purpose { - TP Id "TP_MEC_SRV_RNIS_015_OK" + TP Id "TP_MEC_MEC012_SRV_RNIS_015_OK" Test objective "Check that the RNIS service deletes a RNIS subscription when requested" diff --git a/Test Purposes/SRV/RLOCLOOK/PlatRadioNodeLocation.tplan2 b/Test Purposes/MEC013/SRV/RLOCLOOK/PlatRadioNodeLocation.tplan2 similarity index 76% rename from Test Purposes/SRV/RLOCLOOK/PlatRadioNodeLocation.tplan2 rename to Test Purposes/MEC013/SRV/RLOCLOOK/PlatRadioNodeLocation.tplan2 index b50eb3d0a56055a6f1b86c3f1d24a35d781e497f..dda375e55ac9600132050006d2b2cdcab6e8f5c1 100644 --- a/Test Purposes/SRV/RLOCLOOK/PlatRadioNodeLocation.tplan2 +++ b/Test Purposes/MEC013/SRV/RLOCLOOK/PlatRadioNodeLocation.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_RLOCLOOK { +Package MEC_MEC013_SRV_RLOCLOOK { import all from MEC_Common; @@ -23,7 +13,7 @@ Package MEC_SRV_RLOCLOOK { */ Test Purpose { - TP Id "TP_MEC_SRV_RLOCLOOK_001_OK" + TP Id "TP_MEC_MEC013_SRV_RLOCLOOK_001_OK" Test objective "Check that the IUT responds with the list of radio nodes currently associated with the MEC host and the location of each radio node @@ -68,7 +58,7 @@ Package MEC_SRV_RLOCLOOK { Test Purpose { - TP Id "TP_MEC_SRV_RLOCLOOK_001_NF" + TP Id "TP_MEC_MEC013_SRV_RLOCLOOK_001_NF" Test objective "Check that the IUT responds with an error when @@ -84,7 +74,7 @@ Package MEC_SRV_RLOCLOOK { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a ue_location containing + the IUT entity not having a ue_location containing zoneId indicating value NON_EXISTENT_ZONE_ID ; } diff --git a/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 b/Test Purposes/MEC013/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 similarity index 86% rename from Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 rename to Test Purposes/MEC013/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 index f9a6d46656bc77a9acb2eb1be580badbf0cdfeca..1d7862c025ce18056fa2d07870e237ed146772a2 100644 --- a/Test Purposes/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 +++ b/Test Purposes/MEC013/SRV/UEAREASUB/PlatUeAreaSubscription.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_UEAREASUB { +Package MEC_MEC013_SRV_UEAREASUB { import all from MEC_Common; @@ -23,7 +13,7 @@ Package MEC_SRV_UEAREASUB { */ Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_001_OK" + TP Id "TP_MEC_MEC013_SRV_UEAREASUB_001_OK" Test objective "Check that the IUT acknowledges the UE area change subscription request when @@ -87,7 +77,7 @@ Package MEC_SRV_UEAREASUB { Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_001_BR" + TP Id "TP_MEC_MEC013_SRV_UEAREASUB_001_BR" Test objective "Check that the IUT responds with an error when @@ -132,7 +122,7 @@ Package MEC_SRV_UEAREASUB { Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_002_OK" + TP Id "TP_MEC_MEC013_SRV_UEAREASUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE area change notifications @@ -172,7 +162,7 @@ Package MEC_SRV_UEAREASUB { Test Purpose { - TP Id "TP_MEC_SRV_UEAREASUB_002_NF" + TP Id "TP_MEC_MEC013_SRV_UEAREASUB_002_NF" Test objective "Check that the IUT responds with an error when @@ -187,7 +177,7 @@ Package MEC_SRV_UEAREASUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscriptionId indicating value NON_EXISTING_SUBSCRIPTION_ID ; } diff --git a/Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 b/Test Purposes/MEC013/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 similarity index 77% rename from Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 rename to Test Purposes/MEC013/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 index 8207758b174478d334226812e38738bad101737a..8577c4be3db09fe9c70dcc65b34086ba7510abb6 100644 --- a/Test Purposes/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 +++ b/Test Purposes/MEC013/SRV/UEDISTLOOK/PlatUeDistanceLookup.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_UEDISTLOOK { +Package MEC_MEC013_SRV_UEDISTLOOK { import all from MEC_Common; @@ -22,7 +12,7 @@ Package MEC_SRV_UEDISTLOOK { */ Test Purpose { - TP Id "TP_MEC_SRV_UEDISTLOOK_001_OK" + TP Id "TP_MEC_MEC013_SRV_UEDISTLOOK_001_OK" Test objective "Check that the IUT responds with the distance to a UE @@ -67,7 +57,7 @@ Package MEC_SRV_UEDISTLOOK { Test Purpose { - TP Id "TP_MEC_SRV_UEDISTLOOK_001_BR" + TP Id "TP_MEC_MEC013_SRV_UEDISTLOOK_001_BR" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 b/Test Purposes/MEC013/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 similarity index 87% rename from Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 rename to Test Purposes/MEC013/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 index 3f2036554edaaa56c056ce4ce8d4453844ca1d8c..5c40726e19c7287456545c09bbbbe35ea27ce56b 100644 --- a/Test Purposes/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 +++ b/Test Purposes/MEC013/SRV/UEDISTSUB/PlatUeDistanceSubscription.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_SRV_UEDISTSUB { +Package MEC_MEC013_SRV_UEDISTSUB { import all from MEC_Common; @@ -23,7 +13,7 @@ Package MEC_SRV_UEDISTSUB { */ Test Purpose { - TP Id "TP_MEC_SRV_UEDISTSUB_001_OK" + TP Id "TP_MEC_MEC013_SRV_UEDISTSUB_001_OK" Test objective "Check that the IUT acknowledges the UE distance subscription request when commanded by a @@ -89,7 +79,7 @@ Package MEC_SRV_UEDISTSUB { Test Purpose { - TP Id "TP_MEC_SRV_UEDISTSUB_001_BR" + TP Id "TP_MEC_MEC013_SRV_UEDISTSUB_001_BR" Test objective "Check that the IUT responds with an error when @@ -135,7 +125,7 @@ Package MEC_SRV_UEDISTSUB { Test Purpose { - TP Id "TP_MEC_SRV_UEDISTSUB_002_OK" + TP Id "TP_MEC_MEC013_SRV_UEDISTSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE distance notifications @@ -175,7 +165,7 @@ Package MEC_SRV_UEDISTSUB { Test Purpose { - TP Id "TP_MEC_SRV_UEDISTSUB_002_NF" + TP Id "TP_MEC_MEC013_SRV_UEDISTSUB_002_NF" Test objective "Check that the IUT responds with an error when @@ -190,7 +180,7 @@ Package MEC_SRV_UEDISTSUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscriptionId indicating value NON_EXISTING_SUBSCRIPTION_ID ; } diff --git a/Test Purposes/SRV/UEINFOLOOK/PlatUeInformationLookup.tplan2 b/Test Purposes/MEC013/SRV/UEINFOLOOK/PlatUeInformationLookup.tplan2 similarity index 95% rename from Test Purposes/SRV/UEINFOLOOK/PlatUeInformationLookup.tplan2 rename to Test Purposes/MEC013/SRV/UEINFOLOOK/PlatUeInformationLookup.tplan2 index 5bd34fcb801c962abffda0f1fc7138de9d5bf741..73d2f873740647e7290a05e0880e755c70e0a591 100644 --- a/Test Purposes/SRV/UEINFOLOOK/PlatUeInformationLookup.tplan2 +++ b/Test Purposes/MEC013/SRV/UEINFOLOOK/PlatUeInformationLookup.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -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 MEC_SRV_UEINFOLOOK { +Package MEC_MEC013_SRV_UEINFLOOK { import all from MEC_Common; @@ -23,7 +23,7 @@ Package MEC_SRV_UEINFOLOOK { */ Test Purpose { - TP Id "TP_MEC_SRV_UEINFOLOOK_001_OK" + TP Id "TP_MEC_MEC013_SRV_UEINFLOOK_001_OK" Test objective "Check that the IUT responds with the information pertaining to one or more UEs in a particular location @@ -71,7 +71,7 @@ Package MEC_SRV_UEINFOLOOK { Test Purpose { - TP Id "TP_MEC_SRV_UEINFOLOOK_001_BR" + TP Id "TP_MEC_MEC013_SRV_UEINFLOOK_001_BR" Test objective "Check that the IUT responds with an error when @@ -117,7 +117,7 @@ Package MEC_SRV_UEINFOLOOK { Test Purpose { - TP Id "TP_MEC_SRV_UEINFOLOOK_001_NF" + TP Id "TP_MEC_MEC013_SRV_UEINFLOOK_001_NF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/SRV/UEINFOSUB/PlatUeInformationSubscription.tplan2 b/Test Purposes/MEC013/SRV/UEINFOSUB/PlatUeInformationSubscription.tplan2 similarity index 95% rename from Test Purposes/SRV/UEINFOSUB/PlatUeInformationSubscription.tplan2 rename to Test Purposes/MEC013/SRV/UEINFOSUB/PlatUeInformationSubscription.tplan2 index 672c56033ae7eae72b3b2cadf1cc94351600aef4..c1ed9322e78d6ba371db2b212a8ae02f310c29b4 100644 --- a/Test Purposes/SRV/UEINFOSUB/PlatUeInformationSubscription.tplan2 +++ b/Test Purposes/MEC013/SRV/UEINFOSUB/PlatUeInformationSubscription.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -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 MEC_SRV_UEINFOSUB { +Package MEC_MEC013_SRV_UEINFOSUB { import all from MEC_Common; @@ -22,7 +22,7 @@ Package MEC_SRV_UEINFOSUB { */ Test Purpose { - TP Id "TP_MEC_SRV_UEINFOSUB_001_OK" + TP Id "TP_MEC_MEC013_SRV_UEINFOSUB_001_OK" Test objective "Check that the IUT acknowledges the UE information change subscription request @@ -86,7 +86,7 @@ Package MEC_SRV_UEINFOSUB { Test Purpose { - TP Id "TP_MEC_SRV_UEINFOSUB_001_BR" + TP Id "TP_MEC_MEC013_SRV_UEINFOSUB_001_BR" Test objective "Check that the IUT responds with an error when @@ -132,7 +132,7 @@ Package MEC_SRV_UEINFOSUB { Test Purpose { - TP Id "TP_MEC_SRV_UEINFOSUB_002_OK" + TP Id "TP_MEC_MEC013_SRV_UEINFOSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE information change notifications @@ -172,7 +172,7 @@ Package MEC_SRV_UEINFOSUB { Test Purpose { - TP Id "TP_MEC_SRV_UEINFOSUB_002_NF" + TP Id "TP_MEC_MEC013_SRV_UEINFOSUB_002_NF" Test objective "Check that the IUT responds with an error when @@ -187,7 +187,7 @@ Package MEC_SRV_UEINFOSUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } diff --git a/Test Purposes/SRV/UELOCLOOK/PlatUeLocationLookup.tplan2 b/Test Purposes/MEC013/SRV/UELOCLOOK/PlatUeLocationLookup.tplan2 similarity index 94% rename from Test Purposes/SRV/UELOCLOOK/PlatUeLocationLookup.tplan2 rename to Test Purposes/MEC013/SRV/UELOCLOOK/PlatUeLocationLookup.tplan2 index 2b8019fb7bd270a6a86ac0cd2fc597a9bf82a838..7098f29e93188ba1edb357142cc46787d6604739 100644 --- a/Test Purposes/SRV/UELOCLOOK/PlatUeLocationLookup.tplan2 +++ b/Test Purposes/MEC013/SRV/UELOCLOOK/PlatUeLocationLookup.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -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 MEC_SRV_UELOCLOOK { +Package MEC_MEC013_SRV_UELOCLOOK { import all from MEC_Common; @@ -22,7 +22,7 @@ Package MEC_SRV_UELOCLOOK { */ Test Purpose { - TP Id "TP_MEC_SRV_UELOCLOOK_001_OK" + TP Id "TP_MEC_MEC013_SRV_UELOCLOOK_001_OK" Test objective "Check that the IUT responds with a list for the location of User Equipments @@ -71,7 +71,7 @@ Package MEC_SRV_UELOCLOOK { Test Purpose { - TP Id "TP_MEC_SRV_UELOCLOOK_001_BR" + TP Id "TP_MEC_MEC013_SRV_UELOCLOOK_001_BR" Test objective "Check that the IUT responds with an error when @@ -116,7 +116,7 @@ Package MEC_SRV_UELOCLOOK { Test Purpose { - TP Id "TP_MEC_SRV_UELOCLOOK_001_NF" + TP Id "TP_MEC_MEC013_SRV_UELOCLOOK_001_NF" Test objective "Check that the IUT responds with an error when @@ -131,7 +131,7 @@ Package MEC_SRV_UELOCLOOK { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a ue_location containing + the IUT entity not having a ue_location containing zoneId indicating value NON_EXISTENT_ZONE_ID ; } diff --git a/Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 b/Test Purposes/MEC013/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 similarity index 95% rename from Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 rename to Test Purposes/MEC013/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 index 444ef95e273e053adfd7946f33bd1c02d87f8c80..34566e7d3a9e15c757264d6bde8e951fbde63614 100644 --- a/Test Purposes/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 +++ b/Test Purposes/MEC013/SRV/UELOCSUB/PlatUeLocationSubscription.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -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 MEC_SRV_UELOCSUB { +Package MEC_MEC013_SRV_UELOCSUB { import all from MEC_Common; @@ -22,7 +22,7 @@ Package MEC_SRV_UELOCSUB { */ Test Purpose { - TP Id "TP_MEC_SRV_UELOCSUB_001_OK" + TP Id "TP_MEC_MEC013_SRV_UELOCSUB_001_OK" Test objective "Check that the IUT acknowledges the UE location change subscription request @@ -86,7 +86,7 @@ Package MEC_SRV_UELOCSUB { Test Purpose { - TP Id "TP_MEC_SRV_UELOCSUB_001_BR" + TP Id "TP_MEC_MEC013_SRV_UELOCSUB_001_BR" Test objective "Check that the IUT responds with an error when @@ -132,7 +132,7 @@ Package MEC_SRV_UELOCSUB { Test Purpose { - TP Id "TP_MEC_SRV_UELOCSUB_002_OK" + TP Id "TP_MEC_MEC013_SRV_UELOCSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE location change notifications @@ -172,7 +172,7 @@ Package MEC_SRV_UELOCSUB { Test Purpose { - TP Id "TP_MEC_SRV_UELOCSUB_002_NF" + TP Id "TP_MEC_MEC013_SRV_UELOCSUB_002_NF" Test objective "Check that the IUT responds with an error when @@ -187,7 +187,7 @@ Package MEC_SRV_UELOCSUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } diff --git a/Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 b/Test Purposes/MEC013/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 similarity index 95% rename from Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 rename to Test Purposes/MEC013/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 index ba2df31a4723a3ed2f092b1bb9cab7da12cf8e04..8542f02c020fce887c6d8f65ce81b5862dfedd38 100644 --- a/Test Purposes/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 +++ b/Test Purposes/MEC013/SRV/UETRACKSUB/PlatUeTrackingSubscription.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -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 MEC_SRV_UETRACKSUB { +Package MEC_MEC013_SRV_UETRACKSUB { import all from MEC_Common; @@ -24,7 +24,7 @@ Package MEC_SRV_UETRACKSUB { Test Purpose { - TP Id "TP_MEC_SRV_UETRACKSUB_001_OK" + TP Id "TP_MEC_MEC013_SRV_UETRACKSUB_001_OK" Test objective "Check that the IUT acknowledges the UE location change subscription request @@ -88,7 +88,7 @@ Package MEC_SRV_UETRACKSUB { Test Purpose { - TP Id "TP_MEC_SRV_UETRACKSUB_001_BR" + TP Id "TP_MEC_MEC013_SRV_UETRACKSUB_001_BR" Test objective "Check that the IUT responds with an error when @@ -133,7 +133,7 @@ Package MEC_SRV_UETRACKSUB { Test Purpose { - TP Id "TP_MEC_SRV_UETRACKSUB_002_OK" + TP Id "TP_MEC_MEC013_SRV_UETRACKSUB_002_OK" Test objective "Check that the IUT acknowledges the cancellation of UE tracking notifications @@ -173,7 +173,7 @@ Package MEC_SRV_UETRACKSUB { Test Purpose { - TP Id "TP_MEC_SRV_UETRACKSUB_002_NF" + TP Id "TP_MEC_MEC013_SRV_UETRACKSUB_002_NF" Test objective "Check that the IUT responds with an error when @@ -188,7 +188,7 @@ Package MEC_SRV_UETRACKSUB { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } diff --git a/Test Purposes/SRV/UETAG/PlatUeIdentity.tplan2 b/Test Purposes/MEC014/SRV/UETAG/PlatUeIdentity.tplan2 similarity index 95% rename from Test Purposes/SRV/UETAG/PlatUeIdentity.tplan2 rename to Test Purposes/MEC014/SRV/UETAG/PlatUeIdentity.tplan2 index 731169e0fcb0096087a181f002afeb993fdf3582..0b48cd61f045daeefb807233e249bf456af71f46 100644 --- a/Test Purposes/SRV/UETAG/PlatUeIdentity.tplan2 +++ b/Test Purposes/MEC014/SRV/UETAG/PlatUeIdentity.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -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 MEC_SRV_UETAG { +Package MEC_MEC014_SRV_UETAG { import all from MEC_Common; @@ -23,7 +23,7 @@ Package MEC_SRV_UETAG { */ Test Purpose { - TP Id "TP_MEC_SRV_UETAG_001_OK" + TP Id "TP_MEC_MEC014_SRV_UETAG_001_OK" Test objective "Check that the IUT responds with the information on a UE Identity tag @@ -76,7 +76,7 @@ Package MEC_SRV_UETAG { Test Purpose { - TP Id "TP_MEC_SRV_UETAG_001_BR" + TP Id "TP_MEC_MEC014_SRV_UETAG_001_BR" Test objective "Check that the IUT responds with an error when @@ -120,7 +120,7 @@ Package MEC_SRV_UETAG { Test Purpose { - TP Id "TP_MEC_SRV_UETAG_001_NF" + TP Id "TP_MEC_MEC014_SRV_UETAG_001_NF" Test objective "Check that the IUT responds with an error when @@ -135,7 +135,7 @@ Package MEC_SRV_UETAG { Initial conditions with { the IUT entity being_in idle_state and - the MEC_APP entity "not" having a app_instance containing + the MEC_APP entity not having a app_instance containing instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } @@ -164,7 +164,7 @@ Package MEC_SRV_UETAG { Test Purpose { - TP Id "TP_MEC_SRV_UETAG_002_OK" + TP Id "TP_MEC_MEC014_SRV_UETAG_002_OK" Test objective "Check that the IUT registers a tag (representing a UE) or a list of tags @@ -225,7 +225,7 @@ Package MEC_SRV_UETAG { Test Purpose { - TP Id "TP_MEC_SRV_UETAG_002_BR" + TP Id "TP_MEC_MEC014_SRV_UETAG_002_BR" Test objective "Check that the IUT responds with an error when @@ -275,7 +275,7 @@ x if_match indicating value PROPER_ETAG, Test Purpose { - TP Id "TP_MEC_SRV_UETAG_002_NF" + TP Id "TP_MEC_MEC014_SRV_UETAG_002_NF" Test objective "Check that the IUT responds with an error when @@ -290,7 +290,7 @@ x if_match indicating value PROPER_ETAG, Initial conditions with { the IUT entity being_in idle_state and - the MEC_APP entity "not" having a app_instance containing + the MEC_APP entity not having a app_instance containing instance_id indicating value NON_EXISTENT_APP_INSTANCE_ID ; } @@ -325,7 +325,7 @@ x if_match indicating value PROPER_ETAG, Test Purpose { - TP Id "TP_MEC_SRV_UETAG_002_PF" + TP Id "TP_MEC_MEC014_SRV_UETAG_002_PF" Test objective "Check that the IUT responds with an error when diff --git a/Test Purposes/MEC015/SRV/MTS/MultiAccessTrafficSteering.tplan2 b/Test Purposes/MEC015/SRV/MTS/MultiAccessTrafficSteering.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..de47fdb2d15d5b2611a3673e7a69064866fc5013 --- /dev/null +++ b/Test Purposes/MEC015/SRV/MTS/MultiAccessTrafficSteering.tplan2 @@ -0,0 +1,759 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC015_SRV_MTS { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_001_OK" + + Test objective + "Check that the IUT responds with the Multi-access Traffic Steering information + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.3.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsCapabilityInfo + } + + // MEC 015 Clause 7.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mts/v1/mts_info" + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + mtsCapabilityInfo + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_002_OK" + + Test objective + "Check that the IUT responds with the list of configured Multi-access Traffic Steering + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.5.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mts/v1/mts_sessions", + query_parameters containing + appInsId indicating value APP_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + oneOrmore mtsSessionInfo + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_002_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.5.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mts/v1/mts_sessions", + query_parameters containing + // Wrong parameter name should trigger an error response. + appInsId indicating value APP_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request with an unknown resource URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.5.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mts/v1/mts_sessions", + query_parameters containing + appInsId indicating value APP_UNKNOWN_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { // FIXME Use variant here + TP Id "TP_MEC_MEC015_SRV_MTS_003_OK_01" + + Test objective + "Check that the IUT creates a MTS session + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.5.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 7.2.5 and Table 7.2.5-1: Elements of MtsSessionInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/mts_sessions", + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value 0, // APPLICATION_SPECIFIC_MTS_ALLOCATION + qosD indicating value SOME_ALLOCATION, + mtsMode indicating value LOW_COST, + trafficDirection indicating value "00" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.5.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created", + Location set to MTS_SESSION_ID, // MEC 015 Table 9.5.3.2-2 + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value APPLICATION_SPECIFIC_MTS_ALLOCATION, + qosD indicating value SOME_ALLOCATION, + mtsMode indicating value 0, // Low Cost + trafficDirection indicating value "00" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { // FIXME Use variant here + TP Id "TP_MEC_MEC015_SRV_MTS_003_OK_02" + + Test objective + "Check that the IUT creates a MTS session + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.5.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 7.2.5 and Table 7.2.5-1: Elements of MtsSessionInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/mts_sessions", + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value 1, // FLOW_SPECIFIC_MTS_ALLOCATION + flowFilter indicating value FLOW_FILTER, + qosD indicating value SOME_ALLOCATION, + mtsMode indicating value 4, // QoS + trafficDirection indicating value "00" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.5.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created", + Location set to MTS_SESSION_ID, // MEC 015 Table 9.5.3.2-2 + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value FLOW_SPECIFIC_MTS_ALLOCATION, + flowFilter indicating value FLOW_FILTER, + qosD indicating value SOME_ALLOCATION, + mtsMode indicating value LOW_COST, + trafficDirection indicating value "00" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_003_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.5.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 7.2.5 and Table 7.2.5-1: Elements of MtsSessionInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/mts_sessions", // Invalid version number + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value 0, // APPLICATION_SPECIFIC_MTS_ALLOCATION + // MEC015 Clause 7.2.5 Type: MtsSessionInfo Table 7.2.5-1: Elements of MtsSessionInfo, flowFilter shall be omit + flowFilter indicating value FLOW_FILTER, + qosD indicating value SOME_ALLOCATION, + mtsMode indicating value LOW_COST, + trafficDirection indicating value "00" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.5.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_004_OK" + + Test objective + "Check that the IUT responds with a configured Multi-access Traffic Steering session + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.4.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having an mtsSessionInfo containing + sessionId indicating value MTS_SESSION_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mts/v1/mts_sessions", + query_parameters containing + sessionId indicating value MTS_SESSION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value 0, // APPLICATION_SPECIFIC_MTS_ALLOCATION + qosD indicating value SOME_ALLOCATION, + mtsMode indicating value LOW_COST, + trafficDirection indicating value "00" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_004_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.4.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having an mtsSessionInfo containing + sessionId indicating value MTS_SESSION_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mts/v1/mts_sessions", + query_parameters containing + // Wrong parameter name should trigger an error response. + sessionId indicating value MTS_SESSION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_004_NF" + + Test objective + "Check that the IUT responds with an error when + a request with an unknown resource URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.4.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having an mtsSessionInfo containing + sessionId indicating value MTS_SESSION_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "mts/v1/mts_sessions", + query_parameters containing + sessionId indicating value MTS_UNKNOWN_SESSION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 9.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_005_OK" + + Test objective + "Check that the IUT updates the information about an individual MTS session + when commanded by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.4.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsSessionInfo containing + sessionId indicating value MTS_SESSION_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mts/v1/mts_sessions/{sessionId}", + query_parameters indicating value MTS_SESSION_ID, + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value 0, // APPLICATION_SPECIFIC_MTS_ALLOCATION + qosD indicating value SOME_NEW_ALLOCATION, + mtsMode indicating value LOW_COST, + trafficDirection indicating value "00" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value 0, // APPLICATION_SPECIFIC_MTS_ALLOCATION + qosD indicating value SOME_NEW_ALLOCATION, + mtsMode indicating value LOW_COST, + trafficDirection indicating value "00" + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_005_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.4.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsSessionInfo containing + sessionId indicating value MTS_SESSION_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mts/v1/mts_sessions/{sessionId}", + // Wrong parameter name should trigger an error response. + query_parameters indicating value MTS_SESSION_ID, + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value 0, // APPLICATION_SPECIFIC_MTS_ALLOCATION + // MEC015 Clause 7.2.5 Type: MtsSessionInfo Table 7.2.5-1: Elements of MtsSessionInfo, flowFilter shall be omit + flowFilter indicating value FLOW_FILTER, + qosD indicating value SOME_NEW_ALLOCATION, + mtsMode indicating value LOW_COST, + trafficDirection indicating value "00" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_005_NF" + + Test objective + "Check that the IUT responds with an error when + a request with an unknown resource URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.4.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsSessionInfo containing + sessionId indicating value MTS_SESSION_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "mts/v1/mts_sessions/{sessionId}", + query_parameters indicating value MTS_UNKNOWN_SESSION_ID, + body containing + mtsSessionInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value 0, // APPLICATION_SPECIFIC_MTS_ALLOCATION + flowFilter indicating value FLOW_FILTER, + qosD indicating value SOME_NEW_ALLOCATION, + mtsMode indicating value LOW_COST, + trafficDirection indicating value "00" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_006_OK" + + Test objective + "Check that the IUT deregisters a MTS session + when commanded by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.4.3.3", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsSessionInfo containing + sessionId indicating value MTS_SESSION_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "mts/v1/mts_sessions/{sessionId}", + query_parameters containing + sessionId indicating value MTS_SESSION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_MTS_006_NF" + + Test objective + "Check that the IUT responds with an error when + a request with an unknown resource URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 9.4.3.3", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a mtsSessionInfo containing + sessionId indicating value MTS_SESSION_ID + ; + } + + // MEC 015 Clause 7.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "mts/v1/mts_sessions/{sessionId}", + query_parameters containing + sessionId indicating value MTS_UNKNOWN_SESSION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + +} diff --git a/Test Purposes/MEC015/SRV/TM/TrafficManagement.tplan2 b/Test Purposes/MEC015/SRV/TM/TrafficManagement.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..b7250a648ef4f721e7188c85c2477915d77aaf01 --- /dev/null +++ b/Test Purposes/MEC015/SRV/TM/TrafficManagement.tplan2 @@ -0,0 +1,962 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC015_SRV_TM { + + import all from MEC_Common; + + + /* + * Bandwidth Allocations (BWA) + */ + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_001_OK" + + Test objective + "Check that the IUT responds with the list of configured bandwidth allocations + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a oneOrmore bwInfo + } + + // MEC 015 Clause 6.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations" + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + bwInfoList containing + oneOrmore bwInfo containing + appInsId set to APP_INSTANCE_ID + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_002_OK" + + Test objective + "Check that the IUT responds with a configured bandwidth allocation + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a bwInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations", + query_parameters containing + app_instance_id indicating value APP_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + bwInfoList containing + appInsId set to APP_INSTANCE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_002_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a bwInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations", + query_parameters containing + // Wrong parameter name should trigger an error response. + appInsId indicating value APP_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_002_NF" + Test objective + "Check that the IUT responds with an error when + a request with an unknown resource URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a bwInfo containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.5 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations", + query_parameters containing + appInsId indicating value APP_UNKNOWN_INSTANCE_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_003_OK_01" + + Test objective + "Check that the IUT responds with a information about a list of bandwidthAllocation resources" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.4.3.4", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.2 and Table 7.2.2-1: Elements of BwInfo, sessionFilter + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/bw_allocations", + body containing + bwInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value APPLICATION_SPECIFIC_BW_ALLOCATION, + sessionFilter indicating value omit, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created", + Location set to BW_ALLOCATION_ID, + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + requestType indicating value APPLICATION_SPECIFIC_BW_ALLOCATION, + sessionFilter indicating value omit, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_003_OK_02" + + Test objective + "Check that the IUT responds with a information about a list of bandwidthAllocation resources" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.4.3.4", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.2 and Table 7.2.2-1: Elements of BwInfo, sessionFilter + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/bw_allocations", + body containing + bwInfoList containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value SESSION_SPECIFIC_BW_ALLOCATION, + sessionFilter indicating value SESSION_FILTER, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created", + Location indicating value BW_ALLOCATION_ID, + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + requestType indicating value APPLICATION_SPECIFIC_BW_ALLOCATION, + sessionFilter indicating value omit, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_003_BR_01" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.4.3.4", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/bw_allocations", + body containing + bwInfoList containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value APPLICATION_SPECIFIC_BW_ALLOCATION, + sessionFilter indicating value omit, + fixedAllocation indicating value INVALID_ALLOCATION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_003_BR_02" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.4.3.4", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/bw_allocations", + body containing + bwInfoList containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value APPLICATION_SPECIFIC_BW_ALLOCATION, + // MEC015 Clause 7.2.2 Type: BwInfo Table 7.2.2-1: Elements of BwInfo, sessionFilter shall be omit + sessionFilter indicating value SESSION_FILTER_VALUE, + fixedAllocation indicating value INVALID_ALLOCATION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_003_BR_03" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.4.3.4", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "bwm/v1/bw_allocations", + body containing + bwInfoList containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value SESSION_SPECIFIC_BW_ALLOCATION, + // MEC015 Clause 7.2.2 Type: BwInfo Table 7.2.2-1: Elements of BwInfo, sessionFilter shall be present + sessionFilter indicating value omit, + fixedAllocation indicating value INVALID_ALLOCATION + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_004_OK" + + Test objective + "Check that the IUT responds with the configured bandwidth allocation + when queried by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_ALLOCATION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK", + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_004_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.1", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_UNKNOWN_ALLOCATION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_005_OK" + + Test objective + "Check that the IUT updates the requested bandwidth requirements + when commanded by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_ALLOCATION_ID, + body containing + bwInfo containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_NEW_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + fixedAllocation set to SOME_ALLOCATION, + allocationDirection set to SOME_DIRECTION + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_005_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_ALLOCATION_ID, + body containing + bwInfo containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value INVALID_DIRECTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_005_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.2", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_UNKNOWN_ALLOCATION_ID, + body containing + bwInfo containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_006_OK" + + Test objective + "Check that the IUT when provided with just the changes (deltas) + updates the requested bandwidth requirements + when commanded by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.3", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_ALLOCATION_ID, + body containing + bwInfoDeltas containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + bwInfo containing + appInsId set to APP_INSTANCE_ID, + fixedAllocation set to SOME_ALLOCATION, + allocationDirection set to SOME_DIRECTION + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_006_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.3", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_ALLOCATION_ID, + body containing + bwInfo containing + appInsId indicating value APP_INSTANCE_ID, + requestType indicating value INVALID_TYPE, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_006_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.3", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a app_instance containing + appInsId indicating value APP_INSTANCE_ID + ; + } + + // MEC 015 Clause 6.2.4 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPATCH containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_UNKNOWN_ALLOCATION_ID, + body containing + bwInfo containing + appInsId indicating value APP_INSTANCE_ID, + fixedAllocation indicating value SOME_ALLOCATION, + allocationDirection indicating value SOME_DIRECTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.3 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_007_OK" + + Test objective + "Check that the IUT unregisters from the Bandwidth Management Service + when commanded by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.5", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a allocation_instance containing + allocationId indicating value BW_ALLOCATION_ID + ; + } + + // MEC 015 Clause 6.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_UNKNOWN_ALLOCATION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC015_SRV_TM_007_NF" + + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + + Reference "ETSI GS MEC 015 V2.1.1, clause 8.3.3.5", + "https://forge.etsi.org/rep/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity not having a allocation_instance containing + allocationId indicating value BW_ALLOCATION_ID + ; + } + + // MEC 015 Clause 6.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "bwm/v1/bw_allocations/{allocationId}", + query_parameters containing + allocationId indicating value BW_UNKNOWN_ALLOCATION_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 015 Clause 8.3.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + +} diff --git a/Test Purposes/MEO/UEAPPCTX/SysUeAppsContext.tplan2 b/Test Purposes/MEC016/MEO/UEAPPCTX/SysUeAppsContext.tplan2 similarity index 70% rename from Test Purposes/MEO/UEAPPCTX/SysUeAppsContext.tplan2 rename to Test Purposes/MEC016/MEO/UEAPPCTX/SysUeAppsContext.tplan2 index a3df2d3862c88b6abfedca4f13d4a5cb85e1499b..c576217dca44addd25b5cdc8251e8d1a58e48369 100644 --- a/Test Purposes/MEO/UEAPPCTX/SysUeAppsContext.tplan2 +++ b/Test Purposes/MEC016/MEO/UEAPPCTX/SysUeAppsContext.tplan2 @@ -1,19 +1,9 @@ /* -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. +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters */ -Package MEC_MEO_UEAPPCTX { +Package MEC_MEC016_MEO_UEAPPCTX { import all from MEC_Common; @@ -23,14 +13,14 @@ Package MEC_MEO_UEAPPCTX { */ Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_001_OK" + TP Id "TP_MEC_MEC016_MEO_UEAPPCTX_001_OK" Test objective "Check that the IUT acknowledges the creation of the application context when requested by an UE Application" - Reference "ETSI GS MEC 016 2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + Reference "ETSI GS MEC 016 2.2.1, clause 7.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" Config Id Config_MEC_4 @@ -45,7 +35,7 @@ Package MEC_MEO_UEAPPCTX { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "mx2/v2/app_contexts", + uri indicating value "/dev_app/v1/app_contexts", body containing AppContext containing appInfo containing @@ -76,14 +66,62 @@ Package MEC_MEO_UEAPPCTX { Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_001_BR" + TP Id "TP_MEC_MEC016_MEO_UEAPPCTX_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect URL is sent by a MEC Application" + + Reference "ETSI GS MEC 016 2.2.1, clause 7.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 016, clause 5.1.3 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + // Wrong URL parameter should trigger an error response. + uri indicating value "/dev_app/v1/app_contexts_error", + body containing + AppContext containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + from the Dev_App entity + } + then { + // MEC 016, clause 7.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the Dev_App entity + } + } + } + + + + + Test Purpose { + TP Id "TP_MEC_MEC016_MEO_UEAPPCTX_001_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 016 2.1.1, clause 7.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + Reference "ETSI GS MEC 016 2.2.1, clause 7.4.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" Config Id Config_MEC_4 @@ -98,7 +136,7 @@ Package MEC_MEO_UEAPPCTX { ensure that { when { the IUT entity receives a vPOST containing - uri indicating value "mx2/v2/app_contexts", + uri indicating value "/dev_app/v1/app_contexts", body containing AppContext containing appInfo containing @@ -120,16 +158,15 @@ Package MEC_MEO_UEAPPCTX { } } - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_002_OK" + TP Id "TP_MEC_MEC016_MEO_UEAPPCTX_002_OK" Test objective "Check that the IUT updates the application callback reference when commanded by an UE Application" - Reference "ETSI GS MEC 016 2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + Reference "ETSI GS MEC 016 2.2.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" Config Id Config_MEC_4 @@ -147,7 +184,7 @@ Package MEC_MEO_UEAPPCTX { ensure that { when { the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + uri indicating value "/dev_app/v1/app_contexts/{CONTEXT_ID}" body containing AppContext containing callbackReference indicating value some_uri @@ -157,7 +194,7 @@ Package MEC_MEO_UEAPPCTX { from the Dev_App entity } then { - // MEC 017, clause 7.5.3.2 + // MEC 016, clause 7.5.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "204 No Content" ; @@ -167,15 +204,16 @@ Package MEC_MEO_UEAPPCTX { } + Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_002_BR" + TP Id "TP_MEC_MEC016_MEO_UEAPPCTX_002_BR" Test objective "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" - Reference "ETSI GS MEC 016 2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + Reference "ETSI GS MEC 016 2.2.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" Config Id Config_MEC_4 @@ -193,7 +231,7 @@ Package MEC_MEO_UEAPPCTX { ensure that { when { the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + uri indicating value "/dev_app/v1/app_contexts/{CONTEXT_ID}" body containing AppContext containing // A parameter not legible for update should trigger an error response. @@ -204,7 +242,7 @@ Package MEC_MEO_UEAPPCTX { from the Dev_App entity } then { - // MEC 017, clause 7.5.3.2 + // MEC 016, clause 7.5.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; @@ -215,14 +253,14 @@ Package MEC_MEO_UEAPPCTX { Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_002_NF" + TP Id "TP_MEC_MEC016_MEO_UEAPPCTX_002_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 016 2.1.1, clause 7.5.3.2", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/AppContext" + Reference "ETSI GS MEC 016 2.2.1, clause 7.5.3.2", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" Config Id Config_MEC_4 @@ -230,7 +268,7 @@ Package MEC_MEO_UEAPPCTX { Initial conditions with { the IUT entity being_in idle_state and - the Dev_App entity "not" having a appContext containing + the Dev_App entity not having a appContext containing contextId indicating value NON_EXISTENT_CONTEXT_ID ; } @@ -240,7 +278,7 @@ Package MEC_MEO_UEAPPCTX { ensure that { when { the IUT entity receives a vPUT containing - uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}", + uri indicating value "/dev_app/v1/app_contexts/{NON_EXISTENT_CONTEXT_ID}", body containing AppContext containing callbackReference indicating value some_uri @@ -250,7 +288,7 @@ Package MEC_MEO_UEAPPCTX { from the Dev_App entity } then { - // MEC 017, clause 7.5.3.2 + // MEC 016, clause 7.5.3.2 the IUT entity sends a HTTP_RESPONSE containing status_code set to "404 Not Found" ; @@ -258,16 +296,18 @@ Package MEC_MEO_UEAPPCTX { } } } + Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_003_OK" + TP Id "TP_MEC_MEC016_MEO_UEAPPCTX_003_OK" Test objective "Check that the IUT deletes the application context when commanded by an UE Application" - Reference "ETSI GS MEC 016 2.1.1, clause 7.5.3.5" + Reference "ETSI GS MEC 016 2.2.1, clause 7.5.3.5", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" Config Id Config_MEC_4 @@ -285,7 +325,7 @@ Package MEC_MEO_UEAPPCTX { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "mx2/v2/app_contexts/{CONTEXT_ID}" + uri indicating value "/dev_app/v1/app_contexts/{CONTEXT_ID}" ; from the Dev_App entity } @@ -301,13 +341,14 @@ Package MEC_MEO_UEAPPCTX { Test Purpose { - TP Id "TP_MEC_MEO_UEAPPCTX_003_NF" + TP Id "TP_MEC_MEC016_MEO_UEAPPCTX_003_NF" Test objective "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application" - Reference "ETSI GS MEC 016 2.1.1, clause 7.5.3.5" + Reference "ETSI GS MEC 016 2.2.1, clause 7.5.3.5", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" Config Id Config_MEC_4 @@ -315,7 +356,7 @@ Package MEC_MEO_UEAPPCTX { Initial conditions with { the IUT entity being_in idle_state and - the Dev_App entity "not" having a appContext containing + the Dev_App entity not having a appContext containing contextId indicating value NON_EXISTENT_CONTEXT_ID ; } @@ -325,7 +366,7 @@ Package MEC_MEO_UEAPPCTX { ensure that { when { the IUT entity receives a vDELETE containing - uri indicating value "mx2/v2/app_contexts/{NON_EXISTENT_CONTEXT_ID}" + uri indicating value "/dev_app/v1/app_contexts/{NON_EXISTENT_CONTEXT_ID}" ; from the Dev_App entity } diff --git a/Test Purposes/MEC016/MEO/UEAPPLOC/SysUeApplicationsLocation.tplan2 b/Test Purposes/MEC016/MEO/UEAPPLOC/SysUeApplicationsLocation.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..1004f3277c62bf8dce6c2fcc188ce0efdcb75310 --- /dev/null +++ b/Test Purposes/MEC016/MEO/UEAPPLOC/SysUeApplicationsLocation.tplan2 @@ -0,0 +1,163 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC016_MEO_UEAPPCTX { + + import all from MEC_Common; + + + /* + * UE Application Contexts (UEAPPCTX) + */ + + Test Purpose { + TP Id "TP_MEC_MEC016_MEO_UEAPPLOC_001_OK" + + Test objective + "Check that the IUT sends the locations available for instantiation of a specific user application + when requested by an UE Application" + + Reference "ETSI GS MEC 016 2.2.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the Dev_App entity having a appInfo containing + appName indicating value APP_NAME + ; + } + + // MEC 016, clause 5.1.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/dev_app/v1/obtain_app_loc_availability", + body containing + ApplicationLocationAvailability containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + from the Dev_App entity + } + then { + // MEC 016, clause 7.6.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK", + body containing + ApplicationLocationAvailability containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + to the Dev_App entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC016_MEO_UEAPPLOC_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 016 2.2.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 016, clause 5.1.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "/dev_app/v1/obtain_app_loc_availability", + body containing + ApplicationLocationAvailability containing + appInfo containing + // Wrong parameter name should trigger an error response. + app set to APP_NAME + ; + ; + ; + ; + from the Dev_App entity + } + then { + // MEC 016, clause 7.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the Dev_App entity + } + } + } + + + + + Test Purpose { + TP Id "TP_MEC_MEC016_MEO_UEAPPLOC_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect URL is sent by a MEC Application" + + Reference "ETSI GS MEC 016 2.2.1, clause 7.6.3.4", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 016, clause 5.1.7 + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + // Wrong URI should trigger an error response. + uri indicating value "/dev_app/v1/obtain_app_loc_availability_error", + body containing + ApplicationLocationAvailability containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + from the Dev_App entity + } + then { + // MEC 016, clause 7.4.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the Dev_App entity + } + } + } + +} diff --git a/Test Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2 b/Test Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..ab02c9caf6c5dce34ab63006f588ce184c57e289 --- /dev/null +++ b/Test Purposes/MEC016/MEO/UEAPPS/SysUeApplications.tplan2 @@ -0,0 +1,240 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC016_MEO_UEAPPS { + import all from MEC_Common; + /* + * UE Applications (UEAPPS) + */ + Test Purpose { + TP Id "TP_MEC_MEC016_MEO_UEAPPS_001_OK" + Test objective + "Check that the IUT responds with the list of user applications available + when requested by an UE Application" + Reference "ETSI GS MEC 016 2.2.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the Dev_App entity having a appInfo containing + appName indicating value APP_NAME + ; + } + // MEC 016, clause 5.1.2 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/dev_app/v1/app_list" + ; + from the Dev_App entity + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ApplicationList containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + to the Dev_App entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC016_MEO_UEAPPS_001_NF" + Test objective + "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + Reference "ETSI GS MEC 016 2.2.1, clause 7.3.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + // MEC 016, clause 5.1.2 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + // wrong url should generate a "Not Found" error response + uri indicating value "/dev_app/v1/app_list_error" + ; + from the Dev_App entity + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the Dev_App entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC016_MEO_UEAPPS_002_OK" + Test objective + "Check that the IUT responds with the list of user applications available + when requested by an UE Application" + Reference "ETSI GS MEC 016 2.2.1, clause 7.3.3.1", + "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the Dev_App entity having a appInfo containing + appName indicating value APP_NAME + ; + } + // MEC 016, clause 5.1.2 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/dev_app/v1/app_list", + query_parameters containing + appName indicating value APP_NAME + ; + ; + from the Dev_App entity + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ApplicationList containing + appInfo containing + appName set to APP_NAME + ; + ; + ; + ; + to the Dev_App entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC016_MEO_UEAPPS_002_BR" + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + Reference "ETSI GS MEC 016 2.2.1, clause 7.3.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + // MEC 016, clause 5.1.2 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/dev_app/v1/app_list", + query_parameters containing + // Wrong parameter name should trigger an error response (correct parameter is appName) + app indicating value APP_NAME + ; + ; + from the Dev_App entity + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the Dev_App entity + } + } + } + + + + Test Purpose { + TP Id TP_MEC_MEC016_MEO_UEAPPS_001_ERR + Test objective + "Check that the ITU responds with 404 Not Found and 400 Bad request when a request + with incorrect parameters and for an unknown URI is sent by a MEC Application, respectively." + Reference "ETSI GS MEC 016 2.2.1, clause 7.3.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET request containing + uri set to URI, + query_parameters containing + // Wrong parameter name should trigger an error response (correct parameter is appName) + appName indicating value APP_NAME_VALUE + ; + ; + } + then { + // MEC 016, clause 7.3.3.1 + the IUT entity sends + a HTTP response containing + status set to HTTP_STATUS + ; + } + } + Variants + TP_MEC_MEC016_MEO_UEAPPS_001_NF { + Test objective "Check that the IUT responds with an error when + a request for an unknown URI is sent by a MEC Application" + Bindings + value URI set to "/dev_app/v1/app_list_error"; + value APP_NAME_VALUE set to APP_NAME; + value HTTP_STATUS set to "404 Not found"; + } + + TP_MEC_MEC016_MEO_UEAPPS_001_BR { + Test objective "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + Bindings + value URI set to "/dev_app/v1/app_list"; + value APP_NAME_VALUE set to APP_NAME_ERROR; + value HTTP_STATUS set to "400 Bad Request"; + } + } +} + + + diff --git a/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 b/Test Purposes/MEC021/SRV/AMS/Ams_BO_BI.tplan2 similarity index 91% rename from Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 rename to Test Purposes/MEC021/SRV/AMS/Ams_BO_BI.tplan2 index a4de91eafbfa8cc5b1f68788d050cf8be1f65ff2..e9762c2c5a20ce3a7c74ff76a02b8d517aa28964 100644 --- a/Test Purposes/SRV/AMS/Ams_BO_BI.tplan2 +++ b/Test Purposes/MEC021/SRV/AMS/Ams_BO_BI.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -13,12 +13,12 @@ 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_SRV_AMS_BO_BI { +Package MEC_MEC021_SRV_AMS_BO_BI { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_AMS_001_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC021_SRV_AMS_001_BR" // Negative test: 400 Bad request Test objective "Check that the AMS service returns an error when receives a query about a registered application mobility service with wrong parameters" @@ -53,7 +53,7 @@ Package MEC021_SRV_AMS_BO_BI { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_002_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC021_SRV_AMS_002_BR" // Negative test: 400 Bad request Test objective "Check that the AMS service sends an error when it receives a malformed request to create a new application mobility service" @@ -90,7 +90,7 @@ Package MEC021_SRV_AMS_BO_BI { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_003_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC021_SRV_AMS_003_BR" // Negative test: 400 Bad request Test objective "Check that the AMS service sends an error when it receives a malformed query about the available subscriptions" @@ -128,7 +128,7 @@ Package MEC021_SRV_AMS_BO_BI { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_004_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC021_SRV_AMS_004_BR" // Negative test: 400 Bad request Test objective "Check that the AMS service sends an error when it receives a malformed request to create a notification subscription @@ -167,7 +167,7 @@ Package MEC021_SRV_AMS_BO_BI { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_005_NF" // Negative test: 404 Not Found + TP Id "TP_MEC_MEC021_SRV_AMS_005_NF" // Negative test: 404 Not Found Test objective "Check that the AMS service returns an error when receives a query about a not existing subscription" @@ -178,7 +178,7 @@ Package MEC021_SRV_AMS_BO_BI { PICS Selection PIC_AMS Initial conditions with { - the IUT entity "not" having a AMS_subscription containing + the IUT entity not having a AMS_subscription containing _link containing self indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE ; @@ -201,7 +201,7 @@ Package MEC021_SRV_AMS_BO_BI { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_006_NF" // Negative test: 404 Not Found + TP Id "TP_MEC_MEC021_SRV_AMS_006_NF" // Negative test: 404 Not Found Test objective "Check that the AMS service sends an error when it receives a delete request for a not existing subscription" @@ -212,7 +212,7 @@ Package MEC021_SRV_AMS_BO_BI { PICS Selection PIC_AMS Initial conditions with { - the IUT entity "not" having a AMS_subscription containing + the IUT entity not having a AMS_subscription containing _link containing self indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE ; @@ -235,7 +235,7 @@ Package MEC021_SRV_AMS_BO_BI { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_007_BR" // Negative test: 400 Bad request + TP Id "TP_MEC_MEC021_SRV_AMS_007_BR" // Negative test: 400 Bad request Test objective "Check that the AMS service sends an error when it receives a malformed modify request for a given subscription. @@ -280,7 +280,7 @@ Package MEC021_SRV_AMS_BO_BI { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_007_NF" // Negative test: 404 Not found + TP Id "TP_MEC_MEC021_SRV_AMS_007_NF" // Negative test: 404 Not found Test objective "Check that the AMS service sends an error when it receives a modify request for a not existing subscription" @@ -291,7 +291,7 @@ Package MEC021_SRV_AMS_BO_BI { PICS Selection PIC_AMS Initial conditions with { - the IUT entity "not" having a AMS_subscription containing + the IUT entity not having a AMS_subscription containing _link containing self indicating value NON_EXISTENT_SUBSCRIPTION_HREF_VALUE ; @@ -315,7 +315,7 @@ Package MEC021_SRV_AMS_BO_BI { Test Purpose { - TP Id "TP_MEC_SRV_AMS_011_NF" + TP Id "TP_MEC_MEC021_SRV_AMS_011_NF" Test objective "Check that the AMS service sends an error when receives a query about a not existing individual application mobility service" @@ -326,7 +326,7 @@ Package MEC021_SRV_AMS_BO_BI { PICS Selection PIC_AMS Initial conditions with { - the IUT entity "not" having a AppMobilityServiceInfo containing + the IUT entity not having a AppMobilityServiceInfo containing appMobilityServiceId indicating value NON_EXISTENT_APP_MOBILITY_SERVICE_ID ; } @@ -350,7 +350,7 @@ Package MEC021_SRV_AMS_BO_BI { Test Purpose { - TP Id "TP_MEC_SRV_AMS_012_NF" + TP Id "TP_MEC_MEC021_SRV_AMS_012_NF" Test objective "Check that the AMS service sends an error when receives a request to modify a not existing individual application mobility service" @@ -361,7 +361,7 @@ Package MEC021_SRV_AMS_BO_BI { PICS Selection PIC_AMS Initial conditions with { - the IUT entity "not" having a AppMobilityServiceInfo containing + the IUT entity not having a AppMobilityServiceInfo containing appMobilityServiceId indicating value NON_EXISTENT_APP_MOBILITY_SERVICE_ID ; } @@ -390,7 +390,7 @@ Package MEC021_SRV_AMS_BO_BI { Test Purpose { - TP Id "TP_MEC_SRV_AMS_012_BR" + TP Id "TP_MEC_MEC021_SRV_AMS_012_BR" Test objective "Check that the AMS service sends an error when receives a request to modify a individual application mobility service using bad parameters" @@ -430,7 +430,7 @@ Package MEC021_SRV_AMS_BO_BI { Test Purpose { - TP Id "TP_MEC_SRV_AMS_013_NF" + TP Id "TP_MEC_MEC021_SRV_AMS_013_NF" Test objective "Check that the AMS service sends an error when is requested to delete the resource @@ -442,7 +442,7 @@ Package MEC021_SRV_AMS_BO_BI { PICS Selection PIC_AMS Initial conditions with { - the IUT entity "not" having a AppMobilityServiceInfo containing + the IUT entity not having a AppMobilityServiceInfo containing appMobilityServiceId indicating value NON_ESISTENT_APP_MOBILITY_SERVICE_ID ; } @@ -465,7 +465,7 @@ Package MEC021_SRV_AMS_BO_BI { Test Purpose { - TP Id "TP_MEC_SRV_AMS_014_NF" + TP Id "TP_MEC_MEC021_SRV_AMS_014_NF" Test objective "Check that the AMS service send an error when is requested to deregister a not existent individual application mobility service" @@ -476,7 +476,7 @@ Package MEC021_SRV_AMS_BO_BI { PICS Selection PIC_AMS Initial conditions with { - the IUT entity "not" having a AppMobilityServiceInfo containing + the IUT entity not having a AppMobilityServiceInfo containing appMobilityServiceId indicating value NON_EXISTENT_APP_MOBILITY_SERVICE_ID ; } diff --git a/Test Purposes/SRV/AMS/Ams_BV.tplan2 b/Test Purposes/MEC021/SRV/AMS/Ams_BV.tplan2 similarity index 96% rename from Test Purposes/SRV/AMS/Ams_BV.tplan2 rename to Test Purposes/MEC021/SRV/AMS/Ams_BV.tplan2 index 056444227053b0062e5f6affc3e8807c6079c650..4478c5e6f6c8fec1a939268293dffe2525a133b7 100644 --- a/Test Purposes/SRV/AMS/Ams_BV.tplan2 +++ b/Test Purposes/MEC021/SRV/AMS/Ams_BV.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -13,12 +13,12 @@ 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_SRV_AMS_BV { +Package MEC_MEC021_SRV_AMS_BV { import all from MEC_Common; Test Purpose { - TP Id "TP_MEC_SRV_AMS_001_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_001_OK" Test objective "Check that the AMS service returns information about the registered application mobility services when requested" @@ -61,7 +61,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_002_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_002_OK" Test objective "Check that the AMS service creates a new application mobility services when requested" @@ -108,7 +108,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_003_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_003_OK" Test objective "Check that the AMS service returns information about the available subscriptions when requested. @@ -160,7 +160,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_004_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_004_OK" Test objective "Check that the AMS service creates a notification subscriptions when requested. @@ -205,7 +205,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_005_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_005_OK" Test objective "Check that the AMS service returns information about a given subscription when requested. @@ -250,7 +250,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_006_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_006_OK" Test objective "Check that the AMS service deletes a given subscription when requested" @@ -284,7 +284,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_007_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_007_OK" Test objective "Check that the AMS service modifies a given subscription when requested. @@ -335,7 +335,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_008_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_008_OK" Test objective "Check that the AMS service sends an AMS notification about a mobility procedure @@ -378,7 +378,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_009_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_009_OK" Test objective "Check that the AMS service sends an AMS notification about adjacent application instances @@ -420,7 +420,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_010_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_010_OK" Test objective "Check that the AMS service sends an AMS notification on subscription expiration @@ -462,7 +462,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_011_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_011_OK" Test objective "Check that the AMS service returns information about this individual application mobility service" @@ -500,7 +500,7 @@ Package MEC021_SRV_AMS_BV { } Test Purpose { - TP Id "TP_MEC_SRV_AMS_012_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_012_OK" Test objective "Check that the AMS service modifies the individual application mobility service when requested" @@ -550,7 +550,7 @@ Package MEC021_SRV_AMS_BV { Test Purpose { - TP Id "TP_MEC_SRV_AMS_013_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_013_OK" Test objective "Check that the AMS service de-register the individual application mobility service and delete the resource @@ -584,7 +584,7 @@ Package MEC021_SRV_AMS_BV { Test Purpose { - TP Id "TP_MEC_SRV_AMS_014_OK" + TP Id "TP_MEC_MEC021_SRV_AMS_014_OK" Test objective "Check that the AMS service deregister an individual application mobility service on expiry of the timer associated with the service" diff --git a/Test Purposes/MEC028/SRV/WAI/ApInfo.tplan2 b/Test Purposes/MEC028/SRV/WAI/ApInfo.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..3d1d3ec11b0da7995ca6db12bb47c9e539a9fe7a --- /dev/null +++ b/Test Purposes/MEC028/SRV/WAI/ApInfo.tplan2 @@ -0,0 +1,148 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC028_SRV_WAI { + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_001_OK" + Test objective + "Check that the IUT responds with the list of WLAN Access Point" + Reference "ETSI GS MEC 028 2.2.1, clause 7.3.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/ApInfo" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity having a ApInfo containing + apId containing + macId indicating value MAC_ID + ; + ; + } + // MEC 028, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/ap/ap_information" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ApInfo containing + apId containing + macId set to MAC_ID + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + //Query filter + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_002_OK" + Test objective + "Check that the IUT responds with the list of WLAN Access Point filtered by the macId provided as query parameter " + Reference "ETSI GS MEC 028 2.2.1, clause 7.3.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/ApInfo" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity having a ApInfo containing + apId containing + macId indicating value MAC_ID + ; + ; + } + // MEC 028, clause 5.2.2 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/ap/ap_information", + query_parameters containing + macId indicating value MAC_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + ApInfo containing + apId containing + macId set to MAC_ID + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + //Bad request + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_002_BR" + Test objective + "Check that the IUT responds with an error when a request with + incorrect parameters is sent by a MEC Application" + Reference "ETSI GS MEC 028 2.2.1, clause 7.3.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + // MEC 028, clause 5.2.2 + Expected behaviour + // Invalid filter should trigger an error response. + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/ap/ap_information", + query_parameters containing + mac indicating value MAC_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.3.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + details set to "Invalid filtering: macIdentifer does not exist." + ; + ; + ; + to the MEC_APP entity + } + } + } +} + diff --git a/Test Purposes/MEC028/SRV/WAI/ExistingSub.tplan2 b/Test Purposes/MEC028/SRV/WAI/ExistingSub.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..878606f17cc29ac3f33e798c11637e04912f96f4 --- /dev/null +++ b/Test Purposes/MEC028/SRV/WAI/ExistingSub.tplan2 @@ -0,0 +1,296 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ +Package MEC_MEC028_SRV_WAI { + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_008_OK" + Test objective + "Check that the IUT responds with the list of Subscription" + Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity having a subscription containing + subscriptionId indicating value SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.6.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to CALLBACK_URI, + apId containing + macId set to MAC_ID + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_008_NF" + Test objective + "Check that the IUT responds with an error when a request for existing subscription with incorrect parameters is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity not having a subscription containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "404 Not found" + ; + to the MEC_APP entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_009_OK" + Test objective + "Check that the IUT responds with a Notification Subscription when it is modified" + Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.2" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity having a + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to CALLBACK_URI, + _links containing + self set to URI_TO_RESOURCE, + apId containing + macId set to MAC_ID + ; + ; + ; + } + //MEC 028, clause 5.2.4.3 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vPUT containing + uri indicating value "/wai/v2/subscriptions/{SUBSCRIPTION_ID}" + body containing + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to NEW_CALLBACK_URI, + _links containing + self set to URI_TO_RESOURCE, + apId containing + macId set to MAC_ID + ; + ; + ; + ; + ; + from the MEC_APP entity + } + then { + + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to NEW_CALLBACK_URI, + _links containing + self set to "uri/to/resource", + apId containing + macId set to MAC_ID + ; + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_009_BR" + Test objective + "Check that the IUT responds with an error when an invalid field is set in the subscription modification request" + Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.2" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity having a + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to CALLBACK_URI, + _links containing + self set to URI_TO_RESOURCE, + apId containing + macId set to MAC_ID + ; + ; + ; + } + //MEC 028, clause 5.2.4.3 + Expected behaviour + // Invalid subscriptionType should trigger an error response. + ensure that { + when { + the IUT entity receives + a vPUT containing + uri indicating value "/wai/v2/subscriptions/{SUBSCRIPTION_ID}" + body containing + AssocStaSubscription containing + subscriptionType set to "INVALID_VALUE", + callbackReference set to CALLBACK_URI, + _links containing + self set to "uri/to/resource", + apId containing + macId set to MAC_ID + ; + ; + ; + ; + ; + from the MEC_APP entity + } + then { + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_010_OK" + Test objective + "Check that the IUT responds with 204 when an existing subscription is correctly deleted" + Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.5" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity having a + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to CALLBACK_URI, + _links containing + self set to URI_TO_RESOURCE, + apId containing + macId set to MAC_ID + ; + ; + ; + } + //MEC 028, clause 5.2.4.4 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vDELETE containing + uri indicating value "/wai/v2/subscriptions/{SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_010_NF" + Test objective + "Check that the IUT responds with an error when an not existing subscription cannot be deleted" + Reference "ETSI GS MEC 028 2.2.1, clause 7.6.3.5" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity not having a subscriptions containing + subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID + ; + } + //MEC 028, clause 5.2.4.4 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vDELETE containing + uri indicating value "/wai/v2/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" + ; + from the MEC_APP entity + } + then { + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} \ No newline at end of file diff --git a/Test Purposes/MEC028/SRV/WAI/Measurement.tplan2 b/Test Purposes/MEC028/SRV/WAI/Measurement.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..e1d1bed486c61dc5c209cebf8ddfbcb75593e423 --- /dev/null +++ b/Test Purposes/MEC028/SRV/WAI/Measurement.tplan2 @@ -0,0 +1,546 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC028_SRV_WAI { + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_012_OK" + Test objective + "Check that the IUT responds with a list of measurement configurations available from the WLAN Access Information Service" + Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a MeasurementConfig containing + measurementConfig set to ANY_VALUE + ; + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/measurements" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.7.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + MeasurementConfigLinkList containing + measurementConfig set to ANY_VALUE + ; + ; + ; + to the MEC_APP entity + } + } + } + +/* + //Bad request + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_012_BR" + Test objective + "Check that the IUT responds with an error when a request with + incorrect parameters is sent by a MEC Application" + Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a MeasurementConfig containing + measurementConfig set to ANY_VALUE + ; + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + // How to trigger an error response. + uri indicating value "/wai/v2/queries/measurements" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.7.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + //Bad request + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_012_NF" + Test objective + "Check that the IUT responds with an error when a request with + incorrect parameters is sent by a MEC Application" + Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity not having a MeasurementConfig + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/measurements" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.7.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + */ + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_013_OK" + Test objective + "Check that the IUT responds with a new measurement configuration" + Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.4", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfig" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vPOST containing + uri indicating value "/wai/v2/queries/measurements", + body containing + MeasurementConfig containing + measurementId set to MEAS_ID, + measurementInfo set to CONFIG_VALUE, + staId containing + macId set to MAC_ID + ; + ; + ; + ; + from the MEC_APP entity + } then { + // MEC 028, clause 7.7.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + MeasurementConfig containing + staId containing + macId set to MAC_ID + ;, + measurementId set to MEAS_ID, + measurementInfo set to CONFIG_VALUE + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_013_BR" + Test objective + "Check that the IUT responds with an error when an invalid request is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.4", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vPOST containing + uri indicating value "/wai/v2/queries/measurements" + // How to trigger an error response. + body containing + MeasurementConfig containing + statId containing //staId is misspelled + macId set to MAC_ID + ;, + measurementId set to MEAS_ID, + measurementInfo set to CONFIG_VALUE + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.7.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } +/* + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_013_NF" + Test objective + "Check that the IUT responds with an error when an invalid request is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.7.3.4", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vPOST containing + uri indicating value "/wai/v2/queries/measurements_INVALID_URI" + body containing + MeasurementConfig containing + links indicating value H_LINKS, + staId containing + macId set to MAC_ID + ;, + measurementId set to MEAS_ID, + measurementInfo set to CONFIG_VALUE + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.7.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + */ + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_014_OK" + Test objective + "Check that the IUT responds with the specified measurement configuration" + Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a MeasurementConfig containing + measurementConfig containing + measurementId set to MEASUREMENT_CONFIG_ID + ; + ; + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/measurements/{MEASUREMENT_CONFIG_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + MeasurementConfig containing + staId containing + macId set to MAC_ID + ;, + measurementId set to MEASUREMENT_CONFIG_ID, + measurementInfo set to CONFIG_VALUE + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_014_NF" + Test objective + "Check that the IUT responds with an error when an invalid request is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity not having a MeasurementConfig containing + measurementConfig containing + measurementId set to INVALID_MEASUREMENT_CONFIG_ID + ; + ; + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/measurements/{INVALID_MEASUREMENT_CONFIG_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_015_OK" + Test objective + "Check that the IUT responds with the modified measurement configuration" + Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.2", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a MeasurementConfig containing + measurementConfig containing + staId containing + macId set to MAC_ID + ;, + measurementId set to INVALID_MEASUREMENT_CONFIG_ID, + measurementInfo set to CONFIG_VALUE + ; + ; + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vPUT containing + uri indicating value "/wai/v2/queries/measurements/{measurementConfigId}", + body containing + MeasurementConfig containing + staId containing + macId set to MAC_ID + ;, + measurementId set to MEASUREMENT_CONFIG_ID, + measurementInfo set to NEW_CONFIG_VALUE + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.8.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + MeasurementConfigLinkList containing + staId containing + macId set to MAC_ID + ;, + measurementId set to MEASUREMENT_CONFIG_ID, + measurementInfo set to NEW_CONFIG_VALUE + ; + ; + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_015_NF" + Test objective + "Check that the IUT responds with an error when an invalid request is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.2", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity not having a MeasurementConfig containing + measurementConfig containing + measurementId set to INVALID_MEASUREMENT_CONFIG_ID + ; + ; + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vPUT containing + uri indicating value "/wai/v2/queries/measurements/{INVALID_MEASUREMENT_CONFIG_ID}", + body containing + MeasurementConfigLinkList containing + staId containing + macId set to MAC_ID + ;, + measurementId set to INVALID_MEASUREMENT_CONFIG_ID, + measurementInfo set to NEW_CONFIG_VALUE + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.8.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_016_OK" + Test objective + "Check that the IUT responds with with 204 when requested to delete the specified measurement configuration" + Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.5", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a MeasurementConfig containing + measurementConfig containing + staId containing + macId set to MAC_ID + ;, + measurementId set to MEASUREMENT_CONFIG_ID, + measurementInfo set to NCONFIG_VALUE + ; + ; + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vDELETE containing + uri indicating value "/wai/v2/queries/measurements/{MEASUREMENT_CONFIG_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.8.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_016_NF" + Test objective + "Check that the IUT responds with an error when an invalid request is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.8.3.5", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/MeasurementConfigLinkList" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity not having a + MeasurementConfig containing + measurementId set to INVALID_MEASUREMENT_CONFIG_ID + ; + } + // MEC 028, clause 5.2.7 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vDELETE containing + uri indicating value "/wai/v2/queries/measurements/{INVALID_MEASUREMENT_CONFIG_ID}" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.8.3.5 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + +} + diff --git a/Test Purposes/MEC028/SRV/WAI/NotificationCallback.tplan2 b/Test Purposes/MEC028/SRV/WAI/NotificationCallback.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..9a7d5f828ced88262259d18150e47b48ece5f7fb --- /dev/null +++ b/Test Purposes/MEC028/SRV/WAI/NotificationCallback.tplan2 @@ -0,0 +1,54 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC028_SRV_WAI { + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_011_OK" + + Test objective + "Check that the IUT sends a notification about WLAN event notification + if the MEC service has an associated subscription and the event is generated" + + Reference "ETSI GS MEC 028 2.2.1, clause 6.4.2", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml" + + Config Id Config_MEC_4 + + PICS Selection PIC_NOTIFICATIONS + + Initial conditions with { + the IUT entity having a AssocStaSubscription containing + subscriptionType indicating value "AssocStaSubscription", + callbackReference indicating value CALLBACK_URI, + apId containing + macId set to MAC_ID + ; + ; + } + + // MEC 028, clause 5.2.6 + Expected behaviour + ensure that { + when { + the IUT entity generates a ap_identity_event containing + macId set to MAC_ID; + } + then { + the IUT entity sends a vPOST containing + uri indicating value CALLBACK_URI, + body containing + notificationType indicating value "AssocStaNotification", + apId containing + macId set to MAC_ID + ; + ; + ; + to the MEC_APP entity + } + } + } +} diff --git a/Test Purposes/MEC028/SRV/WAI/StationInfo.tplan2 b/Test Purposes/MEC028/SRV/WAI/StationInfo.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..6798a90f01d81281f9ab5236bd497ea5e2de3d6a --- /dev/null +++ b/Test Purposes/MEC028/SRV/WAI/StationInfo.tplan2 @@ -0,0 +1,151 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC028_SRV_WAI { + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_003_OK" + Test objective + "Check that the IUT responds with the list of Station Point" + Reference "ETSI GS MEC 028 2.2.1, clause 7.4.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schema/StaInfo" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity having a StaInfo containing + StaIdentity containing + macId indicating value MAC_ID + ; + ; + } + // MEC 028, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/sta/sta_information" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.4.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + StaInfo containing + StaIdentity containing + macId set to MAC_ID + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + // Query with filters + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_004_OK" + Test objective + "Check that the IUT responds with the list of Station Point filtered by the macId provided as query parameter" + Reference "ETSI GS MEC 028 2.2.1, clause 7.4.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schema/StaInfo" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity having a StaInfo containing + StaIdentity containing + macId indicating value MAC_ID + ; + ; + } + // MEC 028, clause 5.2.3 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/sta/sta_information", + query_parameters containing + macId set to MAC_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.4.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + StaInfo containing + StaIdentity containing + macId set to MAC_ID + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + //Bad request + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_004_BR" + Test objective + "Check that the IUT responds with an error when a request with + incorrect parameters is sent by a MEC Application" + Reference "ETSI GS MEC 028 2.2.1, clause 7.4.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + // MEC 028, clause 5.2.3 + Expected behaviour + // Invalid filter should trigger an error response. + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/queries/sta/sta_information", + query_parameters containing + mac set to MAC_ID + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.4.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + body containing + ProblemDetails containing + details set to "Invalid filtering: mac does not exist." + ; + ; + ; + to the MEC_APP entity + } + } + } +} + + diff --git a/Test Purposes/MEC028/SRV/WAI/Subscription.tplan2 b/Test Purposes/MEC028/SRV/WAI/Subscription.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..13fa67fa20eb51987bff8200ab04df442e599388 --- /dev/null +++ b/Test Purposes/MEC028/SRV/WAI/Subscription.tplan2 @@ -0,0 +1,338 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC028_SRV_WAI { + import all from MEC_Common; + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_005_OK" + Test objective + "Check that the IUT responds with the requested list of subscription" + Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity having a AssocStaSubscription containing + _link containing + self containing + href set to "uri/to/subscription" + ; + ; + ; + } + //MEC 028, clause 5.2.4.1 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/subscriptions" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.5.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + SubscriptionLinkList containing + assocStaSubscription containing + _link containing + self containing + href set to "uri/to/subscription" + ; + ; + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + // Query with filter + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_006_OK" + Test objective + "Check that the IUT responds with the requested list of subscription" + Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity having a AssocStaSubscription containing + _link containing + self containing + href set to "uri/to/subscription" + ; + ; + ; + } + //MEC 028, clause 5.2.4.1 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/subscriptions" + query_parameters containing + subscription_type indicating value "assoc_sta" + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.5.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + SubscriptionLinkList containing + assocStaSubscription containing + _link containing + self containing + LinkType containing + href set to "uri/to/subscription" + ; + ; + ; + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_006_BR" + Test objective + "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application" + Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1", + "https://forge.etsi.org/rep/mec/gs028-wai-api/blob/v2.2.1/WlanInformationApi.yaml#/schemas/AssocStaSubscription" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES and PIC_MEC_PLAT + + Initial conditions with { + the IUT entity being_in idle_state + } + //MEC 028, clause 5.2.4.1 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/subscriptions" + query_parameters containing + subscription_type indicating value "assocStaSub" + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.5.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_006_NF" + Test objective + "Check that the IUT responds with an error when + a request with not existing parameters is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + //MEC 028, clause 5.2.4.1 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vGET containing + uri indicating value "/wai/v2/subscriptions_INVALID_URI" + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.5.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_007_OK" + Test objective + "Check that the IUT responds with a Notification Subscription" + Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.4" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + 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 "/wai/v2/subscriptions" + body containing + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to CALLBACK_URI, + apId containing + macId set to MAC_ID + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.5.3.4 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "201 Created", + Location set to LOCATION, + body containing + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to CALLBACK_URI, + self containing + href set to "/wai/v2/subscriptions/{SUBSCRIPTION_ID}", + apId containing + macId set to MAC_ID + ; + ; + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_007_BR" + Test objective + "Check that the IUT responds with an error when an invalid Subscription request is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.4" + + Config Id Config_MEC_4 + + PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + Expected behaviour + // Invalid subscriptionType should trigger an error response. + ensure that { + when { + the IUT entity receives + a vPOST containing + uri indicating value "/wai/v2/subscriptions" + body containing + AssocStaSubscription containing + subscriptionType set to "INVALID_VALUE" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.5.3.4 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC028_SRV_WAI_007_NF" + Test objective + "Check that the IUT responds with an error when + a request with not existing parameters is sent" + Reference "ETSI GS MEC 028 2.2.1, clause 7.5.3.1" + + Config Id Config_MEC_4 + + PICS Selection PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + //MEC 028, clause 5.2.4.1 + Expected behaviour + ensure that { + when { + the IUT entity receives + a vPOST containing + uri indicating value "/wai/v2/subscriptions_INVALID_URI", + body containing + AssocStaSubscription containing + subscriptionType set to "AssocStaSubscription", + callbackReference set to CALLBACK_URI, + apId containing + macId set to MAC_ID + ; + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 028, clause 7.5.3.1 + the IUT entity sends + a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } +} \ No newline at end of file diff --git a/Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 b/Test Purposes/MEC029/SRV/FAIS/PlatFixedAcessInfo.tplan2 similarity index 96% rename from Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 rename to Test Purposes/MEC029/SRV/FAIS/PlatFixedAcessInfo.tplan2 index 7b35d8d8b9aa343c0ad3af12e29b145f756bbfea..046bcceb58b993540fa269553ae49e28d7df3059 100644 --- a/Test Purposes/SRV/FAIS/PlatFixedAcessInfo.tplan2 +++ b/Test Purposes/MEC029/SRV/FAIS/PlatFixedAcessInfo.tplan2 @@ -1,5 +1,5 @@ /* -Copyright (c) ETSI 2018. +Copyright (c) ETSI 2018-2021. 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 @@ -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 MEC_SRV_FAIS { +Package MEC_MEC029_SRV_FAIS { import all from MEC_Common; @@ -22,7 +22,7 @@ Package MEC_SRV_FAIS { * Fixed Access Information Service (FAIS) */ Test Purpose { - TP Id "TP_MEC_SRV_FAIS_001_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_001_OK" Test objective "Check that the IUT responds with the current status of the fixed access information @@ -62,7 +62,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_001_BR" + TP Id "TP_MEC_MEC029_SRV_FAIS_001_BR" Test objective "Check that the IUT responds with an error when @@ -103,7 +103,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_001_NF" + TP Id "TP_MEC_MEC029_SRV_FAIS_001_NF" Test objective "Check that the IUT responds with an error when @@ -143,7 +143,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_002_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_002_OK" Test objective "Check that the IUT responds with the current status of the device information @@ -183,7 +183,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_002_BR" + TP Id "TP_MEC_MEC029_SRV_FAIS_002_BR" Test objective "Check that the IUT responds with an error when @@ -224,7 +224,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_002_NF" + TP Id "TP_MEC_MEC029_SRV_FAIS_002_NF" Test objective "Check that the IUT responds with an error when @@ -264,7 +264,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_003_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_003_OK" Test objective "Check that the IUT responds with the current status of the cable line information @@ -304,7 +304,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_003_BR" + TP Id "TP_MEC_MEC029_SRV_FAIS_003_BR" Test objective "Check that the IUT responds with an error when @@ -345,7 +345,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_003_NF" + TP Id "TP_MEC_MEC029_SRV_FAIS_003_NF" Test objective "Check that the IUT responds with an error when @@ -385,7 +385,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_004_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_004_OK" Test objective "Check that the IUT responds with the current status of the optical network information @@ -425,7 +425,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_004_BR" + TP Id "TP_MEC_MEC029_SRV_FAIS_004_BR" Test objective "Check that the IUT responds with an error when @@ -466,7 +466,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_004_NF" + TP Id "TP_MEC_MEC029_SRV_FAIS_004_NF" Test objective "Check that the IUT responds with an error when @@ -506,7 +506,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_005_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_005_OK" Test objective "Check that the IUT responds with the subscriptions for fixed access information notifications @@ -546,7 +546,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_005_BR" + TP Id "TP_MEC_MEC029_SRV_FAIS_005_BR" Test objective "Check that the IUT responds with an error when @@ -587,7 +587,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_005_NF" + TP Id "TP_MEC_MEC029_SRV_FAIS_005_NF" Test objective "Check that the IUT responds with an error when @@ -627,7 +627,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_006_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_006_OK" Test objective "Check that the IUT acknowledges the subscription by a MEC Application @@ -687,7 +687,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_006_BR" + TP Id "TP_MEC_MEC029_SRV_FAIS_006_BR" Test objective "Check that the IUT responds with an error when @@ -731,7 +731,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_007_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_007_OK" Test objective "Check that the IUT responds with the information on a given subscription @@ -776,7 +776,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_007_NF" + TP Id "TP_MEC_MEC029_SRV_FAIS_007_NF" Test objective "Check that the IUT responds with an error when @@ -816,7 +816,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_008_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_008_OK" Test objective "Check that the IUT updates an existing subscription @@ -867,7 +867,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_008_BR" + TP Id "TP_MEC_MEC029_SRV_FAIS_008_BR" Test objective "Check that the IUT responds with an error when @@ -914,7 +914,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_008_NF" + TP Id "TP_MEC_MEC029_SRV_FAIS_008_NF" Test objective "Check that the IUT responds with an error when @@ -928,7 +928,7 @@ Package MEC_SRV_FAIS { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -960,7 +960,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_008_PF" + TP Id "TP_MEC_MEC029_SRV_FAIS_008_PF" Test objective "Check that the IUT responds with an error when @@ -1006,7 +1006,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_009_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_009_OK" Test objective "Check that the IUT cancels an existing subscription @@ -1046,7 +1046,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_009_NF" + TP Id "TP_MEC_MEC029_SRV_FAIS_009_NF" Test objective "Check that the IUT responds with an error when @@ -1060,7 +1060,7 @@ Package MEC_SRV_FAIS { Initial conditions with { the IUT entity being_in idle_state and - the IUT entity "not" having a subscriptions containing + the IUT entity not having a subscriptions containing subscription_id indicating value NON_EXISTENT_SUBSCRIPTION_ID ; } @@ -1086,7 +1086,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_010_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_010_OK" Test objective "Check that the IUT sends notification on expiry of Fixed Access Information event subscription @@ -1149,7 +1149,7 @@ Package MEC_SRV_FAIS { Test Purpose { - TP Id "TP_MEC_SRV_FAIS_011_OK" + TP Id "TP_MEC_MEC029_SRV_FAIS_011_OK" Test objective "Check that the IUT sends notifications on Fixed Access Information events diff --git a/Test Purposes/MEC030/SRV/V2XInformationService.tplan2 b/Test Purposes/MEC030/SRV/V2XInformationService.tplan2 new file mode 100644 index 0000000000000000000000000000000000000000..2d9cb6d8daa6dd29fc489581ee1ddf29e3a45509 --- /dev/null +++ b/Test Purposes/MEC030/SRV/V2XInformationService.tplan2 @@ -0,0 +1,2300 @@ +/* +Copyright (c) ETSI 2018-2021. +Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters +*/ + +Package MEC_MEC030_SRV_V2X { + + import all from MEC_Common; + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_001_OK_01" + + Test objective + "Check that the IUT responds with a configured provisioning information over Uu unicast + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.3.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a uuUnicastProvisioningInfo containing + location_info indicating value LOCATION_INFO_ECGI + ; + } + + // MEC 030 Clause 6.2.2 Type: UuUnicastProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/uu_unicast_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_ECGI + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + uuUnicastProvisioningInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_001_OK_02" + + Test objective + "Check that the IUT responds with a configured provisioning information over Uu unicast + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.3.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a uuUnicastProvisioningInfo containing + location_info indicating value LOCATION_INFO_LATITUDE + ; + } + + // MEC 030 Clause 6.2.2 Type: UuUnicastProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/uu_unicast_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_LATITUDE + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + uuUnicastProvisioningInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_001_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.3.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a uuUnicastProvisioningInfo containing + location_info indicating value LOCATION_INFO_LATITUDE + ; + } + + // MEC 030 Clause 6.2.2 Type: UuUnicastProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/uu_unicast_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_LATITUDE + // Wrong parameter name should trigger an error response. + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_001_NF" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.3.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a uuUnicastProvisioningInfo containing + location_info indicating value LOCATION_INFO_ECGI + ; + } + + // MEC 030 Clause 6.2.2 Type: UuUnicastProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/uu_unicast_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_UNKNOWN_ECGI + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_002_OK_01" + + Test objective + "Check that the IUT responds with a configured provisioning information over Uu MBMS + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.4.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a uuMbmsProvisioningInfo containing + location_info indicating value LOCATION_INFO_ECGI + ; + } + + // MEC 030 Clause 6.2.3 Type: UuMbmsProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/uu_mbms_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_ECGI + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + uuMbmsProvisioningInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_002_OK_02" + + Test objective + "Check that the IUT responds with a configured provisioning information over Uu MBMS + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.4.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a uuMbmsProvisioningInfo containing + location_info indicating value LOCATION_INFO + ; + } + + // MEC 030 Clause 6.2.3 Type: UuMbmsProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/uu_mbms_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_LATITUDE + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + uuMbmsProvisioningInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_002_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.4.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a uuMbmsProvisioningInfo containing + location_info indicating value LOCATION_INFO + ; + } + + // MEC 030 Clause 6.2.3 Type: UuMbmsProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/uu_mbms_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_ECGI + // Wrong parameter name should trigger an error response. + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_002_NF" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.4.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a uuMbmsProvisioningInfo containing + location_info indicating value LOCATION_INFO + ; + } + + // MEC 030 Clause 6.2.3 Type: UuMbmsProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/uu_mbms_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_UNKNOWN_LATITUDE + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.4.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_003_OK_01" + + Test objective + "Check that the IUT responds with a configured provisioning information over PC5 + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.5.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a pc5ProvisioningInfo containing + location_info indicating value LOCATION_INFO + ; + } + + // MEC 030 Clause 6.2.4 Type: Pc5ProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/pc5_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_ECGI + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + pc5ProvisioningInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_003_OK_02" + + Test objective + "Check that the IUT responds with a configured provisioning information over PC5 + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.5.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a pc5ProvisioningInfo containing + location_info indicating value LOCATION_INFO + ; + } + + // MEC 030 Clause 6.2.4 Type: Pc5ProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/pc5_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_LATITUDE + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + pc5ProvisioningInfo set to any_value + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_003_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.5.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a pc5ProvisioningInfo containing + location_info indicating value LOCATION_INFO + ; + } + + // MEC 030 Clause 6.2.4 Type: Pc5ProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/pc5_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_ECGI + // Wrong parameter name should trigger an error response. + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_003_NF" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.5.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a pc5ProvisioningInfo containing + location_info indicating value LOCATION_INFO + ; + } + + // MEC 030 Clause 6.2.4 Type: Pc5ProvisioningInfo + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/queries/pc5_provisioning_info" + query_parameters containing + location_info indicating value LOCATION_INFO_UNKNOWN_ECGI + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.5.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_004_OK" + + Test objective + "Check that the IUT sends a request about QoS information for a vehicular UE + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.6.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a predictedQos + } + + // MEC 030 Clause 6.2.5 Type: PredictedQos + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/provide_predicted_qos" + body containing + predictedQos containing + locationGranularity indicating value PREDICTED_LOCATION_GRANULARITY, + routes indicating value PREDICTED_ROUTES + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.6.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" + body containing + predictedQos containing + locationGranularity set to any_value, + routes set to any_value + ; + ; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_004_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.6.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a predictedQos + } + + // MEC 030 Clause 6.2.5 Type: PredictedQos + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/provide_predicted_qos" + // Wrong parameter name should trigger an error response. + body containing + predictedQos containing + locationGranularity indicating value PREDICTED_LOCATION_GRANULARITY, + routes indicating value PREDICTED_ROUTES + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.6.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_004_NF" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.6.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity not having a predictedQos + } + + // MEC 030 Clause 6.2.5 Type: PredictedQos + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/provide_predicted_qos" + body containing + predictedQos containing + locationGranularity indicating value PREDICTED_LOCATION_GRANULARITY, + routes indicating value PREDICTED_UNKNOWN_ROUTES + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.6.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_005_OK" + + Test objective + "Check that the IUT processes properly a request to publish a V2X message" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.7.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 030 Clause 6.2.6 Type: V2xMsgPublication + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/publish_v2x_message" + body containing + V2xMsgPublication containing + stdOrganization indicating value "ETSI", + msgType indicating value 2, // ETSI ITS CAM, See ETSI TS 102 894-2 + msgEncodeFormat indicating value "base64", + msgContent indicating value CAM_VALUE_BASE_64 + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.7.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_005_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.7.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 030 Clause 6.2.6 Type: V2xMsgPublication + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/publish_v2x_message", + body containing + V2xMsgPublication containing + stdOrganization indicating value "UNKNOWN_ORG" + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.7.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_006_OK_01" + + Test objective + "Check that the IUT responds with the requested list of subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuUniSubscription containing + _links containing + self indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/prov_chg_uu_uni" + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + subscriptionLinkList containing + subscriptions containing + href indicating value HREF_UU_UNI_SUBSCRIPTION, + subscriptionType indicating value "ProvChgUuUniSubscription" + ; + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_006_OK_02" + + Test objective + "Check that the IUT responds with the requested list of subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuMbmsSubscription containing + _links containing + self indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.3 Type: ProvChgUuMbmsSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/prov_chg_uu_mbms" + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + subscriptionLinkList containing + subscriptions containing + href indicating value HREF_UU_MBMS_SUBSCRIPTION, + subscriptionType indicating value "ProvChgUuMbmsSubscription" + ; + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_006_OK_03" + + Test objective + "Check that the IUT responds with the requested list of subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a pc5ProvisioningInfo containing + _links containing + self indicating value HREF_PC5_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.3 Type: ProvChgUuMbmsSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/prov_chg_pc5" + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + subscriptionLinkList containing + subscriptions containing + href indicating value HREF_PC5_SUBSCRIPTION, + subscriptionType indicating value "ProvChgPc5Subscription" + ; + ; + ; + ;; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_006_OK_04" + + Test objective + "Check that the IUT responds with the requested list of subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a v2xMsgSubscription containing + _links containing + self indicating value HREF_V2X_MSG_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.5 Type: V2xMsgSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/v2x_msg" + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + subscriptionLinkList containing + subscriptions containing + href indicating value HREF_V2X_MSG_SUBSCRIPTION, + subscriptionType indicating value "V2xMsgSubscription" + ; + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_006_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuUniSubscription containing + _links containing + self indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/{subscriptionType}", + query_parameters containing + // Wrong parameter name should trigger an error response. + subscriptionType indicating value ANY + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_007_OK_01" + + Test objective + "Check that the IUT responds with the requested to create a subscription" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/subscriptions", + body containing + provChgUuUniSubscription containing + subscriptionType indicating value "ProvChgUuUniSubscription", + callbackReference indicating value CALLBACK_UU_UNI_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_UNI_CRITERIA + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" containing + body containing + provChgUuUniSubscription containing + subscriptionType indicating value "ProvChgUuUniSubscription", + callbackReference indicating value CALLBACK_UU_UNI_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_UNI_CRITERIA, + _links indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_007_OK_02" + + Test objective + "Check that the IUT responds with the requested to create a subscription" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 030 Clause 6.3.3 Type: ProvChgUuMbmsSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/subscriptions", + body containing + provChgUuMbmsSubscription containing + subscriptionType indicating value "ProvChgUuMbmsSubscription", + callbackReference indicating value CALLBACK_UU_MBMS_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_MBMS_CRITERIA + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" containing + body containing + provChgUuMbmsSubscription containing + subscriptionType indicating value "ProvChgUuMbmsSubscription", + callbackReference indicating value CALLBACK_UU_MBMS_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_MBMS_CRITERIA, + _links indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_007_OK_03" + + Test objective + "Check that the IUT responds with the requested to create a subscription" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 030 Clause 6.3.4 Type: ProvChgPc5Subscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/subscriptions" + body containing + provChgPc5Subscription containing + subscriptionType indicating value "ProvChgPc5Subscription", + callbackReference indicating value CALLBACK_PC5_SUBSCRIPTION, + filterCriteria indicating value FILTER_PC5_CRITERIA + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" containing + body containing + provChgPc5Subscription containing + subscriptionType indicating value "ProvChgPc5Subscription", + callbackReference indicating value CALLBACK_PC5_SUBSCRIPTION, + filterCriteria indicating value FILTER_PC5_CRITERIA, + _links indicating value HREF_PC5_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_007_OK_04" + + Test objective + "Check that the IUT responds with the requested to create a subscription" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 030 Clause 6.3.5 Type: V2xMsgSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/subscriptions" + body containing + v2xMsgSubscription containing + subscriptionType indicating value "V2xMsgSubscription", + callbackReference indicating value CALLBACK_PC5_SUBSCRIPTION, + filterCriteria indicating value FILTER_V2XMSG_CRITERIA + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "201 Created" containing + body containing + v2xMsgSubscription containing + subscriptionType indicating value "V2xMsgSubscription", + callbackReference indicating value CALLBACK_V2XMSG_SUBSCRIPTION, + filterCriteria indicating value FILTER_V2XMSG_CRITERIA, + _links indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_007_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.8.3.4", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state + } + + // MEC 030 Clause 6.3.3 Type: ProvChgUuMbmsSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPOST containing + uri indicating value "vis/v1/subscriptions" + body containing + provChgUuMbmsSubscription containing + subscriptionType indicating value "InvalidProvChgUuMbmsSubscription", // Invalid SubscriptionType + callbackReference indicating value CALLBACK_UU_MBMS_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_MBMS_CRITERIA + ; + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.8.3.4 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_008_OK_01" + + Test objective + "Check that the IUT responds with the requested of subscription information + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuUniSubscription containing + _links containing + self indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + provChgUuUniSubscription containing + subscriptionType indicating value "ProvChgUuUniSubscription", + callbackReference indicating value CALLBACK_UU_UNI_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_UNI_CRITERIA, + _links indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_008_OK_02" + + Test objective + "Check that the IUT responds with the requested of subscription information + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuMbmsSubscription containing + _links containing + self indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.3 Type: ProvChgUuMbmsSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + provChgUuMbmsSubscription containing + subscriptionType indicating value "ProvChgUuMbmsSubscription", + callbackReference indicating value CALLBACK_UU_MBMS_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_MBMS_CRITERIA, + _links indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_008_OK_03" + + Test objective + "Check that the IUT responds with the requested of subscription information + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgPc5Subscription containing + _links containing + self indicating value HREF_PC5_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.4 Type: ProvChgPc5Subscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_PC5_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + provChgPc5Subscription containing + subscriptionType indicating value "ProvChgPc5Subscription", + callbackReference indicating value CALLBACK_PC5_SUBSCRIPTION, + filterCriteria indicating value FILTER_PC5_CRITERIA, + _links indicating value HREF_PC5_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_008_OK_04" + + Test objective + "Check that the IUT responds with the requested of subscription information + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a v2xMsgSubscription containing + _links containing + self indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.5 Type: V2xMsgSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + v2xMsgSubscription containing + subscriptionType indicating value "V2xMsgSubscription", + callbackReference indicating value CALLBACK_V2XMSG_SUBSCRIPTION, + filterCriteria indicating value FILTER_V2XMSG_CRITERIA, + _links indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_008_BR" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a v2xMsgSubscription containing + _links containing + self indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.5 Type: V2xMsgSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + // Wrong parameter name should trigger an error response. + subscriptionId indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_008_NF" + + Test objective + "Check that the IUT responds with an error when + a request with incorrect parameters is sent by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.1", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a v2xMsgSubscription containing + _links containing + self indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.5 Type: V2xMsgSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vGET containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_V2XMSG_UNKNOWN_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_009_OK_01" + + Test objective + "Check that the IUT responds with the requested of updating subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuUniSubscription containing + _links containing + self indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_UNI_SUBSCRIPTION, + body containing + provChgUuUniSubscription containing + subscriptionType indicating value "ProvChgUuUniSubscription", + callbackReference indicating value CALLBACK_UU_UNI_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_UNI_CRITERIA_1, + _links indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + provChgUuUniSubscription containing + subscriptionType indicating value "ProvChgUuUniSubscription", + callbackReference indicating value CALLBACK_UU_UNI_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_UNI_CRITERIA_1, + _links indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_009_OK_02" + + Test objective + "Check that the IUT responds with the requested of updating subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuMbmsSubscription containing + _links containing + self indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.3 Type: ProvChgUuMbmsSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_MBMS_SUBSCRIPTION, + body containing + provChgUuMbmsSubscription containing + subscriptionType indicating value "ProvChgUuMbmsSubscription", + callbackReference indicating value CALLBACK_UU_MBMS_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_MBMS_CRITERIA_1, + _links indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + provChgUuMbmsSubscription containing + subscriptionType indicating value "ProvChgUuMbmsSubscription", + callbackReference indicating value CALLBACK_UU_MBMS_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_MBMS_CRITERIA_1, + _links indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_009_OK_03" + + Test objective + "Check that the IUT responds with the requested of updating subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgPc5Subscription containing + _links containing + self indicating value HREF_PC5_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.4 Type: ProvChgPc5Subscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_PC5_SUBSCRIPTION, + body containing + provChgPc5Subscription containing + subscriptionType indicating value "ProvChgPc5Subscription", + callbackReference indicating value CALLBACK_PC5_SUBSCRIPTION, + filterCriteria indicating value FILTER_PC5_CRITERIA_1, + _links indicating value HREF_PC5_SUBSCRIPTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + provChgPc5Subscription containing + subscriptionType indicating value "ProvChgPc5Subscription", + callbackReference indicating value CALLBACK_PC5_SUBSCRIPTION, + filterCriteria indicating value FILTER_PC5_CRITERIA_1, + _links indicating value HREF_PC5_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_009_OK_04" + + Test objective + "Check that the IUT responds with the requested of updating subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a v2xMsgSubscription containing + _links containing + self indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.5 Type: V2xMsgSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_V2XMSG_SUBSCRIPTION, + body containing + v2xMsgSubscription containing + subscriptionType indicating value "ProvChgPc5Subscription", + callbackReference indicating value CALLBACK_V2XMSG_SUBSCRIPTION, + filterCriteria indicating value FILTER_V2XMSG_CRITERIA_1, + _links indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "200 OK" containing + body containing + v2xMsgSubscription containing + subscriptionType indicating value "V2xMsgSubscription", + callbackReference indicating value CALLBACK_V2XMSG_SUBSCRIPTION, + filterCriteria indicating value FILTER_V2XMSG_CRITERIA_1, + _links indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ;; + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_009_BR" + + Test objective + "Check that the IUT responds with the requested of updating subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuUniSubscription containing + _links containing + self indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_UNI_SUBSCRIPTION, + body containing + provChgUuUniSubscription containing + subscriptionType indicating value "InvalidProvChgUuUniSubscription", // Invalid SubscriptionType + callbackReference indicating value CALLBACK_UU_UNI_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_UNI_CRITERIA_1, + _links indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "400 Bad Request" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_009_NF" + + Test objective + "Check that the IUT responds with the requested of updating subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuUniSubscription containing + _links containing + self indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vPUT containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_UNI_UNKNOWN_SUBSCRIPTION, + body containing + provChgUuUniSubscription containing + subscriptionType indicating value "ProvChgUuUniSubscription", + callbackReference indicating value CALLBACK_UU_UNI_SUBSCRIPTION, + filterCriteria indicating value FILTER_UU_UNI_CRITERIA_1, + _links indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ;; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_010_OK_01" + + Test objective + "Check that the IUT responds with the requested of removing subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuUniSubscription containing + _links containing + self indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_010_OK_02" + + Test objective + "Check that the IUT responds with the requested of removing subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuMbmsSubscription containing + _links containing + self indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.3 Type: ProvChgUuMbmsSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_MBMS_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_010_OK_03" + + Test objective + "Check that the IUT responds with the requested of removing subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgPc5Subscription containing + _links containing + self indicating value HREF_PC5_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.4 Type: ProvChgPc5Subscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_PC5_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_010_OK_04" + + Test objective + "Check that the IUT responds with the requested of removing subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a v2xMsgSubscription containing + _links containing + self indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.5 Type: V2xMsgSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_V2XMSG_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_010_NF" + + Test objective + "Check that the IUT responds with the requested of removing subscription + when queried by a MEC Application" + + Reference "ETSI GS MEC 030 V2.1.1, clause 7.9.3.2", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the IUT entity having a provChgUuUniSubscription containing + _links containing + self indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + } + + // MEC 030 Clause 6.3.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity receives a vDELETE containing + uri indicating value "vis/v1/subscriptions/{subscriptionId}", + query_parameters containing + subscriptionId indicating value HREF_UU_UNI_SUBSCRIPTION + ; + ; + from the MEC_APP entity + } + then { + // MEC 030 Clause 7.9.3.2 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "404 Not Found" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_011_OK_01" + + Test objective + "Check that the IUT sends a notification about the provisioning information changes for V2X communication over Uu unicast" + + Reference "ETSI GS MEC 030 V2.1.1, clause 5.5.6", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a ProvChgUuUniSubscription containing + callbackReference indicating value CALLBACK_UU_UNI_URI + ; + } + + // MEC 030 Clause 6.4.2 Type: ProvChgUuUniSubscription + Expected behaviour + ensure that { + when { + the IUT entity generates a provChgUuUniNotification containing + notificationType indicating value "ProvChgUuUniNotification", + locationInfo indicating value LOCATION_INFO; + } + then { + // MEC 030 Clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_011_OK_02" + + Test objective + "Check that the IUT sends a notification about the provisioning information changes for V2X communication over Uu MBMS" + + Reference "ETSI GS MEC 030 V2.1.1, clause 5.5.7", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a ProvChgUuMbmsSubscription containing + callbackReference indicating value CALLBACK_UU_MBMS_URI + ; + } + + // MEC 030 Clause 6.4.3 Type: ProvChgUuMbmsSubscription + Expected behaviour + ensure that { + when { + the IUT entity generates a provChgUuMbmsNotification containing + notificationType indicating value "ProvChgUuMbmsNotification", + locationInfo indicating value LOCATION_INFO; + } + then { + // MEC 030 Clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + + Test Purpose { + TP Id "TP_MEC_MEC030_SRV_V2X_011_OK_03" + + Test objective + "Check that the IUT sends a notification about the provisioning information changes for V2X communication over PC5" + + Reference "ETSI GS MEC 030 V2.1.1, clause 5.5.8", + "https://forge.etsi.org/rep/mec/gs030-vis-api/blob/master/MEC030_V2XInformationService.yaml" + + Config Id Config_MEC_1 + + PICS Selection PIC_MEC_PLAT and PIC_SERVICES + + Initial conditions with { + the IUT entity being_in idle_state and + the MEC_APP entity having a ProvChgPc5Subscription containing + callbackReference indicating value CALLBACK_PC5_URI + ; + } + + // MEC 030 Clause 6.4.4 Type: ProvChgPc5Subscription + Expected behaviour + ensure that { + when { + the IUT entity generates a provChgPc5Notification containing + notificationType indicating value "ProvChgPc5Notification", + locationInfo indicating value LOCATION_INFO; + } + then { + // MEC 030 Clause 7.3.3.1 + the IUT entity sends a HTTP_RESPONSE containing + status_code set to "204 No Content" + ; + to the MEC_APP entity + } + } + } + + +} diff --git a/Test Purposes/MEO/GRANT/Grant_BI.tplan2 b/Test Purposes/MEO/GRANT/Grant_BI.tplan2 deleted file mode 100644 index 96d02395bdfa078de16e6cf9421dec87eec815af..0000000000000000000000000000000000000000 --- a/Test Purposes/MEO/GRANT/Grant_BI.tplan2 +++ /dev/null @@ -1,94 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_MEO_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.1.1, clause 7.6.1.3.2", - "ETSI GS MEC 010-2 2.1.1, 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_GRANT_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.1.1, 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 deleted file mode 100644 index 7d7a4f4c3c128f211d8e61910b2b930e0971406d..0000000000000000000000000000000000000000 --- a/Test Purposes/MEO/GRANT/Grant_BV.tplan2 +++ /dev/null @@ -1,201 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_MEO_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.1.1, clause 7.6.1.3.1", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.4.2.2-1", //GrantRequest - "ETSI GS MEC 010-2 2.1.1, 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.1.1, clause 7.6.1.3.1", - "ETSI GS MEC 010-2 2.1.1, 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.1.1, 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.1.1, clause 7.6.1.3.2", - "ETSI GS MEC 010-2 2.1.1, 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_BO-BI.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 deleted file mode 100644 index a17cac9db6320e2c45b92a35af1a6a467a09cce1..0000000000000000000000000000000000000000 --- a/Test Purposes/MEO/PKGM/AppPkgMgt_BO-BI.tplan2 +++ /dev/null @@ -1,367 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_MEO_PKGM_BO_BI { - - import all from MEC_Common; - - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_001_BR" //Negative case 400 Bad request - - Test objective - "Check that MEO responds with an error when it receives - a malformed request for creating a new App Package" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.2.2-1" //AppPkg - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - "not" appPkgName //mandatory attribute - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_002_BR" //Negative case 400 Bad request - - Test objective - "Check that MEO responds with an error when it receives - a malformed request for retrieving the list of existing App Packages" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages", - query_parameters containing - operationalStatus indicating value any_value // the query parameter should be operationalState not operationalStatus - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_003_NF" //Negative case 404 Not found - - Test objective - "Check that MEO responds with an error when it receives - a request for retrieving a App Package referred with a wrong ID" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Package containing - appPkgId indicating value NON_EXISTENT_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" //wrong AppPackageID - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_004_NF" //Negative case 404 Not found - - Test objective - "Check that MEO responds with an error when it receives - a request for deleting an App Package referred with a wrong ID" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.4", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Package containing - appPkgId indicating value NON_EXISTENT_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" //wrong AppPackageID - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_005_BR" - - Test objective - "Check that MEO sends an error when it receives a malformed request to modify - the operational state of an application package" - - Reference "ETSI GS MEC 010-2 2.1.1, 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 - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", - uri_parameter appPkgOperation indicating value "DISABL"; //it should be DISABLE - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request"; - to the MEC_OSS entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_005_NF" //Negative case 404 Not found - - Test objective - "Check that MEO responds with an error when it receives - a request for updating an App Package referred with a wrong ID" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.4", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Package containing - appPkgId indicating value NON_EXISTENT_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}", //wrong AppPackageID - uri_parameter appPkgOperation indicating value "ENABLE" - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_006_NF" //Negative case 404 Not found - - Test objective - "Check that MEO responds with an error when it receives - a request to retrieve an application descriptor referred with a wrong app package ID" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.6.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Package containing - appPkgId indicating value NON_EXISTENT_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appDId" - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_007_BR" - - Test objective - "Check that MEO service sends an error when it receives a - malformed request for creating a new subscription on AppPackages" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.3.3.1" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/apmi/v1/subscriptions", - body containing - AppPkgSubscription containing - callbackUri set to URI, - subscriptionType set to "ONBOARDING" // Enum should be "ON-BOARDING" - ; - ; - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_009_NF" - - Test objective - "Check that MEO service sends an error when it receives a query for a subscription on AppPackages - with a wrong identifier" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.4.3.2" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a Subscription containing - subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_010_NF" - - Test objective - "Check that MEO service sends an error when it receives a deletion request for a subscription on AppPackages - with a wrong identifier" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.4.3.4" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a Subscription containing - subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; - to the MEC_OSS entity - } - } - } -} diff --git a/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 b/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 deleted file mode 100644 index 4955b93dcfe8836c6c42eae1ab0386611aa68fd2..0000000000000000000000000000000000000000 --- a/Test Purposes/MEO/PKGM/AppPkgMgt_BV.tplan2 +++ /dev/null @@ -1,496 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_MEO_PKGM_BV { - - import all from MEC_Common; - - //All APP packages - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_001_OK" - - Test objective - "Check that MEO creates a new App Package when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.1.3.1", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1", //OnboardedAppPkgInfo - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.2.2-1" //AppPkg - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/app_packages", - body containing - AppPkg containing - appPkgName set to APP_PKG_NAME, - appPkgVersion set to APP_PKG_VERSION, - checksum set to CHECKSUM, - appPkgPath set to APP_PKG_PATH - ; - ; - ; from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "201 Created", - body containing - OnboardedAppPkgInfoList containing - OnboardedAppPkgInfo containing - appPkgId set to any_value, - appDId set to any_value, - appName set to APP_PKG_NAME, - appSoftwareVersion set to any_value, - appDVersion set to APP_PKG_VERSION, - checksum set to CHECKSUM, - attribute softwareImages, - operationalState set to "ENABLED", - usageState set to "NOT_IN_USE", - attribute _links - ; - ; - ; - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_002_OK" - - Test objective - "Check that MEO returns the list of App Packages when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.1.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - OnboardedAppPkgInfoList containing - OnboardedAppPkgInfo containing - appPkgId set to ON_BOARDED_APP_PKG_ID, - appDId set to APPD_ID, - appName set to any_value, - appSoftwareVersion set to any_value, - appDVersion set to any_value, - checksum set to any_value, - attribute softwareImages, - operationalState set to any_value, - usageState set to any_value, - attribute _links - ; - ; - ; - ; to the MEC_OSS entity - } - } - } - - //Individual APP packages - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_003_OK" - - Test objective - "Check that MEO returns the an App Package when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - OnboardedAppPkgInfo containing - appPkgId set to ON_BOARDED_APP_PKG_ID, - appDId set to APPD_ID, - appName set to any_value, - appSoftwareVersion set to any_value, - appDVersion set to any_value, - checksum set to any_value, - attribute softwareImages, - operationalState set to any_value, - usageState set to any_value, - attribute _links - ; - ; - ; to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_004_OK" - - Test objective - "Check that MEO deletes an App Package when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.4" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "204 No Content" - ; to the MEC_OSS entity - } - } - } - - - 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 - " - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.3" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - operationalState set to INITIAL_OP_STATE; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}", - uri_parameter appPkgOperation indicating value OPERATION_VALUE; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK"; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_006_OK" - - Test objective - "Check that MEO returns the Application Descriptor contained on a on-boarded Application Package when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.6.3.2" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}/appDId", - accept set to ACCEPTED_CONTENT_TYPE - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE_ANY_CONTENT containing - status set to "200 OK", - content_type set to ACCEPTED_CONTENT_TYPE, - body set to FILE - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_007_OK" - - Test objective - "Check that MEO service sends a Application Package Subscription when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.3.3.1" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/subscriptions" - body containing - AppPkgSubscription containing - callbackUri set to URI, - subscriptionType set to "ON_BOARDING" - ; - ; - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "201 Created", - body containing - AppPkgSubscriptionInfo containing - subscriptionId set to any_value, - subscriptionType set to "ON_BOARDING", - callbackUri set to URI, - attribute _links - ; - ; - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_008_OK" - - Test objective - "Check that MEO service returns the list of Application Package Subscriptions when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.3.3.2" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a Subscription containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions" - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - AppPkgSubscriptionInfoList containing - AppPkgSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to any_value, - callbackUri set to any_value, - _links containing - self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; - ; - ; - to the MEC_OSS entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_009_OK" - - Test objective - "Check that MEO service returns an Application Package Subscription when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.4.3.2" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a Subscription containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - AppPkgSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to any_value, - callbackUri set to any_value, - _links containing - self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_010_OK" - - Test objective - "Check that MEO service deletes an Application Package Subscription when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.4.3.4" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a Subscription containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEC_OSS entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "204 No Content" - ; - to the MEC_OSS entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEO_PKGM_011_OK" - - Test objective - "Check that the MEO service sends a application package notification - if the MEO service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.5.1" - - Config Id Config_MEC_2 - PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a Subscriptions containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to "ON_BOARDING", - callbackUri set to CALLBACK_URI - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity generates a on_boarding_event containing - subscriptionId set to SUBSCRIPTION_ID; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationId set to any_value, - notificationType indicating value "ON_BOARDING", - subscriptionId set to SUBSCRIPTION_ID, - timeStamp set to any_value, - appPkgId set to any_value, - appDId set to any_value, - _links containing - self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; to the MEC_SUB entity - } - } - } -} diff --git a/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 b/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 deleted file mode 100644 index b5cc06bf42f5bb0f357518975b247453dd830c2b..0000000000000000000000000000000000000000 --- a/Test Purposes/MEO/UEAPPS/SysUeApplications.tplan2 +++ /dev/null @@ -1,163 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package MEC_MEO_UEAPPS { - - import all from MEC_Common; - - - /* - * UE Applications (UEAPPS) - */ - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPS_001_OK" - - Test objective - "Check that the IUT responds with the list of user applications available - when requested by an UE Application" - - Reference "ETSI GS MEC 016 2.1.1, clause 7.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs016-ue-app-api/blob/master/UEAppInterfaceApi.yaml#/definitions/ApplicationList" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the Dev_App entity having a appInfo containing - appName indicating value APP_NAME - ; - } - - // MEC 016, clause 5.1.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mx2/v2/app_list", - query_parameters containing - appName indicating value APP_NAME - ; - ; - from the Dev_App entity - } - then { - // MEC 016, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - ApplicationList containing - appInfo containing - appName set to APP_NAME - ; - ; - ; - ; - to the Dev_App entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPS_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 016 2.1.1, clause 7.3.3.1" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the Dev_App entity having a appInfo containing - appName indicating value APP_NAME - ; - } - - // MEC 016, clause 5.1.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mx2/v2/app_list", - query_parameters containing - appName indicating value APP_NAME, - // Wrong name should trigger an error response. - serviceCont indicating value INVALID_VALUE - ; - ; - from the Dev_App entity - } - then { - // MEC 016, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the Dev_App entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEO_UEAPPS_001_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 016 2.1.1, clause 7.3.3.1" - - Config Id Config_MEC_4 - - PICS Selection PIC_MEC_SYSTEM and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the Dev_App entity "not" having a appInfo containing - appName indicating value NON_EXISTING_APP_NAME - ; - } - - // MEC 016, clause 5.1.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mx2/v2/app_list", - query_parameters containing - // Wrong value should trigger an error response. - appName indicating value NON_EXISTING_APP_NAME - ; - ; - from the Dev_App entity - } - then { - // MEC 016, clause 7.3.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the Dev_App entity - } - } - } -} diff --git a/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 b/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 deleted file mode 100644 index 1585f30545e66156f1482dfeeb5213e9d87db24d..0000000000000000000000000000000000000000 --- a/Test Purposes/MEPM/PKGM/AppPkgMgt_BO-BI.tplan2 +++ /dev/null @@ -1,269 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_MEPM_MM3_PKGM_BI { - - import all from MEC_Common; - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_001_BR" //Negative case 400 Bad request - - Test objective - "Check that MEPM responds with an error when it receives - a malformed request for requesting the list of existing App Packages" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.1.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages", - query_parameters containing - operationalStatus indicating value ENABLED // the query parameter should be operationalState not operationalStatus - ; - ; from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the MEO entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_002_NF" //Negative case 404 Not found - - Test objective - "Check that MEPM responds with an error when it receives - a request for returning a App Package referred with a wrong ID" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.2.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Package containing - appPkgId indicating value NON_EXISTENT_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" - ; from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEO entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_003_NF" //Negative case 404 Not found - - Test objective - "Check that MEPM responds with an error when it receives - a request for returning a App Descriptor referred with a wrong App Package ID" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.4.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Package containing - appPkgId indicating value NON_EXISTENT_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/app_descriptor" - ; from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEO entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_004_NF" //Negative case 404 Not found - - Test objective - "Check that MEPM responds with an error when it receives - a request for returning a application package content referred with a wrong App Package ID" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.4.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Package containing - appPkgId indicating value NON_EXISTENT_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appPkgContent" - ; from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEO entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_005_BR" - - Test objective - "Check that MEPM service sends an error when it receives a - malformed request for creating a new subscription on AppPackages" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.5.3.1" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a POST containing - uri indicating value "/apmi/v1/subscriptions", - body containing - AppPkgSubscription containing - subscriptionType set to "ONBOARDING" // Enum should be "ON-BOARDING" - ; - ; - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; - to the MEO entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_007_NF" - - Test objective - "Check that MEPM service sends an error when it receives a query for a subscription on AppPackages - with a wrong identifier" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.6.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a Subscription containing - subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; - to the MEO entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_008_NF" - - Test objective - "Check that MEPM service sends an error when it receives a deletion request for a subscription on AppPackages - with a wrong identifier" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.6.3.4" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a Subscription containing - subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID - ; - - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; - to the MEO entity - } - } - } - -} diff --git a/Test Purposes/MEPM/PKGM/AppPkgMgt_BV.tplan2 b/Test Purposes/MEPM/PKGM/AppPkgMgt_BV.tplan2 deleted file mode 100644 index a15870fd01fd2f8400f135db11b00a36d0463b55..0000000000000000000000000000000000000000 --- a/Test Purposes/MEPM/PKGM/AppPkgMgt_BV.tplan2 +++ /dev/null @@ -1,408 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_MEPM_MM3_PKGM_BV { - - import all from MEC_Common; - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_001_OK" - - Test objective - "Check that MEPM returns the list of App Packages when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.1.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID, - appDId indicating value APPD_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages"; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - OnboardedAppPkgInfoList containing - OnboardedAppPkgInfo containing - appPkgId set to ON_BOARDED_APP_PKG_ID, - appDId set to APPD_ID, - appName set to any_value, - appSoftwareVersion set to any_value, - appDVersion set to any_value, - checksum set to any_value, - attribute softwareImages, - operationalState set to any_value, - usageState set to any_value, - attribute _links - ; - ; - ; - ; to the MEO entity - } - } - } - - //Individual APP packages - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_002_OK" - - Test objective - "Check that MEPM returns the an App Package when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.2.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1" //OnboardedAppPkgInfo - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}"; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - OnboardedAppPkgInfo containing - appPkgId set to ON_BOARDED_APP_PKG_ID, - appDId set to any_value, - appName set to any_value, - appSoftwareVersion set to any_value, - appDVersion set to any_value, - checksum set to any_value, - attribute softwareImages, - operationalState set to any_value, - usageState set to any_value, - attribute _links - ; - ; - ; to the MEO entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_003_OK" - - Test objective - "Check that MEPM returns the Application Descriptor contained on a on-boarded Application Package when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.4.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{appPkgId}/app_descriptor", - accept set to ACCEPTED_CONTENT_TYPE - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body set to FILE - ; - to the MEO entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_004_OK" - - Test objective - "Check that MEPM returns the content on a on-boarded Application Package when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.3.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Package containing - appPkgId indicating value ON_BOARDED_APP_PKG_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}/appPkgContent" - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - AppD set to FILE - ; - ; - to the MEO entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_005_OK" - - Test objective - "Check that MEPM service returns an application package subscription when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.5.3.1" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/apmi/v1/subscriptions" - body containing - AppPkgSubscription containing - callbackUri set to URI, - subscriptionType set to SUBSCRIPTION_TYPE - ; - ; - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "201 Created", - body containing - AppPkgSubscriptionInfo containing - subscriptionId set to any_value, - subscriptionType set to SUBSCRIPTION_TYPE, - callbackUri set to URI, - attribute _links - ; - ; - ; - to the MEO entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_006_OK" - - Test objective - "Check that MEPM service returns the list of Application Package Subscriptions when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.5.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a Subscription containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions" - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - AppPkgSubscriptionInfoList containing - AppPkgSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to any_value, - callbackUri set to any_value, - _links containing - self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; - ; - ; - to the MEO entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_007_OK" - - Test objective - "Check that MEPM service returns an Application Package Subscription when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.6.3.2" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a Subscription containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "200 OK", - body containing - AppPkgSubscriptionInfo containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to any_value, - callbackUri set to any_value, - _links containing - self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; - ; - to the MEO entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_008_OK" - - Test objective - "Check that MEPM service deletes an Application Package Subscription when requested" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.6.3.4" - - Config Id Config_MEC_5 - PICS Selection PIC_APP_PACKAGE_MANAGEMENT - - Initial conditions with { - the IUT entity having a Subscription containing - subscriptionId indicating value SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - from the MEO entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "204 No Content" - ; - to the MEO entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEPM_PKGM_009_OK" - - Test objective - "Check that the MEPM service sends a application package notification - if the MEPM service has an associated subscription and the event is generated" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.7.3.1" - - Config Id Config_MEC_3 - PICS Selection PIC_APP_PACKAGE_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a Subscription containing - subscriptionId set to SUBSCRIPTION_ID, - subscriptionType set to SUBSCRIPTION_TYPE, - callbackUri set to CALLBACK_URI, - attribute _links - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity generates a on_boarding_event containing - notificationId set to NOTIFICATION_ID; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - notificationId set to NOTIFICATION_ID, - notificationType indicating value any_value, - subscriptionId set to SUBSCRIPTION_ID, - timeStamp set to any_value, - appPkgId set to any_value, - appDId set to any_value, - _links containing - self set to "/apmi/v1/subscriptions/{SUBSCRIPTION_ID}" - ; - ; - ; to the MEC_SUB entity - } - } - } -} diff --git a/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 b/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 deleted file mode 100644 index afaf3f368481254c34dbfb8b42e037dc565674be..0000000000000000000000000000000000000000 --- a/Test Purposes/MEX/LCM/AppInstanceMgmt_BO-BI.tplan2 +++ /dev/null @@ -1,490 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_APP_INSTANCE_LCM_BI { - - import all from MEC_Common; - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_001_BR" - - Test objective - "Check that MEC API providersends an error when it receives a malformed request - for the creation of a new App Instance" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.1.3.1", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.3.2-1", //CreateAppInstanceRequest - "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1" //AppInstanceInfo - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances", - body containing - CreateAppInstanceRequest containing - appDDDId set to APP_D_ID - ; - ; - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; to the MEC_CONSUMER entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_003_NF" // Wrong APP_INSTANCE_ID - - Test objective - "Check that MEC API providerfails on retrieving an App Instance when requested using wrong appInstanceId" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1" //AppInstanceInfo - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Instance containing - appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_004_NF" // Wrong APP_INSTANCE_ID - - Test objective - "Check that MEC API providerfails on deletion of an App Instance when requested using wrong appInstanceId" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.2.3.2", - "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1" //AppInstanceInfo - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Instance containing - appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_005_BR" - - Test objective - "Check that MEC API providerservice fails to instantiate an App Instance when it receives a malformed request" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.7.2-1" // InstantiateAppRequest - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Instance containing - appInstanceId indicating value APP_INSTANCE_ID, - instantiationState indicating value NOT_INSTANTIATED - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/instantiate", - body containing - InstantiateAppRequest containing - appERRORId set to APP_INSTANCE_ID //wrong name of the parameter - ; - ; - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad request" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_005_NF" // Wrong APP_INSTANCE_ID - - Test objective - "Check that MEC API providerservice fails to instantiate an App Instance when it receives a request - related to a not existing App Instance" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.6.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.7.2-1" // InstantiateAppRequest - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Instance containing - appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/instantiate" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_006_BR" - - Test objective - "Check that MEC API providerservice fails to terminate an App Instance when it receives a malformed request" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.9.2-1" // TerminateAppRequest - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Instance containing - appInstanceId indicating value APP_INSTANCE_ID, - instantiationState indicating value INSTANTIATED - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/terminate", - body containing - TerminateAppRequest containing - terminationERRORType set to GRACEFULL //wrong parameter - ; - ; - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad request" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_006_NF" // Wrong APP_INSTANCE_ID - - Test objective - "Check that MEC API providerservice fails to terminate an App Instance when it receives a request - related to a not existing App Instance" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.7.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.9.2-1" // TerminateAppRequest - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Instance containing - appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/terminate" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_007_BR" - - Test objective - "Check that MEC API providerservice fails to operate on an App Instance when it receives a malformed request" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.8.2-1" // OperateAppRequest - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity having a App_Instance containing - appInstanceId indicating value APP_INSTANCE_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/operate", - body containing - OperateAppRequest containing - changeERRORStateTo set to any_value //wrong parameter - ; - ; - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad request" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_007_NF" // Wrong APP_INSTANCE_ID - - Test objective - "Check that MEC API providerservice fails to change the status of an App Instance when it receives a request - related to a not existing App Instance" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.8.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.8.2-1" // OperateAppRequest - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Instance containing - appInstanceId indicating value NON_EXISTENT_APP_INSTANCE_ID; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/operate" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_009_NF" - - Test objective - "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Operation Occurrency" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.10.1.3.2", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.14.2-1" // AppLcmOpOcc - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Lcm_Op_Occ containing - appLcmOpOccId indicating value NON_EXISTENT_APP_LCM_OP_OCC_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/app_lcm_op_occs/{NON_EXISTENT_APP_LCM_OP_OCC_ID}" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_010_BR" - - Test objective - "Check that MEC API providerservice sends an error when it receives a malformed request to create a LCM Subscription" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.3.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.13.2-1", // AppInstSubscriptionRequest - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.16.2-1" // AppLcmOpOccSubscriptionInfo - - - Config Id Config_MEC_6 - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity being_in idle_state - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "/alcmi/v1/subscriptions" - body containing - AppInstSubscriptionRequest containing - callbackERRORUri set to CALLBACK_URI //wrong parameter - ; - ; - ; - from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "400 Bad Request" - ; - to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_012_NF" - - Test objective - "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Subscription" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Instance_Subscription containing - subscriptionId set to NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_013_NF" - - Test objective - "Check that MEC API providerservice sends an error when it receives a deletion request for a not existing LCM Subscription" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.3.3.2" - - Config Id Config_MEC_6 - - PICS Selection PIC_APP_LCM_MANAGEMENT - - Initial conditions with { - the IUT entity "not" having a App_Instance_Subscription containing - subscriptionId set to NON_EXISTENT_SUBSCRIPTION_ID - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}" - ; from the MEC_CONSUMER entity - } - then { - the IUT entity sends a HTTP_RESPONSE containing - status set to "404 Not Found" - ; to the MEC_CONSUMER entity - } - } - } - -} diff --git a/Test Purposes/MEX/LCM/AppInstanceMgmt_notifications.tplan2 b/Test Purposes/MEX/LCM/AppInstanceMgmt_notifications.tplan2 deleted file mode 100644 index d611a9f377979235ebded1c1685cd2b66c4a6e59..0000000000000000000000000000000000000000 --- a/Test Purposes/MEX/LCM/AppInstanceMgmt_notifications.tplan2 +++ /dev/null @@ -1,66 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ -Package MEC010_2_LCM_NOTIF { - - import all from MEC_Common; - - Test Purpose { - TP Id "TP_MEC_MEX_LCM_014_OK" - - Test objective - "Check that MEC API provider sends a notification to the subscriber when an application lcm change event occurs" - - Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.5.3.1", - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.18.2-1", // AppLcmOpOccNotification - "ETSI GS MEC 010-2 2.1.1, table 6.2.2.12.2-1" // AppInstNotification - - - Config Id Config_MEC_6 - PICS Selection PIC_APP_LCM_NOTIFICATIONS - - Initial conditions with { - the IUT entity having a App_Instance_Subscription containing - subscriptionType indicating value SUBSCRIPTION_TYPE, - callbackUri indicating value CALLBACK_URI, - attribute _links - ; - } - - Expected behaviour - ensure that { - when { - the IUT entity generates a application_lcm_change_event containing - notificationId set to NOTIFICATION_ID; - } - then { - the IUT entity sends a vPOST containing - uri indicating value CALLBACK_URI, - body containing - Notification containing - notificationId set to NOTIFICATION_ID, - notificationType set to NOTIFICATION_TYPE, - subscriptionId set to any_value, - timeStamp set to any_value, - appInstanceId set to any_value, - appDId set to any_value, - attribute _links - ; - ; - ; to the MEC_SUB entity - } - } - } - -} diff --git a/Test Purposes/SRV/BWA/PlatBandwidthManager.tplan2 b/Test Purposes/SRV/BWA/PlatBandwidthManager.tplan2 deleted file mode 100644 index e6ab4d6cea361d03a3c14a6e9f699c4f682859e4..0000000000000000000000000000000000000000 --- a/Test Purposes/SRV/BWA/PlatBandwidthManager.tplan2 +++ /dev/null @@ -1,804 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package MEC_SRV_BWA { - - import all from MEC_Common; - - - /* - * Bandwidth Allocations (BWA) - */ - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_001_OK" - - Test objective - "Check that the IUT responds with the list of configured bandwidth allocations - when queried by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.4.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a bwInfo containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations", - query_parameters containing - app_instance_id indicating value APP_INSTANCE_ID - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_001_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.4.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a bwInfo containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.5 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations", - query_parameters containing - // Wrong parameter name should trigger an error response. - app_id indicating value APP_INSTANCE_ID - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_002_OK" - - Test objective - "Check that the IUT responds with a registration and initialisation approval - for the requested bandwidth requirements sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "bwm/v1/bw_allocations", - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK", - Location set to LOCATION, - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_002_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.4.3.4", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPOST containing - uri indicating value "bwm/v1/bw_allocations", - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - requestType indicating value INVALID_BW_ALLOCATION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.4 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_003_OK" - - Test objective - "Check that the IUT responds with the configured bandwidth allocation - when queried by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.1", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_003_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.1" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity "not" having a allocation_instance containing - allocationId indicating value NON_EXISTENT_ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.2 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.4.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_004_OK" - - Test objective - "Check that the IUT updates the requested bandwidth requirements - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_004_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value INVALID_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_004_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity "not" having a allocation_instance containing - allocationId indicating value NON_EXISTENT_ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_004_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.2", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPUT containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value INVALID_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.2 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_005_OK" - - Test objective - "Check that the IUT when provided with just the changes (deltas) - updates the requested bandwidth requirements - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - bwInfo containing - appInsId set to APP_INSTANCE_ID, - fixedAllocation set to SOME_ALLOCATION, - allocationDirection set to SOME_DIRECTION - ; - ; - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_005_BR" - - Test objective - "Check that the IUT responds with an error when - a request with incorrect parameters is sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - requestType indicating value INVALID_TYPE, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "400 Bad Request" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_005_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity "not" having a allocation_instance containing - allocationId indicating value NON_EXISTENT_ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}", - if_match indicating value PROPER_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_005_PF" - - Test objective - "Check that the IUT responds with an error when - a request sent by a MEC Application doesn't comply with a required condition" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.3", - "https://forge.etsi.org/gitlab/mec/gs015-bandwith-mgmt-api/blob/master/BwManagementApi.yaml#/definitions/BwInfoDeltas" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a app_instance containing - appInsId indicating value APP_INSTANCE_ID - ; and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.4 - Expected behaviour - ensure that { - when { - the IUT entity receives a vPATCH containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}", - if_match indicating value INVALID_ETAG, - body containing - appInsId indicating value APP_INSTANCE_ID, - fixedAllocation indicating value SOME_ALLOCATION, - allocationDirection indicating value SOME_DIRECTION - ; - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.3 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "412 Precondition Failed" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_006_OK" - - Test objective - "Check that the IUT unregisters from the Bandwidth Management Service - when commanded by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity having a allocation_instance containing - allocationId indicating value ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "bwm/v1/bw_allocations/{ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "204 No Content" - ; - to the MEC_APP entity - } - } - } - - - Test Purpose { - TP Id "TP_MEC_SRV_BWA_006_NF" - - Test objective - "Check that the IUT responds with an error when - a request for an unknown URI is sent by a MEC Application" - - Reference "ETSI GS MEC 015 1.1.1, clause 8.3.3.5" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state and - the MEC_APP entity "not" having a allocation_instance containing - allocationId indicating value NON_EXISTENT_ALLOCATION_ID - ; - } - - // MEC 015, clause 6.2.3 - Expected behaviour - ensure that { - when { - the IUT entity receives a vDELETE containing - uri indicating value "bwm/v1/bw_allocations/{NON_EXISTENT_ALLOCATION_ID}" - ; - from the MEC_APP entity - } - then { - // MEC 015, clause 8.3.3.5 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "404 Not Found" - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/SRV/TRANS/PlatTransport.tplan2 b/Test Purposes/SRV/TRANS/PlatTransport.tplan2 deleted file mode 100644 index c6143622d661f357888ccd9a74dd7c4e0f7490f6..0000000000000000000000000000000000000000 --- a/Test Purposes/SRV/TRANS/PlatTransport.tplan2 +++ /dev/null @@ -1,65 +0,0 @@ -/* -Copyright (c) ETSI 2018. - -This software is subject to copyrights owned by ETSI. Non-exclusive permission -is hereby granted, free of charge, to copy, reproduce and amend this file -under the following conditions: It is provided "as is", without warranty of any -kind, expressed or implied. - -ETSI shall never be liable for any claim, damages, or other liability arising -from its use or inability of use.This permission does not apply to any documentation -associated with this file for which ETSI keeps all rights reserved. The present -copyright notice shall be included in all copies of whole or part of this -file and shall not imply any sub-license right. -*/ - -Package MEC_SRV_TRANS { - - import all from MEC_Common; - - - /* - * Transport (TRANS) - */ - Test Purpose { - TP Id "TP_MEC_SRV_TRANS_001_OK" - - Test objective - "Check that the IUT responds with a list of available transports - when queried by a MEC Application" - - Reference "ETSI GS MEC 011 2.1.1, clause 7.9.3.1", - "https://forge.etsi.org/gitlab/mec/gs011-app-enablement-api/blob/master/Mp1.yaml#/definitions/TransportInfo" - - Config Id Config_MEC_1 - - PICS Selection PIC_MEC_PLAT and PIC_SERVICES - - Initial conditions with { - the IUT entity being_in idle_state - } - - // MEC 011 2.1.1, clause 5.2.9 - Expected behaviour - ensure that { - when { - the IUT entity receives a vGET containing - uri indicating value "mec_service_mgmt/v1/transports" - ; - from the MEC_APP entity - } - then { - // MEC 011 2.1.1, clause 7.9.3.1 - the IUT entity sends a HTTP_RESPONSE containing - status_code set to "200 OK" - body containing - TransportInfoList containing - TransportInfo set to any_value - ; - ; - ; - to the MEC_APP entity - } - } - } -} diff --git a/Test Purposes/mec-common.tplan2 b/Test Purposes/mec-common.tplan2 index 476db5794b922e9eae648fcc4eeeb5608e8621ab..393d1fea7fa6180e328917f7936d3e27d4900646 100644 --- a/Test Purposes/mec-common.tplan2 +++ b/Test Purposes/mec-common.tplan2 @@ -160,6 +160,7 @@ Package MEC_Common { headers set to vHeadersResponse ; + } Configuration { @@ -203,7 +204,7 @@ Package MEC_Common { Test Configuration Config_MEC_5 containing Tester component MecOrchestrator of type MecOrchestrator SUT component IUT of type MecPlatformManagerComponent - connection between MEO.p and IUT.p + connection between MecOrchestrator.p and IUT.p ; Test Configuration Config_MEC_6 containing diff --git a/scripts/list_TP_Groups.sh b/scripts/list_TP_Groups.sh new file mode 100644 index 0000000000000000000000000000000000000000..026052fd3b3f2a3914384392630c7424e4e563bd --- /dev/null +++ b/scripts/list_TP_Groups.sh @@ -0,0 +1 @@ +grep -ohEr TP_MEC_[A-Zp0-9]*_[A-Zp0-9]*_[A-Z0-9]* | sort | uniq diff --git a/scripts/list_TPs.sh b/scripts/list_TPs.sh new file mode 100644 index 0000000000000000000000000000000000000000..521529c355e36297b08a852b8e6d2d17a7e90860 --- /dev/null +++ b/scripts/list_TPs.sh @@ -0,0 +1 @@ +grep -ohEr TP_MEC_[A-Zp0-9]*_[A-Z0-9]*_[A-Z0-9]*_[A-Z0-9]*[_A-Z0-9]* | sort | uniq