Robot fix for Autohealing tests
[osm/tests.git] / robot-systest / testsuite / heal_04-autohealing.robot
index 024cd3d..73b8990 100644 (file)
@@ -93,20 +93,16 @@ Get VNF Info
 Stop Autoheal VDU\r
     Variable Should Exist  ${vdu_autoheal_id}  msg=VDU is not available\r
     Halt Server   ${vdu_autoheal_id}\r
-    Sleep   20\r
+    Sleep   30\r
 \r
 \r
 Wait For Autohealing To Be Completed\r
-    FOR    ${Index}    IN RANGE    0    15\r
-        ${status}=    Run Keyword And Return Status    Get Operations By Type    ${ns_id}    heal\r
-        Run Keyword If  ${status}    Exit For Loop\r
-    ...  ELSE  Sleep    10\r
-    END\r
-    ${stdout}=    Get Operations By Type    ${ns_id}    heal\r
     ${healing_max_wait_time}=   Convert Time   ${healing_max_wait_time}   result_format=number\r
     ${healing_max_wait_time}=   Evaluate   ${healing_max_wait_time} * ${vim_timeout_multiplier}\r
-    Wait Until Keyword Succeeds  ${healing_max_wait_time}  ${healing_pol_time}  Check For NS Operation Ended  ${stdout}\r
-    Check For NS Operation Completed  ${stdout}\r
+    Wait Until Keyword Succeeds   ${healing_max_wait_time}   ${healing_pol_time}   Get Operations By Type   ${ns_id}   heal\r
+    ${stdout}=  Get Operations By Type   ${ns_id}   heal\r
+    Wait Until Keyword Succeeds   ${healing_max_wait_time}   ${healing_pol_time}   Check For NS Operation Ended   ${stdout}\r
+    Check For NS Operation Completed   ${stdout}\r
 \r
 \r
 Check VNF After Healing\r