Loading Test Purposes/MEC011/PlatDnsRules.tplan2 +46 −1 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ Package plat_mp1_dns_rules { from the MEC_APP entity } then { // MEC 011, clause 7.12.3.1 the IUT entity sends a HTTP_RESPONSE_200_OK containing body containing valid_DnsRule_list; Loading Loading @@ -93,6 +94,7 @@ Package plat_mp1_dns_rules { from the MEC_APP entity } then { // MEC 011, clause 7.13.3.1 the IUT entity sends a HTTP_RESPONSE_200_OK containing body containing valid_DnsRule; Loading Loading @@ -154,7 +156,7 @@ Package plat_mp1_dns_rules { Test objective "Check that the IUT responds with an error when not compliant data is sent for an update to a specific DNS rule non compliant data is sent for an update to a specific DNS rule by a MEC Application" Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2" Loading Loading @@ -194,4 +196,47 @@ Package plat_mp1_dns_rules { } } } Test Purpose { TP Id "TP_MEC_PLAT_MP1_DNS_BI_002" Test objective "Check that the IUT responds with an error when queried by a MEC Application which provides a non-existing DNS rule identifier" Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.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 apps_instance containing instance_id indicating value APP_INSTANCE_ID; and the IUT entity having a dns_rules containing rule_id indicating value DNS_RULE_ID; } // MEC 011, clause 5.2.8 Expected behaviour ensure that { when { the IUT entity receives a vGET containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/NON_EXISTING_DNS_RULE_ID" ; from the MEC_APP entity } then { // MEC 011, clause 7.13.3.1 the IUT entity sends a HTTP_RESPONSE_404_NOT_FOUND containing body containing problemDetails set to DNS_RULE_SAMPLE_NOT_FOUND_DETAILS ; ; to the MEC_APP entity } } } } Test Purposes/mec-common.tplan2 +5 −1 Original line number Diff line number Diff line Loading @@ -128,6 +128,10 @@ Package MEC_Common { status_code set to HTTP_400_BAD_REQUEST ; HttpMsg HTTP_RESPONSE_404_NOT_FOUND containing headers set to vHeadersResponse, status_code set to HTTP_404_NOT_FOUND ; } Loading Loading
Test Purposes/MEC011/PlatDnsRules.tplan2 +46 −1 Original line number Diff line number Diff line Loading @@ -52,6 +52,7 @@ Package plat_mp1_dns_rules { from the MEC_APP entity } then { // MEC 011, clause 7.12.3.1 the IUT entity sends a HTTP_RESPONSE_200_OK containing body containing valid_DnsRule_list; Loading Loading @@ -93,6 +94,7 @@ Package plat_mp1_dns_rules { from the MEC_APP entity } then { // MEC 011, clause 7.13.3.1 the IUT entity sends a HTTP_RESPONSE_200_OK containing body containing valid_DnsRule; Loading Loading @@ -154,7 +156,7 @@ Package plat_mp1_dns_rules { Test objective "Check that the IUT responds with an error when not compliant data is sent for an update to a specific DNS rule non compliant data is sent for an update to a specific DNS rule by a MEC Application" Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.3.2" Loading Loading @@ -194,4 +196,47 @@ Package plat_mp1_dns_rules { } } } Test Purpose { TP Id "TP_MEC_PLAT_MP1_DNS_BI_002" Test objective "Check that the IUT responds with an error when queried by a MEC Application which provides a non-existing DNS rule identifier" Reference "ETSI GS MEC 011 V2.0.4, clause 7.13.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 apps_instance containing instance_id indicating value APP_INSTANCE_ID; and the IUT entity having a dns_rules containing rule_id indicating value DNS_RULE_ID; } // MEC 011, clause 5.2.8 Expected behaviour ensure that { when { the IUT entity receives a vGET containing Uri indicating value "mp1/v1/applications/{APP_INSTANCE_ID}/dns_rules/NON_EXISTING_DNS_RULE_ID" ; from the MEC_APP entity } then { // MEC 011, clause 7.13.3.1 the IUT entity sends a HTTP_RESPONSE_404_NOT_FOUND containing body containing problemDetails set to DNS_RULE_SAMPLE_NOT_FOUND_DETAILS ; ; to the MEC_APP entity } } } }
Test Purposes/mec-common.tplan2 +5 −1 Original line number Diff line number Diff line Loading @@ -128,6 +128,10 @@ Package MEC_Common { status_code set to HTTP_400_BAD_REQUEST ; HttpMsg HTTP_RESPONSE_404_NOT_FOUND containing headers set to vHeadersResponse, status_code set to HTTP_404_NOT_FOUND ; } Loading