Commit d14cadf7 authored by YannGarcia's avatar YannGarcia
Browse files

MEC013 TPs: Add UETESTNOT for notification tests

parent 6079a327
Loading
Loading
Loading
Loading
+155 −0
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
                }
            }
    }


}
+0 −214
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_UETRACKSUB {

   import all from MEC_Common;


   /*
    * UE Tracking Subscribe (UETRACKSUB)
    */


   Test Purpose {
      TP Id "TP_MEC_MEC013_SRV_UETRACKSUB_001_OK"

      Test objective
      "Check that the IUT acknowledges the UE location change subscription request
      when commanded by a MEC Application and notifies it when the UE changes location"
   
      Reference "ETSI GS MEC 013 3.1.1, clause 7.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.8
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vPOST containing
                  uri indicating value "location/v3/subscriptions/periodic"
                  body containing
                     periodicNotificationSubscription containing
                        clientCorrelator indicating value CLIENT_ID,
                        callbackReference indicating value CALLBACK_URL,
                        address indicating value IP_ADDRESS
                     ;
                  ;
               ;
               from the MEC_APP entity
            }
            then {
               // MEC 013, clause 7.3.8.2
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "201 Created"
                  body containing
                     periodicNotificationSubscription containing
                        clientCorrelator indicating value CLIENT_ID,
                        callbackReference indicating value CALLBACK_URL,
                        address indicating value IP_ADDRESS
                     ;
                  ;
               ;
               to the MEC_APP entity
               and
               // MEC 013, clause 7.3.8.3
               the IUT entity sends a vPOST containing
                  uri indicating value CALLBACK_URL
                  body containing
                     subscriptionNotification containing
                        terminalLocation containing
                           address set to IP_ADDRESS
                        ;
                     ;
                  ;
               ;
               to the MEC_APP entity
            }
         }
   }


   Test Purpose {
      TP Id "TP_MEC_MEC013_SRV_UETRACKSUB_001_BR"

      Test objective
         "Check that the IUT responds with an error when
         a request with incorrect parameters is sent by a MEC Application"
   
      Reference "ETSI GS MEC 013 3.1.1, clause 7.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.8
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vPOST containing
                  uri indicating value "location/v3/subscriptions/periodic"
                  body containing
                     periodicNotificationSubscription containing
                        // Wrong name should trigger an error response.
                        client indicating value CLIENT_ID,
                        callbackReference indicating value CALLBACK_URL,
                        address indicating value IP_ADDRESS
                     ;
                  ;
               ;
               from the MEC_APP entity
            }
            then {
               // MEC 013, clause 7.3.8.2
               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_MEC013_SRV_UETRACKSUB_002_OK"

      Test objective
      "Check that the IUT acknowledges the cancellation of UE tracking notifications
      when commanded by a MEC Application"
   
      Reference "ETSI GS MEC 013 3.1.1, clause 7.3.6"
   
      Config Id Config_MEC_1

      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state and
         the IUT entity having a subscriptions containing
            subscriptionId indicating value SUBSCRIPTION_ID
         ;
      }

      // MEC 013, clause 5.3.6
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vDELETE containing
                  uri indicating value "location/v3/subscriptions/periodic/{SUBSCRIPTION_ID}"
               ;
               from the MEC_APP entity
            }
            then {
               // MEC 013, clause 7.3.6.4
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "204 No Content"
               ;
               to the MEC_APP entity
            }
         }
   }


   Test Purpose {
      TP Id "TP_MEC_MEC013_SRV_UETRACKSUB_002_NF"

      Test objective
         "Check that the IUT responds with an error when
         a request for an URI that cannot be mapped to a valid resource URI
         is sent by a MEC Application"
   
      Reference "ETSI GS MEC 013 3.1.1, clause 7.3.6"
   
      Config Id Config_MEC_1

      PICS Selection PIC_MEC_PLAT and PIC_SERVICES

      Initial conditions  with {
         the IUT entity being_in idle_state and
         the IUT entity not having a subscriptions containing
            subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID
         ;
      }

      // MEC 013, clause 5.3.6
      Expected behaviour
         ensure that {
            when {
               the IUT entity receives a vDELETE containing
                  uri indicating value "location/v3/subscriptions/periodic/{NON_EXISTENT_SUBSCRIPTION_ID}"
               ;
               from the MEC_APP entity
            }
            then {
               // MEC 013, clause 7.3.6.4
               the IUT entity sends a HTTP_RESPONSE containing
                  status_code set to "404 Not Found"
               ;
               to the MEC_APP entity
            }
         }
   }
}
+69 −2
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"