Commit 6f650eee authored by piscione's avatar piscione
Browse files

TPs of Configure platform for app taks for MEC010p2 v2.2.1 have been added.

parent e76d7bc1
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018-2021.
Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters
*/
Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
   
   import all from MEC_Common;
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_LCM_01_BR"
      
      Test objective 
         "Check that MEC API provider sends an error when it receives a malformed request 
			for the configuration information in AppD to the MEPM-V"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 
      
      Expected behaviour
      ensure that {
          when {
              the IUT entity receives a vPOST containing 
                  uri indicating value "/app_lcm/v1/app_instances/{appInstanceId}/configure_platform_for_app",
                  body containing
                  ConfigPlatformForAppRequest containing
                     appServiceWrongRequired set to some_values //Wrong Param
                  ;
               ;
              ;
              from the MEO entity
         }
         then {
             the IUT entity sends a HTTP_RESPONSE containing
                 status set to "400 Bad Request"
              ;
              to the MEO entity
         }
      }
   }
   
   

}
+46 −0
Original line number Diff line number Diff line
/*
Copyright (c) ETSI 2018-2021.
Released under BSD 3-clause license. For more information visit https://forge.etsi.org/legal-matters
*/
Package MEC_MEC010p2_APP_INSTANCE_LCM_BI {
   
   import all from MEC_Common;
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_LCM_01_OK"
      
      Test objective 
         "Check that MEC API provider has created the configuration information in AppD to the MEPM-V"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.7.6.3.1",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.2.21.2-1" //ConfigPlatformForAppRequest
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 
      
      Expected behaviour
      ensure that {
          when {
              the IUT entity receives a vPOST containing 
                  uri indicating value "/app_lcm/v1/app_instances/{appInstanceId}/configure_platform_for_app",
                  body containing
                  ConfigPlatformForAppRequest containing
                     appServiceRequired set to some_values
                  ;
               ;
              ;
              from the MEO entity
         }
         then {
             the IUT entity sends a HTTP_RESPONSE containing
                 status set to "202 Accepted"
              ;
              to the MEO entity
         }
      }
   }
   
   

}