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

Finalyze MEC045 TPs

parent 5f2ad677
Loading
Loading
Loading
Loading
+268 −57
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
    import all from MEC_Common;

    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK"
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK_01"

        Test objective
            "Check that the IUT acknowledges the creation of QoS event subscription request when commanded by a MEC Application"
@@ -37,16 +37,16 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    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
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    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"
                        status_code set to "201 Created",
                        headers containing
                            Location set to "/qms/v1/subscriptions/{SUBSCRIPTION_ID}";,
                        body containing
                            qoSMeasurementSubscription containing
                                _links containing 
@@ -60,21 +60,99 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    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
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;; // 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",
                                subscriptionState set to omit,
                                flow indicating value any_value,
                                metricType containing
                                    elem0 indicating value "LATENCY",
                                    elem1 indicating value "THROUGHPUT";,
                                qosEvent indicating value any_value,
                                metricType indicating value "THROUGHPUT",
                                qosEvent indicating value any_value, // See ETSI GS MEC 045 V3.1.1 (2024-03) Table 6.6.4-1: Enumeration QoSEvent
                                _links indicating value LINKS;;;
                    to the MEC_APP entity
                }
            }
    }


    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_OK_02"

        Test objective
            "Check that the IUT acknowledges the creation of QoS event subscription request when commanded by a MEC Application - With threshold"

        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

        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 indicating value "THROUGHPUT",
                                    upperThreshold indicating value VALUE_1,
                                    lowerThreshold indicating value VALUE_2;,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    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 "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 indicating value "THROUGHPUT",
                                    upperThreshold indicating value VALUE_1,
                                    lowerThreshold indicating value VALUE_2;,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;; // 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",
                                subscriptionState set to omit,
                                flow indicating value any_value,
                                metricType indicating value "THROUGHPUT",
                                qosEvent indicating value any_value, // See ETSI GS MEC 045 V3.1.1 (2024-03) Table 6.6.4-1: Enumeration QoSEvent
                                _links indicating value LINKS;;;
                    to the MEC_APP entity
                }
@@ -85,6 +163,54 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_BR_01"

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

        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 "QoSSubscription", // Invalid SubscritionType
                                users containing
                                    elem0 indicating value ACR_SOME_IP;,
                                flowInfo containing
                                    flowFilter containing
                                        sourceIp indicating value ACR_SOME_IP;;,
                                reportTrigger containing
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    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_02"

        Test objective
            "Check that the IUT responds with an error when a request with incorrect parameters is sent 
            by a MEC Application - Neither callbackReference nor websockNotifConfig provided"
@@ -116,10 +242,9 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    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
                                    metricType 
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    from the MEC_APP entity
                }
                then {
@@ -133,7 +258,7 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {


    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_BR_02"
        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 
@@ -168,10 +293,8 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    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
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    from the MEC_APP entity
                }
                then {
@@ -185,7 +308,7 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {


    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_BR_03"
        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 
@@ -219,10 +342,8 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    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
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    from the MEC_APP entity
                }
                then {
@@ -236,7 +357,7 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {


    Test Purpose {
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_BR_04"
        TP Id "TP_MEC_MEC045_SRV_QOS_EVENT_SUB_NOT_001_BR_05"

        Test objective
            "Check that the IUT responds with an error when a request with incorrect parameters is sent 
@@ -269,10 +390,108 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    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
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    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_06"

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

        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 empty, // Invalid flowFilter
                                reportTrigger containing
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    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_07"

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

        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 empty, // Invalid flowFilter
                                reportTrigger containing
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD,
                                monitoringArea containing
                                    areaInfo set to omit, // Shall be present if accessPointId and zoneId are present
                                    accessPointId indicating value any_value,
                                    zoneId indicating value any_value;;;;
                    from the MEC_APP entity
                }
                then {
@@ -322,11 +541,9 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                        sourceIp indicating value ACR_SOME_IP,
                                        sourcePort indicating value any_value;;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT",
                                    elem2 indicating value "ERROR_RATE";;,
                                measuringPeriod indicating value 1;; // One Hz
                                    metricType indicating value "THROUGHPUT",
                                    upperThreshodld indicating value VALUE_1;,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;
                    from the MEC_APP entity
                }
                then {
@@ -347,11 +564,9 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                        sourceIp indicating value ACR_SOME_IP,
                                        sourcePort indicating value any_value;;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT",
                                    elem2 indicating value "ERROR_RATE";;,
                                measuringPeriod indicating value 1;;; // One Hz
                                    metricType indicating value "THROUGHPUT",
                                    upperThreshodld indicating value VALUE_1;,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    to the MEC_APP entity
                }
            }
@@ -395,11 +610,9 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                        sourceIp indicating value ACR_SOME_IP,
                                        sourcePort indicating value any_value;;;,
                                reportTrigger containing
                                    metricType containing
                                        elem0 indicating value "LATENCY",
                                        elem1 indicating value "THROUGHPUT",
                                    elem2 indicating value "ERROR_RATE";;,
                                measuringPeriod indicating value 1;; // One Hz
                                    metricType indicating value "THROUGHPUT",
                                    upperThreshodld indicating value VALUE_1;,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;
                    from the MEC_APP entity
                }
                then {
@@ -522,16 +735,16 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    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
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;
                    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"
                        status_code set to "201 Created",
                        headers containing
                            Location set to "/qms/v1/subscriptions/{SUBSCRIPTION_ID}";,
                        body containing
                            qoSMeasurementSubscription containing
                                _links containing 
@@ -545,10 +758,8 @@ Package MEC_MEC045_SRV_QOS_EVENT_SUB_NOT {
                                    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
                                    metricType indicating value "THROUGHPUT";,
                                measuringPeriod indicating value MEASURINGING_PERIOD;;;;
                    to the MEC_APP entity
                    and the IUT entity sends a vPOST containing
                        Uri set to CALLBACK_URL 
+462 −6

File changed.

Preview size limit exceeded, changes collapsed.

+7 −0
Original line number Diff line number Diff line
@@ -93,11 +93,13 @@ Package MEC_Common {
            - grant
            - havingV2xMsgDistributionServerMqtt
            - doNotSendNotificationAfterTimerExpiry
            - removeTheSubscriptionWhenNumberOfReportsIsReached
            ;
    }

    Data {
        type STRING;
        type UINT32;
        type JSON;
        type string with s of type STRING;
        type IMSI;
@@ -188,6 +190,11 @@ Package MEC_Common {
        STRING SYSTEM_ID_3;
        STRING SYSTEM_NAME_3;
        STRING SYSTEM_PROVIDER_3;
        UINT32 REPORTING_INTERVAL;
        UINT32 MEASURINGING_PERIOD;
        UINT32 MEASURINGING_PERIOD_GT_REPORTING_INTERVAL; // REPORTING_INTERVAL * 2
        UINT32 MEASURINGING_PERIOD_LT_REPORTING_INTERVAL; // REPORTING_INTERVAL / 3
        UINT32 NUM_OF_REPORT;

    }