Commit d14cadf7 authored by YannGarcia's avatar YannGarcia
Browse files

MEC013 TPs: Add UETESTNOT for notification tests

parent 6079a327
Loading
Loading
Loading
Loading
+155
Changes for Test Purposes/MEC013/SRV/UETESTNOT/PlatUeTestSubscription.tplan2: 155 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018-2023.

This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
kind, expressed or implied.

ETSI shall never be liable for any claim, damages, or other liability arising
from its use or inability of use.This permission does not apply to any documentation
associated with this file for which ETSI keeps all rights reserved. The present
copyright notice shall be included in all copies of whole or part of this
file and shall not imply any sub-license right.
*/

Package MEC_MEC013_SRV_UELOCSUB {

    import all from MEC_Common;

    /*
     * UE Information Subscription (UETESTNOT)
     */

    Test Purpose {
        TP Id "TP_MEC_MEC013_SRV_UETESTNOT_001_OK"

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

        Reference 
            "ETSI GS MEC 013 3.1.1 Clause 5.3.4",
            "ETSI GS MEC 013 3.1.1 Clause 6.3.4",
            "ETSI GS MEC 013 3.1.1 Clause 6.4.3",
            "ETSI GS MEC 013 3.1.1 Clause 7.5.3.4"

        Config Id Config_MEC_1

        PICS Selection PIC_MEC_PLAT and PIC_SERVICES

        Initial conditions  with {
            the IUT entity being_in idle_state
        }

        // MEC 013, clause 5.3.4
        Expected behaviour
            ensure that {
                when {
                    the IUT entity receives a vPOST containing
                        uri indicating value "location/v3/subscriptions/users" 
                        body containing
                            userLocationEventSubscription containing
                                subscriptionType indicating value "UserLocationEventSubscription",
                                clientCorrelator indicating value CLIENT_ID, 
                                callbackReference indicating value CALLBACK_URL,
                                requestTestNotification indicating value true,
                                address indicating value ACR_SOME_IP;;;
                    from the MEC_APP entity
                }
                then {
                    // MEC 013, clause 7.5.3.4
                    the IUT entity sends a HTTP_RESPONSE containing
                        status_code set to "201 Created"
                        body containing
                            userLocationEventSubscription containing
                                subscriptionType indicating value "UserLocationEventSubscription",
                                clientCorrelator indicating value CLIENT_ID, 
                                callbackReference indicating value CALLBACK_URL,
                                requestTestNotification indicating value true, // FIXME: To be confirmed
                                _links indicating value LINKS,
                                address indicating value ACR_SOME_IP;;;
                    to the MEC_APP entity
                    // MEC 013, clause 5.3.4
                    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
                }
            }
    }


   Test Purpose {
      TP Id "TP_MEC_MEC013_SRV_UETESTNOT_002_OK"

      Test objective
          "Check that the IUT terminates notifications after time expiration"
   
        Reference
            "ETSI GS MEC 013 3.1.1 Clause 5.3.11",
            "ETSI GS MEC 013 3.1.1 Clause 6.3.8",
            "ETSI GS MEC 013 3.1.1 Clause 6.4.8",
            "ETSI GS MEC 013 3.1.1 Clause 7.16.3.4"

        Config Id Config_MEC_1

        PICS Selection PIC_MEC_PLAT and PIC_SERVICES

        Initial conditions  with {
            the IUT entity being_in idle_state
        }

        // MEC 013, clause 5.3.11
        Expected behaviour
            ensure that {
                when {
                    the IUT entity receives a vPOST containing
                        uri indicating value "location/v3/subscriptions/area" 
                        body containing
                            userAreaSubscription containing
                                subscriptionType indicating value "UserAreaSubscription",
                                clientCorrelator indicating value CLIENT_ID, 
                                callbackReference indicating value CALLBACK_URL,
                                areaDefine indicating value AREA,
                                addressList containing
                                    address indicating value ACR_SOME_IP;,
                                trackingAccuracy indicating value TRACKING_ACCURACY_THRESHOLD,
                                expiryDeadline indicating value EXPIRY_DEADLINE;;;
                    from the MEC_APP entity
                }
                then {
                    // MEC 013, clause 7.16.3.4
                    the IUT entity sends a HTTP_RESPONSE containing
                        status_code set to "201 Created"
                        body containing
                            userAreaSubscription containing
                                subscriptionType indicating value "UserAreaSubscription",
                                clientCorrelator indicating value CLIENT_ID, 
                                callbackReference indicating value CALLBACK_URL,
                                _links indicating value LINKS,
                                areaDefine indicating value AREA,
                                addressList containing
                                    address indicating value ACR_SOME_IP;,
                                trackingAccuracy indicating value TRACKING_ACCURACY_THRESHOLD,
                                expiryDeadline indicating value EXPIRY_DEADLINE;;;
                    to the MEC_APP entity
                    // MEC 013, clause 5.3.4
                    and the IUT entity sends a vPOST containing
                        Uri set to CALLBACK_URL 
                        body containing
                            userAreaNotification containing
                                notificationType indicating value "UserAreaNotification",
                                address indicating value ACR_SOME_IP,
                                userLocationEvent indicating value any_value,
                                _links indicating value LINKS;;;
                    to the MEC_APP entity
                    and the IUT entity not sendsa vPOST after expiry_notification_event
                }
            }
    }


}
−214

