Commit 4ba844d1 authored by piscione's avatar piscione
Browse files

Merge branch 'TTF_T027' of https://forge.etsi.org/rep/mec/gs032p2-test-purposes into TTF_T027

parents 58e48106 8b708a74
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -75,7 +75,7 @@ Package MEC_MEC013_SRV_UEDISTLOOK {


        Test objective
        Test objective
            "Check that the IUT responds with an error 
            "Check that the IUT responds with an error 
			when a request with incorrect parameters is sent by a MEC Application - Invalid filter"
             when a request with incorrect parameters is sent by a MEC Application"


        Reference
        Reference
            "ETSI GS MEC 013 3.1.1 Clause 5.3.2",
            "ETSI GS MEC 013 3.1.1 Clause 5.3.2",
@@ -95,8 +95,11 @@ Package MEC_MEC013_SRV_UEDISTLOOK {
        Expected behaviour
        Expected behaviour
            ensure that {
            ensure that {
                when {
                when {
                    the IUT entity receives a vGET containing
                    the IUT entity receives a vGET containing // Wrong URL structure: no URI query parameters supported
                        uri indicating value "location/v3/subscriptions/distance&event";
                        uri indicating value "location/v3/subscriptions/distance",
                        query_parameters containing
                            subscriptionType indicating value any_value
                    ;;
                    from the MEC_APP entity
                    from the MEC_APP entity
                }
                }
                then {
                then {
+1 −0
Original line number Original line Diff line number Diff line
@@ -30,6 +30,7 @@ Package MEC_MEC013_SRV_UELOCLOOK {


        Reference
        Reference
            "ETSI GS MEC 013 3.1.1, clause 5.3.2",
            "ETSI GS MEC 013 3.1.1, clause 5.3.2",
            "ETSI GS MEC 013 3.1.1, clause 6.3.4",
            "ETSI GS MEC 013 3.1.1, clause 7.5.3.1"
            "ETSI GS MEC 013 3.1.1, clause 7.5.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1
+69 −69
Original line number Original line Diff line number Diff line
@@ -18,9 +18,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with the list of configured bandwidth allocations when queried by a MEC Application - none"
            "Check that the IUT responds with the list of configured bandwidth allocations when queried by a MEC Application - none"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -58,9 +58,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - app_instance_id"
            "Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - app_instance_id"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -103,9 +103,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - app_name"
            "Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - app_name"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -150,9 +150,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - session_id"
            "Check that the IUT responds with a configured bandwidth allocation when queried by a MEC Application - session_id"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -198,9 +198,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - app_instance_id"
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - app_instance_id"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -239,9 +239,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - app_instance_id"
            "Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - app_instance_id"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -281,9 +281,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - app_name"
            "Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - app_name"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -322,9 +322,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - session_id"
            "Check that the IUT responds with an error when a request with an unknown resource URI is sent by a MEC Application - session_id"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -364,9 +364,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT acknowledges a creation of a bandwidthAllocation resource"
            "Check that the IUT acknowledges a creation of a bandwidthAllocation resource"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.2",
            "ETSI GS MEC 015 2.2.1, clause 6.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.4"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.4"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -418,9 +418,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted"
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.2",
            "ETSI GS MEC 015 2.2.1, clause 6.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.4"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.4"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -465,9 +465,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present"
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present"


        Reference 
        Reference 
            "ETSI GS MEC 015 V2.1.1, clause 6.2.2",
            "ETSI GS MEC 015 2.2.1, clause 6.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.4.3.4"
            "ETSI GS MEC 015 2.2.1, clause 8.4.3.4"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -512,9 +512,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with the configured bandwidth allocation when queried by a MEC Application"
            "Check that the IUT responds with the configured bandwidth allocation when queried by a MEC Application"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -554,9 +554,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application"
            "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application"


        Reference 
        Reference 
            "ETSI GS MEC 015 V2.1.1, clause 6.2.5",
            "ETSI GS MEC 015 2.2.1, clause 6.2.5",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.1"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.1"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -593,9 +593,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT updates the requested bandwidth requirements when commanded by a MEC Application"
            "Check that the IUT updates the requested bandwidth requirements when commanded by a MEC Application"


        Reference 
        Reference 
            "ETSI GS MEC 015 V2.1.1, clause 6.2.4",
            "ETSI GS MEC 015 2.2.1, clause 6.2.4",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.2"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.2"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -642,9 +642,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted"
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.4",
            "ETSI GS MEC 015 2.2.1, clause 6.2.4",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.2"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.2"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -689,9 +689,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present"
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.4",
            "ETSI GS MEC 015 2.2.1, clause 6.2.4",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.2"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.2"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -736,9 +736,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application"
            "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.4",
            "ETSI GS MEC 015 2.2.1, clause 6.2.4",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.2"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.2"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -781,9 +781,9 @@ Package MEC_MEC015_SRV_TM {
            when commanded by a MEC Application"
            when commanded by a MEC Application"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.4",
            "ETSI GS MEC 015 2.2.1, clause 6.2.4",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.3"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.3"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -832,9 +832,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted"
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be omitted"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.4",
            "ETSI GS MEC 015 2.2.1, clause 6.2.4",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.3"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.3"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -879,9 +879,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present"
            "Check that the IUT responds with an error when a request with incorrect parameters is sent by a MEC Application - sessionFilter shall be present"


        Reference
        Reference
            "ETSI GS MEC 015 V2.1.1, clause 6.2.4",
            "ETSI GS MEC 015 2.2.1, clause 6.2.4",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.3"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.3"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -926,9 +926,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application"
            "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application"


        Reference 
        Reference 
            "ETSI GS MEC 015 V2.1.1, clause 6.2.4",
            "ETSI GS MEC 015 2.2.1, clause 6.2.4",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.3"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.3"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -970,9 +970,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT unregisters from the Bandwidth Management Service when commanded by a MEC Application"
            "Check that the IUT unregisters from the Bandwidth Management Service when commanded by a MEC Application"


        Reference 
        Reference 
            "ETSI GS MEC 015 V2.1.1, clause 6.2.3",
            "ETSI GS MEC 015 2.2.1, clause 6.2.3",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.5"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.5"


        Config Id Config_MEC_1
        Config Id Config_MEC_1


@@ -1009,9 +1009,9 @@ Package MEC_MEC015_SRV_TM {
            "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application"
            "Check that the IUT responds with an error when a request for an unknown URI is sent by a MEC Application"


        Reference 
        Reference 
            "ETSI GS MEC 015 V2.1.1, clause 6.2.3",
            "ETSI GS MEC 015 2.2.1, clause 6.2.3",
            "ETSI GS MEC 015 V2.1.1, clause 7.2.2",
            "ETSI GS MEC 015 2.2.1, clause 7.2.2",
            "ETSI GS MEC 015 V2.1.1, clause 8.3.3.5"
            "ETSI GS MEC 015 2.2.1, clause 8.3.3.5"




        Config Id Config_MEC_1
        Config Id Config_MEC_1
+8 −101
Original line number Original line Diff line number Diff line
@@ -840,8 +840,10 @@ Package MEC_MEC040_SRV_FED {
            ensure that {
            ensure that {
                when {
                when {
                    the IUT entity receives a vGET containing
                    the IUT entity receives a vGET containing
                        uri indicating value "fed_enablement/v10/fed_resources/system_info"
                        uri indicating value "fed_enablement/v10/fed_resources/system_info",
                    ;
                        query_parameters containing
                            system indicating value any_value // Wrong query parameter: system instead of systemId
                    ;;
                    from the MEC_FED entity
                    from the MEC_FED entity
                }
                }
                then {
                then {
@@ -911,7 +913,7 @@ Package MEC_MEC040_SRV_FED {




    Test Purpose {
    Test Purpose {
        TP Id "TP_MEC_MEC040_SRV_MEF_002_BR_01"
        TP Id "TP_MEC_MEC040_SRV_MEF_002_BR"


        Test objective
        Test objective
            "Check that the IUT responds with an error on creating an existing systemInfo"
            "Check that the IUT responds with an error on creating an existing systemInfo"
@@ -939,7 +941,7 @@ Package MEC_MEC040_SRV_FED {
                        uri indicating value "fed_enablement/v1/fed_resources/system_info",
                        uri indicating value "fed_enablement/v1/fed_resources/system_info",
                        body containing
                        body containing
                            systemInfo containing
                            systemInfo containing
                                systemId indicating value SYSTEM_ID_1, // Shall be absent in POST request
                                systemId indicating value SYSTEM_ID_2, // Shall be absent in POST request
                                systemName indicating value SYSTEM_NAME_2,
                                systemName indicating value SYSTEM_NAME_2,
                                systemProvider indicating value SYSTEM_PROV_2
                                systemProvider indicating value SYSTEM_PROV_2
                            ;
                            ;
@@ -958,54 +960,6 @@ Package MEC_MEC040_SRV_FED {
    } // End of TP_MEC_MEC040_SRV_MEF_002_BR_01
    } // End of TP_MEC_MEC040_SRV_MEF_002_BR_01




    Test Purpose {
        TP Id "TP_MEC_MEC040_SRV_MEF_002_BR_02"

        Test objective
            "Check that the IUT responds with an error on providing inconsistent data"

        Reference 
            "ETSI GS MEC 040 V3.1.1, clause 7.3.3.4, clause 5.2.2.1.1"

        Config Id Config_MEC_7

        PICS Selection PIC_MEC_PLAT and PIC_SERVICES

        Initial conditions  with {
           the IUT entity being_in idle_state and
           the IUT entity is_registered to the MEC_FED entity and
           the MEC_FED entity having a systemInfoList containing
              systemInfo2 indicating value SYSTEM_ID_2
           ;
        }

        // MEC 040 Clause 6.2.2   Type: SystemInfo
        Expected behaviour
            ensure that {
                when {
                    the IUT entity receives a vPOST containing
                        uri indicating value "fed_enablement/v1/fed_resources/system_info",
                        body containing
                            systemInfo containing
                                systemId indicating value SYSTEM_ID_1, // Shall be omit in the request
                                systemName indicating value SYSTEM_NAME_1,
                                systemProvider indicating value SYSTEM_PROV_1
                            ;
                        ;
                    ;
                    from the MEC_FED entity
                }
                then {
                    // MEC 040 Clause 7.3.3.4
                    the IUT entity sends a HTTP_RESPONSE containing
                        status_code set to "400 Bad Request"
                    ;
                    to the MEC_FED entity
                }
            }
    } // End of TP_MEC_MEC040_SRV_MEF_002_BR_02


    Test Purpose {
    Test Purpose {
        TP Id "TP_MEC_MEC040_SRV_MEF_003_OK"
        TP Id "TP_MEC_MEC040_SRV_MEF_003_OK"


@@ -1358,54 +1312,7 @@ Package MEC_MEC040_SRV_FED {




    Test Purpose {
    Test Purpose {
        TP Id "TP_MEC_MEC040_SRV_MEF_004_BR_01"
        TP Id "TP_MEC_MEC040_SRV_MEF_004_BR"

        Test objective
            "Check that the IUT responds with an error when requested to update with an inconsistant URI"

        Reference 
            "ETSI GS MEC 040 V3.1.1, clause clause 7.4.3.3, clause 5.2.2.1.2"

        Config Id Config_MEC_7

        PICS Selection PIC_MEC_PLAT and PIC_SERVICES

        Initial conditions  with {
           the IUT entity being_in idle_state and
           the IUT entity is_registered to the MEC_FED entity and
           the MEC_FED entity having a systemInfoList containing
              systemInfo1 indicating value SYSTEM_ID_1
           ;
        }

        // MEC 040 Clause 6.2.2   Type: SystemInfo
        Expected behaviour
            ensure that {
                when {
                    the IUT entity receives a vPATCH containing
                        uri indicating value "fed_enablement/v10/fed_resources/system_info/{SYSTEM_ID_1}" // Wrong version
                        body containing
                            SystemInfoUpdate containing
                                systemName indicating value omit,
                                endpoint indicating value SYSTEM_NEW_ENDPOINT_1
                            ;
                        ;
                    ;
                    from the MEC_FED entity
                }
                then {
                    // MEC 040 Clause 7.4.3.3
                    the IUT entity sends a HTTP_RESPONSE containing
                        status_code set to "400 Bad Request"
                    ;
                    to the MEC_FED entity
                }
            }
    } // End of TP_MEC_MEC040_SRV_MEF_004_BR_01


    Test Purpose {
        TP Id "TP_MEC_MEC040_SRV_MEF_004_BR_02"


        Test objective
        Test objective
            "Check that the IUT responds with an error when requested to update with no data provided"
            "Check that the IUT responds with an error when requested to update with no data provided"
@@ -1432,7 +1339,7 @@ Package MEC_MEC040_SRV_FED {
                    the IUT entity receives a vPATCH containing
                    the IUT entity receives a vPATCH containing
                        uri indicating value "fed_enablement/v10/fed_resources/system_info/{SYSTEM_ID_1}"
                        uri indicating value "fed_enablement/v10/fed_resources/system_info/{SYSTEM_ID_1}"
                        body containing
                        body containing
                            SystemInfoUpdate containing
                            SystemInfoUpdate containing // At least one attribute shall exist
                                systemName indicating value omit,
                                systemName indicating value omit,
                                endpoint indicating value omit
                                endpoint indicating value omit
                            ;
                            ;