Moved IPMI soft sutdown test to new ipmi bucket
Change-Id: I0cc890d8b999cb4287a1687d590433db62d9728b
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/ipmi/test_ipmi_chassis.robot b/ipmi/test_ipmi_chassis.robot
index e1b94c2..91a98a6 100644
--- a/ipmi/test_ipmi_chassis.robot
+++ b/ipmi/test_ipmi_chassis.robot
@@ -42,4 +42,14 @@
IPMI Power On
${ipmi_state}= Get Host State Via External IPMI
- Valid Value ipmi_state ['on']
\ No newline at end of file
+ Valid Value ipmi_state ['on']
+
+
+Verify Soft Shutdown
+ [Documentation] Verify host OS shutdown softly via IPMI command.
+ [Tags] Verify_Soft_Stutdown
+
+ Redfish Power On stack_mode=skip
+ Run IPMI Standard Command chassis power soft
+ Wait Until Keyword Succeeds 3 min 10 sec Is Host Off Via IPMI
+
diff --git a/lib/ipmi_client.robot b/lib/ipmi_client.robot
index b97beab..e20be6c 100755
--- a/lib/ipmi_client.robot
+++ b/lib/ipmi_client.robot
@@ -339,6 +339,13 @@
Wait Until Keyword Succeeds 3 min 10 sec Is Host Off
+Is Host Off Via IPMI
+ [Documentation] Verify if the Host is off using IPMI command.
+
+ ${status}= Run External IPMI Standard Command chassis power status
+ Should Contain ${status} off
+
+
Get Host State Via External IPMI
[Documentation] Returns host state using external IPMI.
@@ -425,4 +432,4 @@
FOR ${user_record} IN @{non_root_user_info}
Run IPMI Standard Command user set name ${user_record['user_id']} ""
Sleep 5s
- END
\ No newline at end of file
+ END
diff --git a/tests/ipmi/test_chassis.robot b/tests/ipmi/test_chassis.robot
index cef699e..a02b801 100755
--- a/tests/ipmi/test_chassis.robot
+++ b/tests/ipmi/test_chassis.robot
@@ -43,14 +43,6 @@
... ${CONTROL_HOST_URI}/power_restore_policy PowerRestorePolicy
Should Be Equal ${power_policy} ${initial_power_policy}
-Verify Soft Shutdown via IPMI
- [Documentation] Verify Host OS shutdown softly using IPMI command.
- [Tags] Verify_Soft_Shutdown_via_IPMI
-
- REST Power On stack_mode=skip
- Run IPMI Standard Command chassis power soft
- Wait Until Keyword Succeeds 3 min 10 sec Is Host Off
-
*** Keywords ***