Commit 05859aee authored by Yann Garcia's avatar Yann Garcia
Browse files

Review MEC-010-2 TPs for PKGM/Mm2

parent b58a1a80
Loading
Loading
Loading
Loading
+386 −120
Original line number Diff line number Diff line
@@ -8,14 +8,17 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {

   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_001_BR"         //Negative case 400 Bad request
      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.1.1, clause 7.4.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",
          "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

@@ -27,30 +30,33 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_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 ENABLED // the query parameter should be operationalState not operationalStatus
                  ;
            ; from the MEO entity
              ;
              from the MEO entity
          }
          then {
              the IUT entity sends a HTTP_RESPONSE containing
                  status set to "400 Bad Request"
            ; to the MEO entity
              ;
              to the MEO entity
         }
      }
   }
   
 
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_002_NF"         //Negative case 404 Not found
      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.1.1, clause 7.4.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",
          "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
@@ -65,26 +71,29 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      ensure that {
          when {
              the IUT entity receives a vGET containing
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}" 
            ; from the MEO entity
                  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
              ;
              to the MEO entity
         }
      }
   }
   
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_003_NF"         //Negative case 404 Not found
      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.1.1, clause 7.4.4.3.2"
      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
@@ -99,33 +108,37 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      ensure that {
          when {
              the IUT entity receives a vGET containing
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/app_descriptor" 
            ; from the MEO entity
                  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
              ;
              to the MEO entity
         }
      }
   }
   

   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_004_NF"         //Negative case 404 Not found
      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 application package content referred with a wrong App Package ID"
           a request for returning a App Descriptor referred with a wrong appDId"
      
       Reference "ETSI GS MEC 010-2 2.1.1, clause 7.4.4.3.2"
      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
              appPkgId indicating value NON_EXISTENT_APP_PKG_ID,
              appDId indicating value NON_EXISTENT_ON_BOARDED_APPD_ID
          ;
      }

@@ -133,40 +146,43 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      ensure that {
          when {
              the IUT entity receives a vGET containing
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appPkgContent" 
            ; from the MEO entity
                  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
              ;
              to the MEO entity
         }
      }
   }
   
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_005_BR"
       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.1.1, clause 7.4.5.3.1"
       Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.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 "/apmi/v1/subscriptions",
                   uri indicating value "/app_pkgm/v1/subscriptions",
                   body containing
                       AppPkgSubscription containing
                           subscriptionType set to "ONBOARDING"  // Enum should be "ON-BOARDING"
@@ -185,13 +201,16 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_007_NF"
      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.1.1, clause 7.4.6.3.2"
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.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 
@@ -207,7 +226,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      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/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ;
            from the MEO entity
         }
@@ -221,13 +240,16 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
   }  
   
   Test Purpose {
      TP Id "TP_MEC_MEC010p2_MEPM_PKGM_008_NF"
      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.1.1, clause 7.4.6.3.4"
      Reference
          "ETSI GS MEC 010-2 2.2.1, clause 7.3.3.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 
@@ -243,7 +265,7 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
      ensure that {
         when {
            the IUT entity receives a vDELETE containing 
               uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
               uri indicating value "/app_pkgm/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ;
            from the MEO entity
         }
@@ -255,5 +277,249 @@ Package MEC_MEC010p2_MEPM_MM3_PKGM_BI {
         }
      }
   }
   
   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
         }
      }
   }
   






















}
+504 −226

File changed.

Preview size limit exceeded, changes collapsed.