Commit dcdf3e7b authored by Giada Landi's avatar Giada Landi
Browse files

Update negative cases for App Package Mgt

parent 40219474
Loading
Loading
Loading
Loading
+118 −67
Original line number Diff line number Diff line
@@ -53,17 +53,15 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      }       
   }

/*
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_002"         //Negative case 401 Unauthorized - no token
      TP Id "TP_MEC_MEO_PKGM_002_BR"         //Negative case 400 Bad request
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a request for creating a new App Package without credentials"
      
      Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.1",
              "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1"      //AppPkg
         a malformed request for retrieving the list of existing App Packages"
      
      Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.2",
              "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

@@ -74,27 +72,32 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a ntPOST containing 
               uri indicating value "/apmi/v1/app_packages"
            the IUT entity receives a vGET containing 
               uri indicating value "/apmi/v1/app_packages",
               query_parameters containing 
                  operationalStatus indicating value any_value      // the query parameter should be operationalState not operationalStatus
               ;
            ; from the MEC_OSS entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
               status set to "400 Bad Request"
            ; to the MEC_OSS entity
         }
      }       
   }
   
/*
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_003"         //Negative case 401 Unauthorized - wrong token
      TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_002"         //Negative case 401 Unauthorized - no token
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a request for creating a new App Package with wrong credentials"
         a request for creating a new App Package without credentials"
      
      Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.1",
              "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1"      //AppPkg
              
      Config Id Config_MEC_2
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

@@ -105,7 +108,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a iPOST containing
            the IUT entity receives a ntPOST containing 
               uri indicating value "/apmi/v1/app_packages"
            ; from the MEC_OSS entity
         }
@@ -116,76 +119,75 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
         }
      }       
   }
*/
   
   Test Purpose {
      TP Id "TP_MEC_MEO_PKGM_001_NF"         //Negative case 404 Not found
      TP Id "TP_MEC_MEO_MM1_PKGM_001_BO_BI_003"         //Negative case 401 Unauthorized - wrong token
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a request for retrieving a App Package referred with a wrong ID"
         a request for creating a new App Package with wrong credentials"
      
       Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.2",
              "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
      Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.1",
              "ETSI GS MEC 010-2 2.0.9, Table 6.2.3.2.2-1"      //AppPkg
      Config Id Config_MEC_2
      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
         ;
         the IUT entity being_in idle_state
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vGET containing
               uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}"      //wrong AppPackageID
            the IUT entity receives a iPOST containing
               uri indicating value "/apmi/v1/app_packages"
            ; from the MEC_OSS entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "404 Not Found"
               status set to "401 Unauthorized"
            ; to the MEC_OSS entity
         }
      }       
   }
*/
   
   Test Purpose {
      TP Id "TP_MEC_MEO_PKGM_002_BR"         //Negative case 400 Bad request
      TP Id "TP_MEC_MEO_PKGM_003_NF"         //Negative case 404 Not found
      
      Test objective 
         "Check that MEO responds with an error when it receives 
         a malformed request for retrieving the list of existing App Packages"
         a request for retrieving a App Package referred with a wrong ID"
      
      Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.1.3.2",
       Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.2.3.2",
              "ETSI GS MEC 010-2 2.0.9, 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 being_in idle_state
         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 "/apmi/v1/app_packages",
               query_parameters containing 
                  operationalStatus indicating value any_value      // the query parameter should be operationalState not operationalStatus
               ;
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}"      //wrong AppPackageID
            ; from the MEC_OSS entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "400 Bad Request"
               status set to "404 Not Found"
            ; to the MEC_OSS entity
         }
      }       
   }
   
   
   
   
/*   
      Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_002a_BO_BI_002"         //Negative case 401 Unauthorized - no token
@@ -405,7 +407,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
*/
   
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_003_BO_BI_003"         //Negative case 404 Not found
      TP Id "TP_MEC_MEO_PKGM_004_NF"         //Negative case 404 Not found
      
      Test objective 
         "Check that MEO responds with an error when it receives 
@@ -417,9 +419,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
         the IUT entity having a App_Package containing
            appPkgId indicating value ON_BOARDED_APP_PKG_ID,
            appDId indicating value APPD_ID
         the IUT entity "not" having a App_Package containing
            appPkgId indicating value NON_EXISTENT_APP_PKG_ID
         ;
      }

