Commit adb5e3c2 authored by Yann Garcia's avatar Yann Garcia
Browse files
parent 13e5204f
Loading
Loading
Loading
Loading
+8 −101
Original line number Diff line number Diff line
@@ -839,8 +839,10 @@ Package MEC_MEC040_SRV_FED {
            ensure that {
                when {
                    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
                }
                then {
@@ -910,7 +912,7 @@ Package MEC_MEC040_SRV_FED {


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

        Test objective
            "Check that the IUT responds with an error on creating an existing systemInfo"
@@ -938,7 +940,7 @@ Package MEC_MEC040_SRV_FED {
                        uri indicating value "fed_enablement/v1/fed_resources/system_info",
                        body 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,
                                systemProvider indicating value SYSTEM_PROV_2
                            ;
@@ -957,54 +959,6 @@ Package MEC_MEC040_SRV_FED {
    } // 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 {
        TP Id "TP_MEC_MEC040_SRV_MEF_003_OK"

@@ -1357,54 +1311,7 @@ Package MEC_MEC040_SRV_FED {


    Test Purpose {
        TP Id "TP_MEC_MEC040_SRV_MEF_004_BR_01"

        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"
        TP Id "TP_MEC_MEC040_SRV_MEF_004_BR"

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