Commit 82da073d authored by Elian Kraja's avatar Elian Kraja
Browse files

LCM Notification change

parent dd453f07
Loading
Loading
Loading
Loading
+19 −47
Original line number Original line Diff line number Diff line
@@ -17,73 +17,45 @@ Package MEC010_2_MEO_MM1_LCM_NOTIF {
   import all from MEC_Common;
   import all from MEC_Common;


   Test Purpose {
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_LCM_NOTIF_001_v1"
      TP Id "TP_MEC_MEO_LCM_014_OK"
      
      
      Test objective 
      Test objective 
         "Check that the MEO sends an AppLcmOpOccNotification to the subscriber when the App Instance is enabled"
         "Check that the MEO sends a notification to the subscriber when an application lcm change event occurs"
      
      
      Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.5.3.1",
      Reference "ETSI GS MEC 010-2 2.0.9, clause 7.5.5.3.1",
              "ETSI GS MEC 010-2 2.0.9, table 6.2.2.18.2-1", // AppLcmOpOccNotification
              "ETSI GS MEC 010-2 2.0.9, table 6.2.2.18.2-1", // AppLcmOpOccNotification
              "ETSI GS MEC 010-2 2.0.9, table 6.2.2.17.2-1",  // AppLcmOpOccSubscriptionLinkList
              "ETSI GS MEC 010-2 2.0.9, table 6.2.2.12.2-1"  // AppInstNotification 
              "ETSI GS MEC 010-2 2.0.9, table 6.2.2.4.2-1"  // AppInstanceInfo
              


      Config Id Config_MEC_3
      Config Id Config_MEC_3
      PICS Selection PIC_APP_LCM_NOTIFICATIONS 
      PICS Selection PIC_APP_LCM_NOTIFICATIONS 


      Initial conditions  with {
      Initial conditions  with {
         the IUT entity having a App_Instance containing
         the IUT entity having a App_Instance_Subscription containing
            appInstanceId set to APP_INSTANCE_ID,
            subscriptionType indicating value SUBSCRIPTION_TYPE,
            appDId set to APP_D_ID,
            callbackUri indicating value CALLBACK_URI,
            appProvider set to APP_PROVIDER,
            attribute _links
            appName set to APP_NAME,
            appSoftVersion set to APP_SOFT_VERSION,
            appDVersion set to APP_D_VEERSION,
            appPkgId set to APP_PKG_ID,
            instantiationState set to NOT_INSTANTIATED,
            _links containing
               self set to any_value
            ;
         ;
         and the IUT entity having a App_Package_subscription containing
            subscriptionId set to SUBSCRIPTION_ID,
            subscriptionType set to "AppLcmOpOccStateChangeSubscription",
            callbackUri set to URI,
            notificationType set to "NOT_INSTANTIATED",
            _links containing
               self set to "/alcmi/v1/subscriptions/{subscriptionId}"
            ;
         ;
         ;
      }
      }


      Expected behaviour
      Expected behaviour
      ensure that {
      ensure that {
         when {
         when {
            the IUT entity receives a vPOST containing
         	the IUT entity generates a application_lcm_change_event containing 
               notificationId set to any_value,
               notificationId set to NOTIFICATION_ID;
               notificationType set to "STARTING",
               subscriptionId set to SUBSCRIPTION_ID,
               timeStamp set to TIMESTAMP,
               appLcmOpOccId set to APP_LCM_OP_OCC_ID,
               appInstanceId set to APP_INSTANCE_ID,
               AppLcmOpOccSubscriptionLinkList containing
                  _links containing
                     self set to "/alcmi/v1/subscriptions/{subscriptionId}",
                     href set to "/alcmi/v1/app_instances/{appInstanceId}",
                     rel set to "STARTING"
                  ;
               ;
            ;
            from the MEC_OSS entity
            }
            }
         then {
         then {
            the IUT entity sends a vPOST containing
            the IUT entity sends a vPOST containing
               uri indicating value CALLBACK_URI,
               uri indicating value CALLBACK_URI,
               body containing
               body containing
                  AppLcmOpOccNotification containing 
                  Notification containing 
                     notificationId indicating value any_value,
                     notificationId set to NOTIFICATION_ID,
                     notificationType indicating value "STARTING",
                     notificationType set to NOTIFICATION_TYPE,
                     subscriptionId indicating value SUBSCRIPTION_ID,
                     subscriptionId set to any_value,
                     appInstanceId set to APP_INSTANCE_ID
                     timeStamp set to any_value,
                     appInstanceId set to any_value,
                     appDId set to any_value,
                     attribute _links
                  ;
                  ;
               ;
               ;
            ; to the MEC_SUB entity
            ; to the MEC_SUB entity
+1 −0
Original line number Original line Diff line number Diff line
@@ -71,6 +71,7 @@ Package MEC_Common {
      - S1_bearer_event
      - S1_bearer_event
      - nr_measurement_repost_event
      - nr_measurement_repost_event
      - expiry_notification_event
      - expiry_notification_event
      - application_lcm_change_event
      ;
      ;
   }
   }