Skip to content

Commit

Permalink
Add timeout for NetVM
Browse files Browse the repository at this point in the history
Signed-off-by: Mariia Azbeleva <[email protected]>
  • Loading branch information
azbeleva committed Nov 20, 2024
1 parent 041ac49 commit 9cc1326
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Robot-Framework/test-suites/bat-tests/netvm.robot
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Stop NetVM
... Pre-condition: requires active ssh connection to ghaf host.
Verify service status service=${netvm_service} expected_status=active expected_state=running
Log To Console Going to stop NetVM
Execute Command systemctl stop ${netvm_service} sudo=True sudo_password=${PASSWORD} timeout=60 output_during_execution=True
Execute Command systemctl stop ${netvm_service} sudo=True sudo_password=${PASSWORD} timeout=120 output_during_execution=True
Sleep 3
${status} ${state}= Verify service status service=${netvm_service} expected_status=inactive expected_state=dead
Verify service shutdown status service=${netvm_service}
Expand All @@ -137,7 +137,7 @@ Start NetVM
[Documentation] Try to start NetVM service
... Pre-condition: requires active ssh connection to ghaf host.
Log To Console Going to start NetVM
Execute Command systemctl start ${netvm_service} sudo=True sudo_password=${PASSWORD} timeout=60 output_during_execution=True
Execute Command systemctl start ${netvm_service} sudo=True sudo_password=${PASSWORD} timeout=120 output_during_execution=True
${status} ${state}= Verify service status service=${netvm_service} expected_status=active expected_state=running
Set Global Variable ${netvm_state} ${state}
Log To Console NetVM is ${state}
Expand All @@ -146,6 +146,4 @@ Start NetVM
Start NetVM if dead
[Documentation] Teardown keyword. Check global variable ${netvm_state} and start NetVM if it's stopped.
... Pre-condition: requires active ssh connection to ghaf host.
IF '${netvm_state}' == 'dead'
Start NetVM
END
Start NetVM

0 comments on commit 9cc1326

Please sign in to comment.