Commit e76d7bc1 authored by piscione's avatar piscione
Browse files

Updated Application LCM TPs of MEC010p2.

parent 05859aee
Loading
Loading
Loading
Loading
+63 −57
Original line number Diff line number Diff line
@@ -13,9 +13,9 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
         "Check that MEC API provider sends an error when it receives a malformed request 
          for the creation of a new App Instance"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.1.3.1",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.3.2-1",      //CreateAppInstanceRequest
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1"      //AppInstanceInfo
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.1.3.1",
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.3.2-1",      //CreateAppInstanceRequest
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1"      //AppInstanceInfo
      
      Config Id Config_MEC_6
      
@@ -29,10 +29,10 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/app_instances",
               uri indicating value "/app_lcm/v1/app_instances",
               body containing
                  CreateAppInstanceRequest containing
                     appDDDId set to APP_D_ID
                     appDDDId set to APP_D_ID //Wrong parameter into the request body
                  ;
               ;
            ; from the MEC_CONSUMER entity
@@ -52,8 +52,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      Test objective 
         "Check that MEC API provider fails on retrieving an App Instance when requested using wrong appInstanceId"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.2.3.2",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1"      //AppInstanceInfo
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.2.3.2",
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1"      //AppInstanceInfo
      
      Config Id Config_MEC_6
      
