Commit 47752b4d authored by piscione's avatar piscione
Browse files

Updated MEC010p2 TCs to v3.1.1

parent 0f15c1be
Loading
Loading
Loading
Loading
+0 −631

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −62
Changes for Test Purposes/MEC010p2/MEX/LCM/AppInstanceMgmt_notifications.tplan2: 0 added lines, 62 removed lines.
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018-2023.
Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters
*/
Package MEC_MEC010p2_LCM_NOTIF {
   
   import all from MEC_Common;

   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEX_LCM_017_OK"
      
      Test objective 
         "Check that MEC API provider sends a notification to the subscriber when an application LCM change event occurs"
      
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.5.3.1",
              "ETSI GS MEC 010-2 2.2.1, table 6.2.2.11.2-1", // AppInstNotification
              "ETSI GS MEC 010-2 2.2.1, table 6.2.2.16.2-1",  // AppLcmOpOccNotification 
              "ETSI GS MEC 010-2 2.2.1, table 6.2.2.27.2-1",  // AppInstanceIdentifierCreationNotification 
              "ETSI GS MEC 010-2 2.2.1, table 6.2.2.30.2-1"  // AppInstanceIdentifierDeletionNotification 
              

      Config Id Config_MEC_6
      PICS Selection PIC_APP_LCM_NOTIFICATIONS 

      Initial conditions  with {
         the IUT entity having a App_Instance_Subscription containing
            subscriptionType indicating value SUBSCRIPTION_TYPE,
            callbackUri indicating value CALLBACK_URI,
            _links containing
            self indicating value "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}"
            ;
         ;
      }

      Expected behaviour
      ensure that {
         when {
         	the IUT entity generates a application_lcm_change_event containing 
               notificationId set to NOTIFICATION_ID;
            }
         then {
            the IUT entity sends a vPOST containing
               uri indicating value CALLBACK_URI,
               body containing
                  Notification containing 
                     id set to NOTIFICATION_ID,
                     notificationType set to NOTIFICATION_TYPE,
                     subscriptionId set to SUBSCRIPTION_ID,
                     timeStamp set to any_value,
                     appInstanceId set to APP_INSTANCE_ID,
                     appDId set to any_value,
                     _links containing 
                        	subscription set to "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}"
                        	;
                  ;
               ;
            ; to the MEC_SUB entity
         }
      }
   }

}