File deleted.

+69 −2
Changes for Test Purposes/MEC013/SRV/UEZONESUB/PlatUeZoneSubscription.tplan2: 69 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -89,10 +89,10 @@ Package MEC_MEC013_SRV_UEZONESUB {


    Test Purpose {
        TP Id "TP_MEC_MEC013_SRV_UEZONESUB_001_OK_02"
        TP Id "TP_MEC_MEC013_SRV_UEZONESUB_001_OK_02_01"

        Test objective
            "Check that the IUT acknowledges the creation of UE zone subscription request when commanded by a MEC Application"
            "Check that the IUT acknowledges the creation of UE zone subscription request when commanded by a MEC Application - OperationStatus constraint"

        Reference
            "ETSI GS MEC 013 3.1.1 Clause 5.3.11",
@@ -153,6 +153,73 @@ Package MEC_MEC013_SRV_UEZONESUB {
    }


    Test Purpose {
        TP Id "TP_MEC_MEC013_SRV_UEZONESUB_001_OK_02_02"

        Test objective
            "Check that the IUT acknowledges the creation of UE zone subscription request when commanded by a MEC Application - UserNumEvent constraint"

        Reference
            "ETSI GS MEC 013 3.1.1 Clause 5.3.11",
            "ETSI GS MEC 013 3.1.1 Clause 6.3.7",
            "ETSI GS MEC 013 3.1.1 Clause 6.4.7",
            "ETSI GS MEC 013 3.1.1 Clause 7.11.3.4"

        Config Id Config_MEC_1

        PICS Selection PIC_MEC_PLAT and PIC_SERVICES

        Initial conditions  with {
            the IUT entity being_in idle_state
        }

        // MEC 013, clause 5.3.11
        Expected behaviour
            ensure that {
                when {
                    the IUT entity receives a vPOST containing
                        uri indicating value "location/v3/subscriptions/zones" 
                        body containing
                            zoneStatusSubscription containing
                                subscriptionType indicating value "ZoneStatusSubscription",
                                clientCorrelator indicating value CLIENT_ID, 
                                callbackReference indicating value CALLBACK_URL,
                                zoneId indicating value ZONE_ID,
                                upperNumberOfUser indicating value UPPER_NUM_USER_THRESHOLD,
                                lowerNumberOfUser indicating value LOWER_NUM_USER_THRESHOLD;;;
                    from the MEC_APP entity
                }
                then {
                    // MEC 013, clause 7.11.3.4
                    the IUT entity sends a HTTP_RESPONSE containing
                        status_code set to "201 Created"
                        body containing
                            zoneStatusSubscription containing
                                subscriptionType indicating value "ZoneStatusSubscription",
                                clientCorrelator indicating value CLIENT_ID, 
                                callbackReference indicating value CALLBACK_URL,
                                _links indicating value LINKS,
                                zoneId indicating value ZONE_ID,
                                upperNumberOfUser indicating value UPPER_NUM_USER_THRESHOLD,
                                lowerNumberOfUser indicating value LOWER_NUM_USER_THRESHOLD;;;
                    to the MEC_APP entity
                    // MEC 013, clause 5.3.4
                    and the IUT entity sends a vPOST containing
                        Uri set to CALLBACK_URL 
                        body containing
                            zoneStatusNotification containing
                                notificationType indicating value "ZoneStatusNotification",
                                address indicating value ACR_SOME_IP,
                                userNumEvent indicating value any_value,
                                zoneId indicating value ZONE_ID,
                                accessPointId indicating value any_value,
                                _links indicating value LINKS;;;
                    to the MEC_APP entity
                }
            }
    }


    Test Purpose {
        TP Id "TP_MEC_MEC013_SRV_UEZONESUB_001_BR"