Commit 6fdedcef authored by Yann Garcia's avatar Yann Garcia
Browse files

Finalyze MEC-10-2 PkgMgt for Mm1; Replace not by not (as a TPLANs2 keyword)

parent 5b378261
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ Package MEC_MEC009_MEX_ANY_BI {
         when {
            the IUT entity receives a HTTP_REQUEST containing
               uri indicating value ACCEPTABLE_URI,
	       "not" authorization
	       not authorization
            ; from the MEC_CONSUMER entity
         }
         then {
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ Package MEC_MEC010p2_MEO_GRANT_BI {
      PICS Selection PIC_GRANTS_MANAGEMENT

      Initial conditions  with {
         the IUT entity "not" having a grant containing
         the IUT entity not having a grant containing
            id indicating value GRANTING_ID
         ;
      }
+237 −69
Original line number Diff line number Diff line
@@ -8,14 +8,14 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
   
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_001_BR"         //Negative case 400 Bad request
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_001_BR"
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a malformed request for creating a new App Package"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.1.3.1",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.2.2-1"      //AppPkg
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.1",
                "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.2.2-1"
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

@@ -27,10 +27,10 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vPOST containing 
               uri indicating value "/apmi/v1/app_packages",
               uri indicating value "/app_pkgm/v1/app_packages",
               body containing
                  AppPkg containing
                     "not" appPkgName                  //mandatory attribute
                     not appPkgName
                  ;
               ;
            ; from the MEC_OSS entity
@@ -44,14 +44,14 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
   }

   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_002_BR"         //Negative case 400 Bad request
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_002_BR"
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a malformed request for retrieving the list of existing App Packages"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.1.3.2",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.1.3.2",
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1"
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

@@ -63,7 +63,7 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/apmi/v1/app_packages",
               uri indicating value "/app_pkgm/v1/app_packages",
               query_parameters containing 
                  operationalStatus indicating value any_value      // the query parameter should be operationalState not operationalStatus
               ;
@@ -78,19 +78,19 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
   }
    
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_003_NF"         //Negative case 404 Not found
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_003_NF"
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a request for retrieving a App Package referred with a wrong ID"
      
       Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.2",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
       Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.2",
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1"
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
         the IUT entity "not" having a App_Package containing
         the IUT entity not having a App_Package containing
            appPkgId indicating value NON_EXISTENT_APP_PKG_ID
         ;
      }
@@ -99,7 +99,7 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}"      //wrong AppPackageID
               uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}"
            ; from the MEC_OSS entity
         }
         then {
@@ -111,19 +111,19 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_004_NF"         //Negative case 404 Not found
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_004_NF"
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a request for deleting an App Package referred with a wrong ID"
      
       Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.4",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
       Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.4",
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1"
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
         the IUT entity "not" having a App_Package containing
         the IUT entity not having a App_Package containing
            appPkgId indicating value NON_EXISTENT_APP_PKG_ID
         ;
      }
@@ -132,7 +132,7 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vDELETE containing
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}"      //wrong AppPackageID
               uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}"
            ; from the MEC_OSS entity
         }
         then {
@@ -150,7 +150,7 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
         "Check that MEO sends an error when it receives a malformed request to modify
          the operational state of an application package"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.3"
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.5"
                
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 
@@ -164,9 +164,14 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPUT containing 
               uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}",
               uri_parameter appPkgOperation indicating value "DISABL";		//it should be DISABLE
            the IUT entity receives a vPATCH containing 
               uri indicating value "/app_pkgm/v1/app_packages/{ON_BOARDED_APP_PKG_ID}",
               body containing
                   appPkgInfoModifications containing
                       appPkgOperation indicating value "DISABL" //it should be DISABLE
                   ;
               ;
            ;
            from the MEC_OSS entity
         }
         then {
@@ -179,19 +184,19 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
   

   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_005_NF"         //Negative case 404 Not found
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_005_NF"
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a request for updating an App Package referred with a wrong ID"
      
       Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.2.3.4",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
       Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.2.3.5",
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1"
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
         the IUT entity "not" having a App_Package containing
         the IUT entity not having a App_Package containing
            appPkgId indicating value NON_EXISTENT_APP_PKG_ID
         ;
      }
@@ -199,10 +204,15 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPUT containing
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}",      //wrong AppPackageID
               uri_parameter appPkgOperation indicating value "ENABLE"
            ; from the MEC_OSS entity
            the IUT entity receives a vPATCH containing
               uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}",
                 body containing
                   appPkgInfoModifications containing
                       appPkgOperation indicating value "DISABL"
                   ;
               ;
            ;
            from the MEC_OSS entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
