Commit 9e93eff7 authored by Michele Carignani's avatar Michele Carignani
Browse files

Removed all previously commented 401s test cases

parent acc27269
Loading
Loading
Loading
Loading
+71 −811

File changed.

Preview size limit exceeded, changes collapsed.

+0 −591
Original line number Original line Diff line number Diff line
@@ -87,362 +87,6 @@ Package MEC010_2_MEPM_MM3_PKGM_BI {
   }
   }
   
   
   
   
/*   
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_002a_BO_BI_002"         //Negative case 401 Unauthorized - no token
      
      Test objective 
         "Check that MEPM responds with an error when it receives 
         a request for an existing App Package without credentials"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.1.3.2",
              "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
              
      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 GET containing 
               uri indicating value "/apmi/v1/app_packages",
               "not" authorization               //Token is mandatory
            ; from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the MEO entity
         }
      }       
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_002a_BO_BI_003"         //Negative case 401 Unauthorized - wrong token
      
      Test objective 
         "Check that MEPM responds with an error when it receives 
         a request for an existing App Package with wrong credentials"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.1.3.2",
              "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
              
      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 HttpMsg containing      // Not clear what method is received. Should contain in in HttpMsg definition in mec-common.
               headers set to vHeadersInvalidToken,      //wrong token
               uri indicating value "/apmi/v1/app_packages"
            ; from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the MEO entity
         }
      }       
   }
   
   
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_002b_BO_BI_002"         //Negative case 401 Unauthorized - no token
      
      Test objective 
         "Check that MEPM responds with an error when it receives 
         a request an existing App Package without credentials"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.2.3.2",
              "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
              
      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 ON_BOARDED_APP_PKG_ID,
            appDId indicating value APPD_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a GET containing 
               uri indicating value "/apmi/v1/app_packages/{appPkgId}",
               "not" authorization,               //Token is mandatory
               body containing
                  AppPkg containing
                     appPkgName set to any_value
                  ;
               ;
            ; from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the MEO entity
         }
      }       
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_002b_BO_BI_003"         //Negative case 401 Unauthorized - wrong token
      
      Test objective 
         "Check that MEPM responds with an error when it receives 
         a request for creating a new App Package with wrong credentials"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.2.3.2",
              "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
      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 ON_BOARDED_APP_PKG_ID,
            appDId indicating value APPD_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a HttpMsg containing
               headers set to vHeadersInvalidToken,      //wrong token
               uri indicating value "/apmi/v1/app_packages/{appPkgId}",
               body containing
                  AppPkg containing
                     appPkgName set to any_value
                  ;
               ;
            ; from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the MEO entity
         }
      }       
   }
       
   
 
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_005_BO_BI_001"
      
      Test objective 
         "Check that MEPM fails to retrieve the AppD from  an App Package when requested"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.4.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 ON_BOARDED_APP_PKG_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a GET containing 
               uri indicating value "/apmi/v1/app_packages/{appPkgId}/app_descriptor"
            ;   
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized";
            to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_005_BO_BI_002"         //Negative case 401 Unauthorized - wrong token
      
      Test objective 
         "Check that MEPM responds with an error when it receives 
         a request to retrieve the AppDescriptor from an existing App Package with wrong credentials"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.4.3.2",
              "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
              
      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 ON_BOARDED_APP_PKG_ID,
            appDId indicating value APPD_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a HttpMsg containing 
               uri indicating value "/apmi/v1/app_packages/{appPkgId}/app_descriptor"
            ; from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the MEO entity
         }
      }       
   }   
   
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_006_BO_BI_001"
      
      Test objective 
         "Check that MEPM fails to retrieve the Package Content from  an App Package when requested"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.3.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 ON_BOARDED_APP_PKG_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a GET containing 
               uri indicating value "/apmi/v1/app_packages/{appPkgId}/appPkgContent"
            ;   
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized";
            to the MEO entity
         }
      }
   }
   
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_006_BO_BI_002"         //Negative case 401 Unauthorized - wrong token
      
      Test objective 
         "Check that MEPM responds with an error when it receives 
         a request to retrieve the Package Content from an existing App Package with wrong credentials"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.3.3.2",
              "ETSI GS MEC 010-2 2.0.10, Table 6.2.3.3.2-1"      //OnboardedAppPkgInfo
              
      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 ON_BOARDED_APP_PKG_ID,
            appDId indicating value APPD_ID
         ;
      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a HttpMsg containing 
               uri indicating value "/apmi/v1/app_packages/{appPkgId}/appPkgContent"
            ; from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ; to the MEO entity
         }
      }       
   }  

   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_002_BO_BI_001"
      
      Test objective 
         "Check that MEPM service fails retrieving Subscriptions on AppPackages when requested using no token"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.2"
                
      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 GET containing 
               uri indicating value "/apmi/v1/subscriptions"
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ;         
            to the MEO entity
         }
      }
   }
   

   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_002_BO_BI_002"
      
      Test objective 
         "Check that MEPM service fails retrieving Subscriptions on AppPackages when requested using wrong token"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.3.2"
                
      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 HttpMsg containing 
               uri indicating value "/apmi/v1/subscriptions"
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ;         
            to the MEO entity
         }
      }
   }   

*/


   Test Purpose {
   Test Purpose {
      TP Id "TP_MEC_MEPM_PKGM_003_NF"         //Negative case 404 Not found
      TP Id "TP_MEC_MEPM_PKGM_003_NF"         //Negative case 404 Not found
      
      
@@ -550,165 +194,6 @@ Package MEC010_2_MEPM_MM3_PKGM_BI {
      }
      }
   }   
   }   
   
   
 /*  
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001_BO_BI_002"
      
      Test objective 
         "Check that MEPM service fails creating new Subscription on AppPackages when requested using no token"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.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 ON_BOARDED_APP_PKG_ID
         ;

      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a POST containing 
               uri indicating value "/apmi/v1/subscriptions",
               body containing
                  AppPkgSubscription containing
                     callbackUri set to URI,
                     subscriptionType set to "ON_BOARDING"
                  ;
               ;
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ;         
            to the MEO entity
         }
      }
   }   
   

   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_001_BO_BI_003"
      
      Test objective 
         "Check that MEPM service fails creating new Subscription on AppPackages when requested using wrong token"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.5.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 ON_BOARDED_APP_PKG_ID
         ;

      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a HttpMsg containing 
               uri indicating value "/apmi/v1/subscriptions",
               body containing
                  AppPkgSubscription containing
                     callbackUri set to URI,
                     subscriptionType set to "ON_BOARDING"
                  ;
               ;
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ;         
            to the MEO entity
         }
      }
   }     
   
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_004_BO_BI_001"
      
      Test objective 
         "Check that MEPM service fails retrieving a specific subscription on AppPackages when requested using no token"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.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 ON_BOARDED_APP_PKG_ID,
            subscriptionId indicating value SUBSCRIPTION_ID
         ;

      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a GET containing 
               uri indicating value "/apmi/v1/subscriptions/{subscriptionId}"
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ;         
            to the MEO entity
         }
      }
   }   
   

   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_004_BO_BI_002"
      
      Test objective 
         "Check that MEPM service fails retrieving a specific subscription on AppPackages when requested using wrong token"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.6.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 ON_BOARDED_APP_PKG_ID,
            subscriptionId indicating value SUBSCRIPTION_ID
         ;

      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a HttpMsg containing 
               uri indicating value "/apmi/v1/subscriptions/{subscriptionId}"
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ;         
            to the MEO entity
         }
      }
   }     
 */


   Test Purpose {
   Test Purpose {
      TP Id "TP_MEC_MEPM_PKGM_007_NF"
      TP Id "TP_MEC_MEPM_PKGM_007_NF"
      
      
@@ -745,82 +230,6 @@ Package MEC010_2_MEPM_MM3_PKGM_BI {
      }
      }
   }  
   }  
   
   