@@ -427,7 +428,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vDELETE containing
               uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}"      //wrong AppPackageID
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}"      //wrong AppPackageID
            ; from the MEC_OSS entity
         }
         then {
@@ -439,10 +440,11 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_001"
      TP Id "TP_MEC_MEO_PKGM_005_BR"
      
      Test objective 
         "Check that MEO fails to disable an App Package already in disable status when requested"
         "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.0.9, clause 7.3.2.3.3"
                
@@ -451,16 +453,16 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {

      Initial conditions  with {
         the IUT entity having a App_Package containing
            appPkgId indicating value ON_BOARDED_APP_PKG_ID,
            operationalState set to "DISABLED";      //Ref. Table 6.2.3.3.2-1 MEC 010-2
            appPkgId indicating value ON_BOARDED_APP_PKG_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPUT containing 
               uri indicating value "/apmi/v1/app_packages/{appPkgId}",
               uri_parameter appPkgOperation indicating value "DISABLE";
               uri indicating value "/apmi/v1/app_packages/{ON_BOARDED_APP_PKG_ID}",
               uri_parameter appPkgOperation indicating value "DISABL";		//it should be DISABLE
               from the MEC_OSS entity
         }
         then {
@@ -471,6 +473,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      }
   }
   
/*
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_002"         //Negative case 401 Unauthorized - no token
      
@@ -543,9 +546,10 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
         }
      }       
   }   
*/
   
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_004_BO_BI_004"         //Negative case 404 Not found
      TP Id "TP_MEC_MEO_PKGM_005_NF"         //Negative case 404 Not found
      
      Test objective 
         "Check that MEO responds with an error when it receives 
@@ -557,9 +561,8 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT

      Initial conditions  with {
         the IUT entity having a App_Package containing
            appPkgId indicating value ON_BOARDED_APP_PKG_ID,
            appDId indicating value APPD_ID
         the IUT entity "not" having a App_Package containing
            appPkgId indicating value NON_EXISTENT_APP_PKG_ID
         ;
      }

@@ -567,8 +570,41 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vPUT containing
               uri indicating value "/apmi/v1/app_packages/{WRONG_APP_PKG_ID}",      //wrong AppPackageID
               uri_parameter appPkgOperation indicating value "ENABLED"
               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
         }
         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_MEO_PKGM_006_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.0.9, clause 7.3.6.3.2",
              "ETSI GS MEC 010-2 2.0.9, 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
            appPkgId indicating value NON_EXISTENT_APP_PKG_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a vPUT containing
               uri indicating value "/apmi/v1/app_packages/{NON_EXISTENT_APP_PKG_ID}/appDId"
            ; from the MEC_OSS entity
         }
         then {
@@ -579,6 +615,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      }       
   }
 
/*
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_005_BO_BI_001"
      
@@ -712,13 +749,15 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
         }
      }
   }  
*/ 


   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001_BO_BI_001"
      TP Id "TP_MEC_MEO_PKGM_007_BR"
      
      Test objective 
         "Check that MEO service fails creating new Subscription on AppPackages when requested using incorrect parameters"
         "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.0.9, clause 7.3.3.3.1"
                
@@ -729,7 +768,6 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
         the IUT entity having a App_Package containing
            appPkgId indicating value ON_BOARDED_APP_PKG_ID
         ;

      }

      Expected behaviour
@@ -755,6 +793,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      }
   }   
   
/*
   
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_SUB_001_BO_BI_002"
@@ -839,11 +878,13 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      }
   }     


   
   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004_BO_BI_001"
      TP Id "TP_MEC_MEO_PKGM_007_NF"
      
      Test objective 
         "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using no token"
         "Check that MEO service retrieving a specific subscription on AppPackages when requested using no token"
      
      Reference "ETSI GS MEC 010-2 2.0.9, clause 7.3.4.3.2"
                
@@ -912,12 +953,15 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      }
   }     

*/


   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_SUB_004_BO_BI_003"
      TP Id "TP_MEC_MEO_PKGM_009_NF"
      
      Test objective 
         "Check that MEO service fails retrieving a specific subscription on AppPackages when requested using wrong identifier"
         "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.0.9, clause 7.3.4.3.2"
                
@@ -925,7 +969,9 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

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

      }

@@ -933,7 +979,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      ensure that {
         when {
            the IUT entity receives a vGET containing 
               uri indicating value "/apmi/v1/subscriptions/{WRONG_SUBSCRIPTION_ID}"
               uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ;
            from the MEC_OSS entity
         }
@@ -947,6 +993,7 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
   }  


/*

   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003_BO_BI_001"
@@ -1021,12 +1068,15 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      }
   }     

*/


   Test Purpose {
      TP Id "TP_MEC_MEO_MM1_PKGM_SUB_003_BO_BI_003"
      TP Id "TP_MEC_MEO_PKGM_010_NF"
      
      Test objective 
         "Check that MEO service fails deleting a specific subscription on AppPackages when requested using wrong identifier"
         "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.0.9, clause 7.3.4.3.4"
                
@@ -1034,15 +1084,16 @@ Package MEC010_2_MEO_MM1_PKGM_BO_BI {
      PICS Selection PIC_APP_PACKAGE_MANAGEMENT 

      Initial conditions  with {
         the IUT entity being_in idle_state

         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 "/apmi/v1/subscriptions/{WRONG_SUBSCRIPTION_ID}"
               uri indicating value "/apmi/v1/subscriptions/{NON_EXISTENT_SUBSCRIPTION_ID}"
            ;
            from the MEC_OSS entity
         }