Commit 5f2ad677 authored by Yann Garcia's avatar Yann Garcia
Browse files

Review MEC045 TPs

parent 910f0227
Loading
Loading
Loading
Loading
+198 −10
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
        Reference
            "ETSI GS MEC 045 3.1.1 Clause 5.2.2",
            "ETSI GS MEC 013 3.1.1 Clause 6.3.3",
            "ETSI GS MEC 013 3.1.1 Clause 6.4.3",
            "ETSI GS MEC 013 3.1.1 Clause 7.3.3.4"

        Config Id Config_MEC_8
@@ -34,11 +35,11 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;;,
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT";;,
                                        elem1 indicating value "THROUGHPUT";;;,
                                measuringPeriod indicating value 1;; // One Hz
                    from the MEC_APP entity
                }
@@ -48,7 +49,7 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                        status_code set to "201 Created"
                        body containing
                            qoSMeasurementSubscription containing
                                links containing 
                                _links containing 
                                    self containing
                                        href set to HREF_VALUE;,
                                subscriptionType indicating value "QoSEventSubscription",
@@ -57,12 +58,24 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;;,
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT";;,
                                measuringPeriod indicating value 1;;; // One Hz
                                measuringPeriod indicating value 1;;;; // One Hz
                    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 "QoSEventNotification",
                                flow indicating value any_value,
                                metricType containing
                                    elem0 indicating value "LATENCY",
                                    elem1 indicating value "THROUGHPUT";,
                                qosEvent indicating value any_value,
                                _links indicating value LINKS;;;
                    to the MEC_APP entity
                }
            }
@@ -101,12 +114,12 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;;,
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT";;,
                                measuringPeriod indicating value 1;; // One Hz
                                measuringPeriod indicating value 1;;; // One Hz
                    from the MEC_APP entity
                }
                then {
@@ -153,11 +166,112 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;;,
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT";;,
                                        elem1 indicating value "THROUGHPUT";;;,
                                measuringPeriod indicating value 1;; // One Hz
                    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 "400 Bad Request";
                    to the MEC_APP entity
                }
            }
    }


    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_BR_03"

        Test objective
            "Check that the IUT responds with an error when a request with incorrect parameters is sent 
            by a MEC Application - users not present (Note 2)"

        Reference
            "ETSI GS MEC 045 3.1.1 Clause 5.2.2",
            "ETSI GS MEC 013 3.1.1 Clause 6.3.3",
            "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 "QoSEventSubscription",
                                callbackReference indicating value CALLBACK_URL,
                                websockNotifConfig indicating value WEBSOCKET_CONFIG,
                                users set to omit,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT";;;,
                                measuringPeriod indicating value 1;; // One Hz
                    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 "400 Bad Request";
                    to the MEC_APP entity
                }
            }
    }


    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_BR_04"

        Test objective
            "Check that the IUT responds with an error when a request with incorrect parameters is sent 
            by a MEC Application - flowInfo not present (Note 2)"

        Reference
            "ETSI GS MEC 045 3.1.1 Clause 5.2.2",
            "ETSI GS MEC 013 3.1.1 Clause 6.3.3",
            "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 "QoSEventSubscription",
                                callbackReference indicating value CALLBACK_URL,
                                websockNotifConfig indicating value WEBSOCKET_CONFIG,
                                users containing
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo set to omit,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT";;;,
                                measuringPeriod indicating value 1;; // One Hz
                    from the MEC_APP entity
                }
@@ -221,7 +335,7 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                        status_code set to "200 OK"
                        body containing
                            qoSMeasurementSubscription containing
                                links containing 
                                _links containing 
                                    self containing
                                        href set to HREF_VALUE;,
                                subscriptionType indicating value "QoSEventSubscription",
@@ -374,4 +488,78 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
    }


    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_004_OK"

        Test objective
            "Check that the IUT provides a test notification when requested by a MEC Application"

        Reference
            "ETSI GS MEC 045 3.1.1 Clause 5.2.2",
            "ETSI GS MEC 013 3.1.1 Clause 6.4.1",
            "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 "QoSEventSubscription",
                                callbackReference indicating value CALLBACK_URL,
                                users containing
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT";;;,
                                measuringPeriod indicating value 1;; // One Hz
                    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"
                        body containing
                            qoSMeasurementSubscription containing
                                _links containing 
                                    self containing
                                        href set to HREF_VALUE;,
                                subscriptionType indicating value "QoSEventSubscription",
                                callbackReference indicating value CALLBACK_URL,
                                users containing
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT";;,
                                measuringPeriod indicating value 1;;;; // One Hz
                    to the MEC_APP entity
                    and the IUT entity sends a vPOST containing
                        Uri set to CALLBACK_URL 
                        body containing
                            testNotification containing
                                notificationType indicating value "TestNotification",
                                _links indicating value LINKS;;;
                    to the MEC_APP entity
                }
            }
    }


} // End of Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT
 No newline at end of file
+194 −16

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2

File changed.

Contains only whitespace changes.