/*
   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_003_BO_BI_001"
      
      Test objective 
         "Check that MEPM service fails deleting a specific subscription on AppPackages when requested using no token"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.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 ON_BOARDED_APP_PKG_ID,
            subscriptionId indicating value SUBSCRIPTION_ID
         ;

      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a DELETE containing 
               uri indicating value "/apmi/v1/subscriptions/{subscriptionId}"
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ;         
            to the MEO entity
         }
      }
   }   
   

   Test Purpose {
      TP Id "TP_MEC_MEPM_MM3_PKGM_SUB_003_BO_BI_002"
      
      Test objective 
         "Check that MEPM service fails deleting a specific subscription on AppPackages when requested using wrong token"
      
      Reference "ETSI GS MEC 010-2 2.0.10, clause 7.4.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 ON_BOARDED_APP_PKG_ID,
            subscriptionId indicating value SUBSCRIPTION_ID
         ;

      }

      Expected behaviour
      ensure that {
         when {
            the IUT entity receives a HttpMsg containing 
               uri indicating value "/apmi/v1/subscriptions/{subscriptionId}"
            ;
            from the MEO entity
         }
         then {
            the IUT entity sends a HTTP_RESPONSE containing
               status set to "401 Unauthorized"
            ;         
            to the MEO entity
         }
      }
   }     
 */
   
   Test Purpose {
   Test Purpose {
      TP Id "TP_MEC_MEPM_PKGM_008_NF"
      TP Id "TP_MEC_MEPM_PKGM_008_NF"
      
      
+147 −1133

File changed.

Preview size limit exceeded, changes collapsed.

+0 −491

File changed.

Preview size limit exceeded, changes collapsed.

+0 −384

File changed.

Preview size limit exceeded, changes collapsed.

Loading