Update quotas_01 to follow the same format than other tests 74/12574/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 3 Oct 2022 09:08:12 +0000 (11:08 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 3 Oct 2022 09:13:17 +0000 (11:13 +0200)
Change-Id: I801cf487ef5dd1659b0973b2a90d94a1c2122b01
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
robot-systest/testsuite/quotas_01-quota_enforcement.robot

index 229a60c..5cebb0f 100644 (file)
@@ -26,8 +26,7 @@ Suite Teardown   Run Keyword And Ignore Error   Suite Cleanup
 
 *** Variables ***
 # VNFD package to use during test
-${vnfd_name}   hackfest_basic_vnf
-${vnfd_pkg}   %{PACKAGES_FOLDER}/${vnfd_name}
+${vnfd_pkg}   hackfest_basic_vnf
 
 # Project names and quotas to use
 ${project_1_name}   quotas_01_proj_1
@@ -88,8 +87,8 @@ Change First Project Name to Third Project Name
 
 Create VNFDs On Third Project Until Exceed Quota
 
-    Create VNFD In Project   ${project_3_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=v1;product-name=v1'
-    Run Keyword And Expect Error   *   Create VNFD In Project   ${project_3_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=v2;product-name=v2'
+    Create VNFD In Project   ${project_3_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=v1;product-name=v1'
+    Run Keyword And Expect Error   *   Create VNFD In Project   ${project_3_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=v2;product-name=v2'
 
 
 Increase Third Project Quotas
@@ -101,17 +100,17 @@ Increase Third Project Quotas
 
 Create More VNFDs On Third Project Until Exceed Quota
 
-    Create VNFD In Project   ${project_3_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=v2;product-name=v2'
-    Create VNFD In Project   ${project_3_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=v3;product-name=v3'
-    Create VNFD In Project   ${project_3_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=v4;product-name=v4'
-    Create VNFD In Project   ${project_3_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=v5;product-name=v5'
-    Run Keyword And Expect Error   *   Create VNFD In Project   ${project_3_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=v6;product-name=v6'
+    Create VNFD In Project   ${project_3_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=v2;product-name=v2'
+    Create VNFD In Project   ${project_3_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=v3;product-name=v3'
+    Create VNFD In Project   ${project_3_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=v4;product-name=v4'
+    Create VNFD In Project   ${project_3_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=v5;product-name=v5'
+    Run Keyword And Expect Error   *   Create VNFD In Project   ${project_3_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=v6;product-name=v6'
 
 
 Create VNFDs On Second Project Until Exceed Quota
 
-    Create VNFD In Project   ${project_2_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=vp2_1;product-name=vp2_1'
-    Run Keyword And Expect Error   *   Create VNFD In Project   ${project_2_name}   ${vnfd_pkg}   ${user_name}   ${user_password}   override='id=vp2_2;product-name=vp2_2'
+    Create VNFD In Project   ${project_2_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=vp2_1;product-name=vp2_1'
+    Run Keyword And Expect Error   *   Create VNFD In Project   ${project_2_name}   '%{PACKAGES_FOLDER}/${vnfd_pkg}'   ${user_name}   ${user_password}   override='id=vp2_2;product-name=vp2_2'
 
 
 Check Project Scopes