IPMI - Reset Watchdog Timer.
Added two test cases to check:
- Watchdog reset
- Watchdog off
Resolves openbmc/openbmc-test-automation#1207
Change-Id: I1d7c56ff3d6cb297b691fb7970ab179ef1a56d17
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 2ce76e3..e41b240 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1427,3 +1427,10 @@
${time_diff}= Evaluate
... ${time['universal_time_seconds']} - ${time['rtc_time_seconds']}
Should Be True ${time_diff} < ${time_diff_max}
+
+Watchdog Object Should Exist
+ [Documentation] Check that watchdog object exists.
+
+ ${resp}= OpenBMC Get Request ${WATCHDOG_URI}host0
+ Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
+ ... msg=Expected watchdog object does not exist.