Commit 7e346e79 authored by Yann Garcia's avatar Yann Garcia Committed by Miguel Angel Reina Ortega
Browse files

Implement QoS Measurements Sub/Not TPs

parent 72f6c26a
Loading
Loading
Loading
Loading
+0 −82
Original line number Original line Diff line number Diff line
@@ -174,86 +174,6 @@ Package MEC_MEC045_SRV_QOS_MEAS_SUB_NOT {
    Test Purpose {
    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_03"
        TP Id "TP_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_03"


        Test objective
            "Check that the IUT acknowledges the creation of QoS measurement subscription request when commanded by a MEC Application - with reportingInterval and measuringPeriod"

        Reference
            "ETSI GS MEC 045 3.1.1 Clause 5.2.2",
            "ETSI GS MEC 013 3.1.1 Clause 6.3.2",
            "ETSI GS MEC 013 3.1.1 Clause 6.4.2",
            "ETSI GS MEC 013 3.1.1 Clause 7.3.3.4"

        Config Id Config_MEC_8

        PICS Selection PIC_MEC_PLAT and PIC_SERVICES

        Initial conditions  with {
            the IUT entity being_in idle_state
        }

        Expected behaviour
            ensure that {
                when {
                    the IUT entity receives a vPOST containing
                        uri indicating value "qms/v1/subscriptions"
                        body containing
                            qoSMeasurementSubscription containing
                                subscriptionType indicating value "QoSMeasureSubscription",
                                callbackReference indicating value CALLBACK_URL,
                                users containing
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportingInterval indicating value REPORTING_INTERVAL,
                                measuringReport indicating value MEASURINGING_PERIOD_LT_REPORTING_INTERVAL,
                                metricType containing
                                    elem0 indicating value "LATENCY",
                                    elem1 indicating value "THROUGHPUT";;;;
                    from the MEC_APP entity
                }
                then {
                    // MEC 045, clause 7.3.3.4
                    the IUT entity sends a HTTP_RESPONSE containing
                        status_code set to "201 Created",
                        headers containing
                            Location set to "/qms/v1/subscriptions/{SUBSCRIPTION_ID}";,
                        body containing
                            qoSMeasurementSubscription containing
                                _links containing 
                                    self containing
                                        href set to HREF_VALUE;,
                                subscriptionType indicating value "QoSMeasureSubscription",
                                callbackReference indicating value CALLBACK_URL,
                                users containing
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportingInterval indicating value REPORTING_INTERVAL,
                                measuringReport indicating value MEASURINGING_PERIOD_LT_REPORTING_INTERVAL,
                                metricType containing
                                    elem0 indicating value "LATENCY",
                                    elem1 indicating value "THROUGHPUT";;;;;
                    to the MEC_APP entity
                    and the IUT entity sends a vPOST containing
                        Uri set to CALLBACK_URL 
                        body containing
                            qoSMeasurementNotification containing
                                notificationType indicating value "QoSMeasureNotification",
                                qoSMeasureResult containing
                                    latency indicating value any_value,
                                    throughput indicating value any_value;,
                                _links indicating value LINKS;;;
                    to the MEC_APP entity
                }
            }
    }


    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_MEAS_SUB_NOT_001_OK_04"

        Test objective
        Test objective
            "Check that the IUT acknowledges the creation of QoS measurement subscription request when commanded by a MEC Application - with numberOfReports"
            "Check that the IUT acknowledges the creation of QoS measurement subscription request when commanded by a MEC Application - with numberOfReports"


@@ -562,7 +482,6 @@ Package MEC_MEC045_SRV_QOS_MEAS_SUB_NOT {
                            qoSMeasurementSubscription containing
                            qoSMeasurementSubscription containing
                                subscriptionType indicating value "QoSMeasureSubscription",
                                subscriptionType indicating value "QoSMeasureSubscription",
                                callbackReference indicating value CALLBACK_URL,
                                callbackReference indicating value CALLBACK_URL,
                                websockNotifConfig indicating value WEBSOCKET_CONFIG,
                                users containing
                                users containing
                                    elem0 indicating value ACR_SOME_IP;,
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo set to omit,
                                flowInfo set to omit,
@@ -611,7 +530,6 @@ Package MEC_MEC045_SRV_QOS_MEAS_SUB_NOT {
                            qoSMeasurementSubscription containing
                            qoSMeasurementSubscription containing
                                subscriptionType indicating value "QoSMeasureSubscription",
                                subscriptionType indicating value "QoSMeasureSubscription",
                                callbackReference indicating value CALLBACK_URL,
                                callbackReference indicating value CALLBACK_URL,
                                websockNotifConfig indicating value WEBSOCKET_CONFIG,
                                users containing
                                users containing
                                    elem0 indicating value ACR_SOME_IP;,
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo set to empty, // Invalid flowFilter
                                flowInfo set to empty, // Invalid flowFilter