Replaced REST with Redfish for IPMI test cases
IPMI test cases modified:
- Verify Host PowerOff Via IPMI
- Verify Host PowerOn Via IPMI
Change-Id: I6a69b26880a34011e64373bd1dd66176272436c0
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/ipmi/test_ipmi_chassis.robot b/ipmi/test_ipmi_chassis.robot
index e0c09a6..e1b94c2 100644
--- a/ipmi/test_ipmi_chassis.robot
+++ b/ipmi/test_ipmi_chassis.robot
@@ -27,3 +27,19 @@
${resp}= Run IPMI Standard Command chassis status
${power_status}= Get Lines Containing String ${resp} System Power
Should Contain ${power_status} off
+
+Verify Host PowerOff Via IPMI
+ [Documentation] Verify host power off operation using external IPMI command.
+ [Tags] Verify_Host_PowerOff_Via_IPMI
+
+ IPMI Power Off
+ ${ipmi_state}= Get Host State Via External IPMI
+ Valid Value ipmi_state ['off']
+
+Verify Host PowerOn Via IPMI
+ [Documentation] Verify host power on operation using external IPMI command.
+ [Tags] Verify_Host_PowerOn_Via_IPMI
+
+ IPMI Power On
+ ${ipmi_state}= Get Host State Via External IPMI
+ Valid Value ipmi_state ['on']
\ No newline at end of file