Keyword for checking Host state
Changes:
- Added a new keyword to check the host state
Tested:
- Tested on sandbox with changes to check the state.
Change-Id: Ic7c6d7cdf1e3ab3c627a00679694cc7d43b339be
Signed-off-by: Sagar Anand <sagaranand@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index e0f28db..9f15be5 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1048,6 +1048,19 @@
Should Contain Any ${boot_progress} @{boot_states}
+Is Host At State
+ [Documentation] Get Host state and check if it matches
+ ... user input expected state.
+ [Arguments] ${expected_host_state}
+
+ # Description of argument(s):
+ # expected_host_state Expected Host State to check.(e.g. Quiesced).
+
+ ${boot_progress} ${host_state}= Redfish Get Boot Progress
+
+ Should Be Equal ${host_state} ${expected_host_state}
+
+
Set Watchdog Interval Using Busctl
[Documentation] Set Watchdog time interval.
[Arguments] ${milliseconds}=1000