@@ -213,19 +223,138 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
   }

   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_006_NF"         //Negative case 404 Not found
       TP Id "TP_MEC_MEC010p2_MEO_PKGM_006_BR"
      
       Test objective 
           "Check that MEO service sends an error when it receives a 
            malformed request for creating a new subscription on AppPackages"
      
       Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.1",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7"
          
       Config Id Config_MEC_2
       PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

       Initial conditions  with {
           the IUT entity being_in idle_state
       }

       Expected behaviour
       ensure that {
           when {
               the IUT entity receives a POST containing 
                   uri indicating value "/app_pkgm/v1/subscriptions",
                   body containing
                       AppPkgSubscription containing
                           subscriptionType set to "ON-BOARDING"  // Enum should be "ONBOARDING"
                       ;
                   ;
               ;
               from the MEC_OSS entity
           }
           then {
               the IUT entity sends a HTTP_RESPONSE containing
                   status set to "400 Bad Request"
               ;
               to the MEC_OSS entity
          }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_006_NF"
      
      Test objective 
         "Check that MEO service sends an error when it receives a query for a subscription on AppPackages 
          with a wrong identifier"
          
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.2",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7"
          
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
         the IUT entity not having a Subscription containing
            subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID
         ;

      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/app_pkgm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ;
            from the MEC_OSS entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ;         
            to the MEC_OSS entity
         }
      }
   }  
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_007_NF"
      
      Test objective 
         "Check that MEO service sends an error when it receives a deletion request for a subscription on AppPackages 
          with a wrong identifier"
          
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.4",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7"
          
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
         the IUT entity not having a Subscription containing
            subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID
         ;

      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vDELETE containing 
               uri indicating value "/app_pkgm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ;
            from the MEC_OSS entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ;         
            to the MEC_OSS entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_008_NF"         //Negative case 404 Not found
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a request to retrieve an application descriptor referred with a wrong app package ID"
      
       Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.6.3.2",
              "ETSI GS MEC 010-2 2.1.1, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
       Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.2",
              "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
         the IUT entity "not" having a App_Package containing
         the IUT entity not having a App_Package containing
            appPkgId indicating value NON_EXISTENT_APP_PKG_ID
         ;
      }
@@ -234,7 +363,7 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vPUT containing
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appDId"
               uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appDId"
            ; from the MEC_OSS entity
         }
         then {
@@ -246,13 +375,13 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
   }
 
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_007_BR"
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_009_BR"
      
      Test objective 
         "Check that MEO service sends an error when it receives a 
          malformed request for creating a new subscription on AppPackages"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.3.3.1"
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.1"
                
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 
@@ -265,11 +394,11 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a POST containing 
               uri indicating value "/apmi/v1/subscriptions",
               uri indicating value "/app_pkgm/v1/subscriptions",
               body containing
                  AppPkgSubscription containing
                     callbackUri set to URI,
                     subscriptionType set to "ONBOARDING"  // Enum should be "ON-BOARDING"
                     subscriptionType set to "ON-BOARDING"  // Enum should be "ONBOARDING"
                  ;
               ;
            ;
@@ -288,26 +417,62 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_009_NF"
      
      Test objective 
         "Check that MEO service sends an error when it receives a query for a subscription on AppPackages 
         "Check that MEO service sends an error when it receives a deletion request for a subscription on AppPackages 
          with a wrong identifier"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.4.3.2"
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.4"
                
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
         the IUT entity "not" having a Subscription containing
         the IUT entity not having a Subscription containing
            subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vDELETE containing 
               uri indicating value "/app_pkgm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ;
            from the MEC_OSS entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
            ;         
            to the MEC_OSS entity
         }
      }
   }  

   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_010_01_OK"
      
      Test objective 
          "Check that MEO fetches the on-boarded application package content identified by appPkgId when requested"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2"
          
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
          the IUT entity having a App_Package containing
              appPkgId indicating value APP_PKG_ID,
              appDId indicating value ON_BOARDED_APPD_ID
          ;
      }

      Expected behaviour
      ensure that {
          when {
              the IUT entity receives a vGET containing 
               uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
                  uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTING_APP_PKG_ID}/package_content",
                  accept set to "application/zip"
              ;
              from the MEC_OSS entity
          }
