Loading Test Purposes/MEC048/MEO/CSE/CustomerSelfServiceEnablement.tplan2 0 → 100644 +287 −0 Original line number Diff line number Diff line Package MEC_MEC040_MEO_CSE { import all from MEC_Common; Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_001_OK" Test objective "Check that the IUT responds with a list of all available tenantInfo when requested to a MEC Orchestrator - No query parameters" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.1, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1, tenantInfo2 indicating value CUSTOMER_ID_2, tenantInfo3 indicating value CUSTOMER_ID_3 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vGET containing uri indicating value "/cse/v1/tenants" ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK", body containing tenantInfoList containing tenantInfo containing customerId indicating value CUSTOMER_ID_1, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantX" ;, tenantInfo containing customerId indicating value CUSTOMER_ID_2, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantY" ;, tenantInfo containing customerId indicating value CUSTOMER_ID_3, customerName indicating value CUSTOMER_NAME_2, tenantName indicating value "tenantX" ; ; ; ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_001_OK Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_001_OK_02" Test objective "Check that the IUT responds with a list of all available tenantInfo when requested to a MEC Orchestrator - customerId as query parameter" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.1, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1, tenantInfo2 indicating value CUSTOMER_ID_2, tenantInfo3 indicating value CUSTOMER_ID_3 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vGET containing uri indicating value "/cse/v1/tenants", query_parameters containing customerId indicating value CUSTOMER_ID_1 ; ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK", body containing tenantInfoList containing tenantInfo containing customerId indicating value CUSTOMER_ID_1, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantX" ; ; ; ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_001_OK_02 Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_001_OK_03" Test objective "Check that the IUT responds with a list of all available tenantInfo when requested to a MEC Orchestrator - customerId as query parameter" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.1, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1, tenantInfo2 indicating value CUSTOMER_ID_2, tenantInfo3 indicating value CUSTOMER_ID_3 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vGET containing uri indicating value "/cse/v1/tenants", query_parameters containing customerName indicating value CUSTOMER_NAME_1 ; ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK", body containing tenantInfoList containing tenantInfo containing customerId indicating value CUSTOMER_ID_1, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantX" ;, tenantInfo containing customerId indicating value CUSTOMER_ID_2, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantY" ; ; ; ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_001_OK_03 Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_002_OK" Test objective "Check that the IUT creates a new tenantInfo when requested by a MEC Orchestrator" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.4, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity not having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vPOST containing uri indicating value "/cse/v1/tenants", body containing tenantInfo containing customerId indicating value CUSTOMER_ID, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value TENANT_NAME ; ; ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location indicating value "/cse/v1/tenants/TENANT_ID", body containing tenantInfo containing customerId indicating value CUSTOMER_ID, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value TENANT_NAME ; ; ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_002_OK Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_002_BR" Test objective "Check that the IUT responds with an error on creating a tenantInfo with resourceUseInfo and siteList" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.4, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity not having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vPOST containing uri indicating value "/cse/v1/tenants", body containing tenantInfo containing customerId indicating value CUSTOMER_ID, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value TENANT_NAME, resourceUseInfo indicating value SOME_RESOURCE_USE_INFO, siteList indicating value SOME_SITE_INFO //Either resourceUseInfo or siteList or none of them shall be present. ; ; ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_002_BR } Loading
Test Purposes/MEC048/MEO/CSE/CustomerSelfServiceEnablement.tplan2 0 → 100644 +287 −0 Original line number Diff line number Diff line Package MEC_MEC040_MEO_CSE { import all from MEC_Common; Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_001_OK" Test objective "Check that the IUT responds with a list of all available tenantInfo when requested to a MEC Orchestrator - No query parameters" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.1, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1, tenantInfo2 indicating value CUSTOMER_ID_2, tenantInfo3 indicating value CUSTOMER_ID_3 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vGET containing uri indicating value "/cse/v1/tenants" ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK", body containing tenantInfoList containing tenantInfo containing customerId indicating value CUSTOMER_ID_1, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantX" ;, tenantInfo containing customerId indicating value CUSTOMER_ID_2, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantY" ;, tenantInfo containing customerId indicating value CUSTOMER_ID_3, customerName indicating value CUSTOMER_NAME_2, tenantName indicating value "tenantX" ; ; ; ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_001_OK Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_001_OK_02" Test objective "Check that the IUT responds with a list of all available tenantInfo when requested to a MEC Orchestrator - customerId as query parameter" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.1, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1, tenantInfo2 indicating value CUSTOMER_ID_2, tenantInfo3 indicating value CUSTOMER_ID_3 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vGET containing uri indicating value "/cse/v1/tenants", query_parameters containing customerId indicating value CUSTOMER_ID_1 ; ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK", body containing tenantInfoList containing tenantInfo containing customerId indicating value CUSTOMER_ID_1, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantX" ; ; ; ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_001_OK_02 Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_001_OK_03" Test objective "Check that the IUT responds with a list of all available tenantInfo when requested to a MEC Orchestrator - customerId as query parameter" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.1, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1, tenantInfo2 indicating value CUSTOMER_ID_2, tenantInfo3 indicating value CUSTOMER_ID_3 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vGET containing uri indicating value "/cse/v1/tenants", query_parameters containing customerName indicating value CUSTOMER_NAME_1 ; ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.1 the IUT entity sends a HTTP_RESPONSE containing status_code set to "200 OK", body containing tenantInfoList containing tenantInfo containing customerId indicating value CUSTOMER_ID_1, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantX" ;, tenantInfo containing customerId indicating value CUSTOMER_ID_2, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value "tenantY" ; ; ; ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_001_OK_03 Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_002_OK" Test objective "Check that the IUT creates a new tenantInfo when requested by a MEC Orchestrator" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.4, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity not having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vPOST containing uri indicating value "/cse/v1/tenants", body containing tenantInfo containing customerId indicating value CUSTOMER_ID, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value TENANT_NAME ; ; ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "201 Created", Location indicating value "/cse/v1/tenants/TENANT_ID", body containing tenantInfo containing customerId indicating value CUSTOMER_ID, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value TENANT_NAME ; ; ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_002_OK Test Purpose { TP Id "TP_MEC_MEC040_MEO_CSE_002_BR" Test objective "Check that the IUT responds with an error on creating a tenantInfo with resourceUseInfo and siteList" Reference "ETSI GS MEC 048 V3.1.1, clause 7.3.3.4, clause 6.2.2" Config Id Config_MEC_6 PICS Selection PIC_SERVICES Initial conditions with { the IUT entity being_in idle_state and the MEO entity not having a tenantInfoList containing tenantInfo indicating value CUSTOMER_ID_1 ; } // MEC 048 Clause 6.2.2 Type: TenantInfo Expected behaviour ensure that { when { the IUT entity receives a vPOST containing uri indicating value "/cse/v1/tenants", body containing tenantInfo containing customerId indicating value CUSTOMER_ID, customerName indicating value CUSTOMER_NAME_1, tenantName indicating value TENANT_NAME, resourceUseInfo indicating value SOME_RESOURCE_USE_INFO, siteList indicating value SOME_SITE_INFO //Either resourceUseInfo or siteList or none of them shall be present. ; ; ; from the MEC_CONSUMER entity } then { // MEC 048 Clause 7.3.3.4 the IUT entity sends a HTTP_RESPONSE containing status_code set to "400 Bad Request" ; to the MEC_CONSUMER entity } } } // End of TP_MEC_MEC040_MEO_CSE_002_BR }