Commit c9b43ff0 authored by Yann Garcia's avatar Yann Garcia
Browse files

Full review of MEPM/PKGM; Remove file AppPkgMgt_BO-BI.tplan2

parent 693406ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -685,7 +685,7 @@ Package MEC_MEC010p2_MEO_PKGM_BV {
   }
   }
   
   
   Test Purpose {
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_007_OK"
      TP Id "TP_MEC_MEC010p2_MEO_PKGM_007_OK"
      
      
      Test objective 
      Test objective 
          "Check that MEO service returns the list of Application Package Subscriptions when requested"
          "Check that MEO service returns the list of Application Package Subscriptions when requested"
+0 −616
Original line number Original line 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_MEPM_MM3_PKGM_BI {
   
   import all from MEC_Common;

   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_001_BR"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a malformed request for requesting the list of existing App Packages"
      
      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",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3"
          
      Config Id Config_MEC_5
      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 vGET containing 
                  uri indicating value "/app_pkgm/v1/app_packages",
                  query_parameters containing 
                     operationalStatus indicating value ENABLED // the query parameter should be operationalState not operationalStatus
                  ;
              ;
              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_002_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a request for returning a App Package referred with a wrong ID"
      
      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",
          "ETSI GS MEC 010-2 2.2.1, Table 6.2.3.3.2-1 Note 3"
      
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
          the IUT entity not having a App_Package containing
              appPkgId indicating value NON_EXISTENT_APP_PKG_ID
          ;
      }

      Expected behaviour
      ensure that {
          when {
              the IUT entity receives a vGET containing
                  uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" 
              ;
              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_003_01_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a request for returning a App Descriptor referred with a wrong App Package ID"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.2",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.1.2"
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
          the IUT entity not having a App_Package containing
              appPkgId indicating value NON_EXISTENT_APP_PKG_ID
          ;
      }

      Expected behaviour
      ensure that {
          when {
              the IUT entity receives a vGET containing
                  uri indicating value "/app_pkgm/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appd" 
              ;
              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_003_02_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a request for returning a App Descriptor referred with a wrong appDId"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.2",
          "ETSI GS MEC 010-2 2.2.1, clause 6.2.1.2"
          
      Config Id Config_MEC_5
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
          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
          ;
      }

      Expected behaviour
      ensure that {
          when {
              the IUT entity receives a vGET containing
                  uri indicating value "/app_pkgm/v1/onboarded_app_packages/{NON_EXISTENT_ON_BOARDED_APPD_ID}/appd" 
              ;
              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_004_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.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_5
       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 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_005_NF"
      
      Test objective 
         "Check that MEPM 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_5
      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 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_006_NF"
      
      Test objective 
         "Check that MEPM 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_5
      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 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_007_01_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a POST request referring an application descriptor AppD"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.1"
          
      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 vPOST containing
                  uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/appd" 
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "405 Method Not Allow"
              ;
              to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_007_02_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a POST request referring an application descriptor AppD"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.1"
          
      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 vPOST containing
                  uri indicating value "/app_pkgm/v1/onboarded_app_packages/{ON_BOARDED_APPD_ID}/appd" 
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "405 Method Not Allow"
              ;
              to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_008_01_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a PUT request referring an application descriptor AppD"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.3"
          
      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 vPUT containing
                  uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/appd" 
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "403 Forbidden"
              ;
              to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_008_02_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a PUT request referring an application descriptor AppD"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.3"
          
      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 vPUT containing
                  uri indicating value "/app_pkgm/v1/onboarded_app_packages/{ON_BOARDED_APPD_ID}/appd" 
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "403 Forbidden"
              ;
              to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_009_01_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a DELETE request referring an application descriptor AppD"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.4"
          
      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 vDELETE containing
                  uri indicating value "/app_pkgm/v1/app_packages/{APP_PKG_ID}/appd" 
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "405 Method Not Allow"
              ;
              to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_009_02_NF"
      
      Test objective 
          "Check that MEPM responds with an error when it receives 
           a DELETE request referring an application descriptor AppD"
      
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.6.3.4"
          
      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 vDELETE containing
                  uri indicating value "/app_pkgm/v1/onboarded_app_packages/{ON_BOARDED_APPD_ID}/appd" 
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "405 Method Not Allow"
              ;
              to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_010_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_011_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_011_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
         }
      }
   }
   
}
+521 −186

File changed.

Preview size limit exceeded, changes collapsed.