@@ -321,37 +486,40 @@ Package MEC_MEC010p2_MEO_PKGM_BO_BI {
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_010_NF"
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_010_02_OK"
      
      Test objective 
         "Check that MEO service sends an error when it receives a deletion request for a subscription on AppPackages 
          with a wrong identifier"
          "Check that MEO fetches the on-boarded application package content identified by appDId when requested"
      
      Reference "ETSI GS MEC 010-2 2.1.1, clause 7.3.4.3.4"
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2"
          
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
         the IUT entity "not" having a Subscription containing
            subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID
          the IUT entity having a App_Package containing
              appPkgId indicating value APP_PKG_ID,
              appDId indicating value ON_BOARDED_APPD_ID
          ;
      }

      Expected behaviour
      ensure that {
          when {
            the IUT entity receives a vDELETE containing 
               uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
              the IUT entity receives a vGET containing 
                  uri indicating value "/app_pkgm/v1/onboarded_app_packages/{NON_EXISTING_ON_BOARDED_APPD_ID}/package_content",
                  accept set to "application/zip"
              ;
              from the MEC_OSS entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
                  status set to "204 Not Found"
               ;
               to the MEC_OSS entity
         }
      }
   }
   
}
+619 −254

File changed.

Preview size limit exceeded, changes collapsed.

+115 −24
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
          the IUT entity "not" having a App_Package containing
          the IUT entity not having a App_Package containing
              appPkgId indicating value NON_EXISTENT_APP_PKG_ID
          ;
      }
@@ -99,7 +99,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
          the IUT entity "not" having a App_Package containing
          the IUT entity not having a App_Package containing
              appPkgId indicating value NON_EXISTENT_APP_PKG_ID
          ;
      }
@@ -136,7 +136,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
          the IUT entity "not" having a App_Package containing
          the IUT entity not having a App_Package containing
              appPkgId indicating value NON_EXISTENT_APP_PKG_ID,
              appDId indicating value NON_EXISTENT_ON_BOARDED_APPD_ID
          ;
@@ -167,7 +167,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
            malformed request for creating a new subscription on AppPackages"
      
       Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.1",
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.1",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7"
          
@@ -185,7 +185,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
                   uri indicating value "/app_pkgm/v1/subscriptions",
                   body containing
                       AppPkgSubscription containing
                           subscriptionType set to "ONBOARDING"  // Enum should be "ON-BOARDING"
                           subscriptionType set to "ON-BOARDING"  // Enum should be "ONBOARDING"
                       ;
                   ;
               ;
@@ -208,7 +208,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
          with a wrong identifier"
          
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.1",
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.2",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7"
          
@@ -216,7 +216,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
         the IUT entity "not" having a Subscription containing
         the IUT entity not having a Subscription containing
            subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID
         ;

@@ -247,7 +247,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
          with a wrong identifier"
          
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.1",
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.4.3.4",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.4",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.3.7"
          
@@ -255,7 +255,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
         the IUT entity "not" having a Subscription containing
         the IUT entity not having a Subscription containing
            subscriptionId indicating value NON_EXISTENT_SUBSCRIPTION_ID
         ;

@@ -500,26 +500,117 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_011_BR"
      
      Test objective 
         "Check that MEPM service sends an error when it receives a 
          malformed request for creating a new subscription on AppPackages"
      
      Reference "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.3.1"
                
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
         the IUT entity being_in idle_state
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a POST containing 
               uri indicating value "/app_pkgm/v1/subscriptions",
               body containing
                  AppPkgSubscription containing
                     callbackUri set to URI,
                     subscriptionType set to "ON-BOARDING"  // Enum should be "ONBOARDING"
                  ;
               ;
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
            ;         
            to the MEO entity
         }
      }
   }

   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_012_01_NF"
      
      Test objective 
          "Check that MEPM fetches the on-boarded application package content identified by appPkgId when requested"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2"
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
          the IUT entity having a App_Package containing
              appPkgId indicating value APP_PKG_ID,
              appDId indicating value ON_BOARDED_APPD_ID
          ;
      }

      Expected behaviour
      ensure that {
          when {
              the IUT entity receives a vGET containing 
                  uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTING_APP_PKG_ID}/package_content",
                  accept set to "application/zip"
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "404 Not Found"
               ;
               to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_012_02_NF"
      
      Test objective 
          "Check that MEPM fetches the on-boarded application package content identified by appDId when requested"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.7.3.2"
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
          the IUT entity having a App_Package containing
              appPkgId indicating value APP_PKG_ID,
              appDId indicating value ON_BOARDED_APPD_ID
          ;
      }





      Expected behaviour
      ensure that {
          when {
              the IUT entity receives a vGET containing 
                  uri indicating value "/app_pkgm/v1/onboarded_app_packages/{NON_EXISTING_ON_BOARDED_APPD_ID}/package_content",
                  accept set to "application/zip"
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "404 Not Found"
               ;
               to the MEO entity
         }
      }
   }
   
}
Loading