@@ -68,7 +68,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}"
               uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}"
            ; from the MEC_CONSUMER entity
         }
         then {
@@ -87,8 +87,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      Test objective 
         "Check that MEC API provider fails on deletion of an App Instance when requested using wrong appInstanceId"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.2.3.2",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.2.4.2-1"      //AppInstanceInfo
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.2.3.4",
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.4.2-1"      //AppInstanceInfo
      
      Config Id Config_MEC_6
      
@@ -103,7 +103,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vDELETE containing
               uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}"
               uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}"
            ; from the MEC_CONSUMER entity
         }
         then {
@@ -121,8 +121,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      Test objective 
         "Check that MEC API provider service fails to instantiate an App Instance when it receives a malformed request"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.6.3.1",
                    "ETSI GS MEC 010-2 2.1.1, table 6.2.2.7.2-1" // InstantiateAppRequest
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.6.3.1",
                    "ETSI GS MEC 010-2 2.2.1, table 6.2.2.7.2-1" // InstantiateAppRequest
      
      Config Id Config_MEC_6
      
@@ -139,7 +139,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/instantiate",
               uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/instantiate",
               body containing
                  InstantiateAppRequest containing
                     appERRORId set to APP_INSTANCE_ID	//wrong name of the parameter
@@ -162,8 +162,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
         "Check that MEC API provider service fails to instantiate an App Instance when it receives a request 
          related to a not existing App Instance"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.6.3.1",
                    "ETSI GS MEC 010-2 2.1.1, table 6.2.2.7.2-1" // InstantiateAppRequest
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.6.3.1",
                    "ETSI GS MEC 010-2 2.2.1, table 6.2.2.7.2-1" // InstantiateAppRequest
      
      Config Id Config_MEC_6
      
@@ -178,7 +178,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/instantiate"
               uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/instantiate"
            ; from the MEC_CONSUMER entity
         }
         then {
@@ -195,8 +195,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      Test objective 
         "Check that MEC API provider service fails to terminate an App Instance when it receives a malformed request"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.7.3.1",
                    "ETSI GS MEC 010-2 2.1.1, table 6.2.2.9.2-1" // TerminateAppRequest
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.7.3.1",
                    "ETSI GS MEC 010-2 2.2.1, table 6.2.2.9.2-1" // TerminateAppRequest
      
      Config Id Config_MEC_6
      
@@ -213,10 +213,10 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/terminate",
               uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/terminate",
               body containing
                  TerminateAppRequest containing
                     terminationERRORType set to GRACEFULL		//wrong parameter
                     terminationERRORType set to GRACEFUL		//wrong parameter
                  ;
               ;
            ; from the MEC_CONSUMER entity
@@ -236,8 +236,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
         "Check that MEC API provider service fails to terminate an App Instance when it receives a request 
          related to a not existing App Instance"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.7.3.1",
                    "ETSI GS MEC 010-2 2.1.1, table 6.2.2.9.2-1" // TerminateAppRequest
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.7.3.1",
                    "ETSI GS MEC 010-2 2.2.1, table 6.2.2.9.2-1" // TerminateAppRequest
      
      Config Id Config_MEC_6
      
@@ -252,7 +252,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/terminate"
               uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/terminate"
            ; from the MEC_CONSUMER entity
         }
         then {
@@ -269,8 +269,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      Test objective 
         "Check that MEC API provider service fails to operate on an App Instance when it receives a malformed request"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.8.3.1",
                    "ETSI GS MEC 010-2 2.1.1, table 6.2.2.8.2-1" // OperateAppRequest
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.8.3.1",
                    "ETSI GS MEC 010-2 2.2.1, table 6.2.2.8.2-1" // OperateAppRequest
      
      Config Id Config_MEC_6
      
@@ -286,7 +286,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/app_instances/{APP_INSTANCE_ID}/operate",
               uri indicating value "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}/operate",
               body containing
                  OperateAppRequest containing
                     changeERRORStateTo set to any_value		//wrong parameter
@@ -309,8 +309,8 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
         "Check that MEC API provider service fails to change the status of an App Instance when it receives a request 
          related to a not existing App Instance"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.8.3.1",
                    "ETSI GS MEC 010-2 2.1.1, table 6.2.2.8.2-1" // OperateAppRequest
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.8.3.1",
                    "ETSI GS MEC 010-2 2.2.1, table 6.2.2.8.2-1" // OperateAppRequest
      
      Config Id Config_MEC_6
      
@@ -325,7 +325,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/operate"
               uri indicating value "/app_lcm/v1/app_instances/{NON_EXISTENT_APP_INSTANCE_ID}/operate"
            ; from the MEC_CONSUMER entity
         }
         then {
@@ -340,10 +340,10 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      TP Id "TP_MEC_MEC010p2_MEX_LCM_009_NF"
      
      Test objective 
         "Check that MEC API providerservice sends an error when it receives a query for a not existing LCM Operation Occurrency"
         "Check that MEC API provider service sends an error when it receives a query for a not existing LCM Operation Occurrence"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.10.1.3.2",
                    "ETSI GS MEC 010-2 2.1.1, table 6.2.2.14.2-1" // AppLcmOpOcc 
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.10.1.3.2",
                    "ETSI GS MEC 010-2 2.2.1, table 6.2.2.13.2-1" // AppLcmOpOcc 
      
      Config Id Config_MEC_6
      
@@ -359,7 +359,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/alcmi/v1/app_lcm_op_occs/{NON_EXISTENT_APP_LCM_OP_OCC_ID}"
               uri indicating value "/app_lcm/v1/app_lcm_op_occs/{NON_EXISTENT_APP_LCM_OP_OCC_ID}"
            ; from the MEC_CONSUMER entity
         }
         then {
@@ -377,9 +377,15 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      Test objective 
         "Check that MEC API provider service sends an error when it receives a malformed request to create a LCM Subscription"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.3.3.1",
             "ETSI GS MEC 010-2 2.1.1, table 6.2.2.13.2-1",   // AppInstSubscriptionRequest
             "ETSI GS MEC 010-2 2.1.1, table 6.2.2.16.2-1"    // AppLcmOpOccSubscriptionInfo
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.3.3.1",
             "ETSI GS MEC 010-2 2.2.1, table 6.2.2.12.2-1",   // AppInstSubscriptionRequest
             "ETSI GS MEC 010-2 2.2.1, table 6.2.2.14.2-1",   // AppLcmOpOccSubscriptionRequest
             "ETSI GS MEC 010-2 2.2.1, table 6.2.2.25.2-1",   // AppInstIdCreationSubscriptionRequest
             "ETSI GS MEC 010-2 2.2.1, table 6.2.2.28.2-1",   // AppInstIdDeletionSubscriptionRequest
             "ETSI GS MEC 010-2 2.2.1, table 6.2.2.10.2-1",    //AppInstSubscriptionInfo
             "ETSI GS MEC 010-2 2.2.1, table 6.2.2.15.2-1",    // AppLcmOpOccSubscriptionInfo
             "ETSI GS MEC 010-2 2.2.1, table 6.2.2.26.2-1",    // AppInstIdCreationSubscriptionInfo
             "ETSI GS MEC 010-2 2.2.1, table 6.2.2.29.2-1"    // AppInstIdDeletionSubscriptionInfo
                  
                 
      Config Id Config_MEC_6
@@ -393,7 +399,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/alcmi/v1/subscriptions"
               uri indicating value "/app_lcm/v1/subscriptions"
               body containing
                  AppInstSubscriptionRequest containing
                     callbackERRORUri set to CALLBACK_URI		//wrong parameter
@@ -417,7 +423,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      Test objective 
         "Check that MEC API provider service sends an error when it receives a query for a not existing LCM Subscription"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.3.3.2"
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.3.3.2"
      
      Config Id Config_MEC_6
      
@@ -433,7 +439,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
               uri indicating value "/app_lcm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ; from the MEC_CONSUMER entity
         }
         then {
@@ -450,7 +456,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      Test objective 
         "Check that MEC API provider service sends an error when it receives a deletion request for a not existing LCM Subscription"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.5.3.3.2"
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.4.3.3.4"
      
      Config Id Config_MEC_6
      
@@ -466,7 +472,7 @@ Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
      ensure that {
         when {
            the IUT entity receives a vDELETE containing 
               uri indicating value "/alcmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
               uri indicating value "/app_lcm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ; from the MEC_CONSUMER entity
         }
         then {
+91 −62

File changed.

Preview size limit exceeded, changes collapsed.

+15 −9
Original line number Diff line number Diff line
@@ -10,11 +10,13 @@ Package MEC_MEC010p2_LCM_NOTIF {
      TP Id "TP_MEC_MEC010p2_MEX_LCM_014_OK"
      
      Test objective 
         "Check that MEC API provider sends a notification to the subscriber when an application lcm change event occurs"
         "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.1.1, clause 7.5.5.3.1",
              "ETSI GS MEC 010-2 2.1.1, table 6.2.2.18.2-1", // AppLcmOpOccNotification
              "ETSI GS MEC 010-2 2.1.1, table 6.2.2.12.2-1"  // AppInstNotification 
      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
@@ -24,7 +26,9 @@ Package MEC_MEC010p2_LCM_NOTIF {
         the IUT entity having a App_Instance_Subscription containing
            subscriptionType indicating value SUBSCRIPTION_TYPE,
            callbackUri indicating value CALLBACK_URI,
            attribute _links
            _links containing
            self indicating value "/app_lcm/v1/subscriptions/{SUBSCRIPTION_ID}"
            ;
         ;
      }

@@ -39,13 +43,15 @@ Package MEC_MEC010p2_LCM_NOTIF {
               uri indicating value CALLBACK_URI,
               body containing
                  Notification containing 
                     notificationId set to NOTIFICATION_ID,
                     id set to NOTIFICATION_ID,
                     notificationType set to NOTIFICATION_TYPE,
                     subscriptionId set to any_value,
                     subscriptionId set to SUBSCRIPTION_ID,
                     timeStamp set to any_value,
                     appInstanceId set to any_value,
                     appInstanceId set to APP_INSTANCE_ID,
                     appDId set to any_value,
                     attribute _links
                     _links containing 
                        	subscription set to "/app_lcm/v1/app_instances/{APP_INSTANCE_ID}"
                        	;
                  ;
               ;
            ; to the MEC_SUB entity