Commit cf0a84f5 authored by Yann Garcia's avatar Yann Garcia
Browse files

Add missing TPs for MEC046

parent 60b714c9
Loading
Loading
Loading
Loading
+81 −0
Original line number Diff line number Diff line
@@ -650,4 +650,85 @@ Package MEC_MEC046_SRV_SENSLOOKUP {
    }


    Test Purpose {
        TP Id "TP_MEC_MEC046_SRV_SENSLOOKUP_007_OK"

        Test objective
            "Check that the IUT acknowledges the change of the characteristics of one or more sensors when queried by a MEC Application"

        Reference
            "ETSI GS MEC 045 3.1.1 Clause 5.3.8",
            "ETSI GS MEC 013 3.1.1 Clause 6.5.4",
            "ETSI GS MEC 013 3.1.1 Clause 7.12.3.2"

        Config Id Config_MEC_9

        PICS Selection PIC_MEC_PLAT and PIC_SERVICES

        Initial conditions  with {
            the IUT entity being_in idle_state and
            the IUT entity having several discoveredSensors
        }

        Expected behaviour
            ensure that {
                when {
                    the IUT entity receives a vPUT containing
                        uri indicating value "sens/v1/sensor_management",
                        body containing
                            sensorCharacteristicInfoList containing
                                sensorCharacteristicInfo indicating value SENSOR_IDENTIFIER;;;
                    from the MEC_APP entity
                }
                then {
                    the IUT entity sends a HTTP_RESPONSE containing
                        status_code set to "200 OK"
                        body containing
                            SensorCharacteristic  indicating value SENSOR_IDENTIFIER;;
                    to the MEC_APP entity
                }
            }
    }


    Test Purpose {
        TP Id "TP_MEC_MEC046_SRV_SENSLOOKUP_007_NF"

        Test objective
            "Check that the IUT responds with an error when the a sensor does not have a characteristic"

        Reference
            "ETSI GS MEC 045 3.1.1 Clause 5.3.8",
            "ETSI GS MEC 013 3.1.1 Clause 6.5.4",
            "ETSI GS MEC 013 3.1.1 Clause 7.12.3.2"

        Config Id Config_MEC_9

        PICS Selection PIC_MEC_PLAT and PIC_SERVICES

        Initial conditions  with {
            the IUT entity being_in idle_state and
            the IUT entity having several discoveredSensors
        }

        Expected behaviour
            ensure that {
                when {
                    the IUT entity receives a vPUT containing
                        uri indicating value "sens/v1/sensor_management",
                        body containing
                            sensorCharacteristicInfoList containing
                                sensorCharacteristicInfo containing
                                  characteristicName indicating value UNKNOWN_CHARACTERISTIC_NAME;;;;
                    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
                }
            }
    }


}