Fix warning about deprecation of 'Run Keyword Unless' keyword
[osm/tests.git] / robot-systest / testsuite / basic_20-manual_native_charm_vdu_scaling.robot
index df4faa4..cb3609f 100644 (file)
@@ -92,7 +92,7 @@ Check Number of Duplicated Application Name Before Scale Out
     [Documentation]   Check the application names if there are 2 application name in the application list.
 
     ${count_duplicated}=   Get Length   ${application_list}
-    Run Keyword Unless   ${count_duplicated} == 2   Fail   msg=There are not 2 application name in the application list before Scale Out
+    Run Keyword If   ${count_duplicated} != 2   Fail   msg=There are not 2 application name in the application list before Scale Out
 
 
 Perform Manual Vdu Scale Out
@@ -108,7 +108,7 @@ Check Vdus After Scale Out
     @{vdur_list}=   Get Vnf Vdur Names   ${vnf_id}
     Log List   ${vdur_list}
     ${vdurs}=   Get Length   ${vdur_list}
-    Run Keyword Unless   ${vdurs} == ${initial_vdur_count} + 1   Fail   msg=There is no new VDU records in the VNF after Scale Out
+    Run Keyword If   ${vdurs} != ${initial_vdur_count} + 1   Fail   msg=There is no new VDU records in the VNF after Scale Out
 
 
 Get Application Name After Scale Out
@@ -123,7 +123,7 @@ Check Number of Duplicated Application Name After Scale Out
     [Documentation]   Check the application names if there are 3 application name in the application list.
 
     ${count_duplicated}=   Get Length   ${application_list}
-    Run Keyword Unless   ${count_duplicated} == 3   Fail   msg=There are not 2 application name in the application list after Scale Out
+    Run Keyword If   ${count_duplicated} != 3   Fail   msg=There are not 2 application name in the application list after Scale Out
 
 
 Perform Manual Vdu Scale In
@@ -139,7 +139,7 @@ Check Vdus After Scaling In
     @{vdur_list}=   Get Vnf Vdur Names   ${vnf_id}
     Log List   ${vdur_list}
     ${vdurs}=   Get Length   ${vdur_list}
-    Run Keyword Unless   ${vdurs} == ${initial_vdur_count}   Fail   msg=There is the same number of VDU records in the VNF after Scale In
+    Run Keyword If   ${vdurs} != ${initial_vdur_count}   Fail   msg=There is the same number of VDU records in the VNF after Scale In
 
 
 Get Application Name After Scale In
@@ -154,7 +154,7 @@ Check Number of Duplicated Application Name After Scale In
     [Documentation]   Check the application names if there are 2 application name in the application list.
 
     ${count_duplicated}=   Get Length   ${application_list}
-    Run Keyword Unless   ${count_duplicated} == 2   Fail   msg=There are not 2 application name in the application list after Scale In
+    Run Keyword If   ${count_duplicated} != 2   Fail   msg=There are not 2 application name in the application list after Scale In
 
 
 Delete NS Instance