Moved IPMI chassis command in new IPMI bucket
Change-Id: Ifa71ed272e15d037ac7b5b77e376f95ac79d7533
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/ipmi/test_ipmi_chassis.robot b/ipmi/test_ipmi_chassis.robot
new file mode 100644
index 0000000..e0c09a6
--- /dev/null
+++ b/ipmi/test_ipmi_chassis.robot
@@ -0,0 +1,29 @@
+*** Settings ***
+
+Documentation Module to test IPMI chassis functionality.
+Resource ../lib/ipmi_client.robot
+Resource ../lib/openbmc_ffdc.robot
+
+Test Teardown FFDC On Test Case Fail
+
+*** Test Cases ***
+
+IPMI Chassis Status On
+ [Documentation] This test case verfies system power on status
+ ... using IPMI Get Chassis status command.
+ [Tags] IPMI_Chassis_Status_On
+
+ Redfish Power On stack_mode=skip quiet=1
+ ${resp}= Run IPMI Standard Command chassis status
+ ${power_status}= Get Lines Containing String ${resp} System Power
+ Should Contain ${power_status} on
+
+IPMI Chassis Status Off
+ [Documentation] This test case verfies system power off status
+ ... using IPMI Get Chassis status command.
+ [Tags] IPMI_Chassis_Status_Off
+
+ Redfish Power Off stack_mode=skip quiet=1
+ ${resp}= Run IPMI Standard Command chassis status
+ ${power_status}= Get Lines Containing String ${resp} System Power
+ Should Contain ${power_status} off
diff --git a/tests/ipmi/test_chassis.robot b/tests/ipmi/test_chassis.robot
index 64cf8c3..94fa8a8 100755
--- a/tests/ipmi/test_chassis.robot
+++ b/tests/ipmi/test_chassis.robot
@@ -13,26 +13,6 @@
*** Test Cases ***
-IPMI Chassis Status On
- [Documentation] This test case verfies system power on status
- ... using IPMI Get Chassis status command.
- [Tags] IPMI_Chassis_Status_On
-
- Initiate Host Boot
- ${resp}= Run IPMI Standard Command chassis status
- ${power_status}= Get Lines Containing String ${resp} System Power
- Should Contain ${power_status} on
-
-IPMI Chassis Status Off
- [Documentation] This test case verfies system power off status
- ... using IPMI Get Chassis status command.
- [Tags] IPMI_Chassis_Status_Off
-
- Initiate Host PowerOff
- ${resp}= Run IPMI Standard Command chassis status
- ${power_status}= Get Lines Containing String ${resp} System Power
- Should Contain ${power_status} off
-
IPMI Chassis Restore Power Policy
[Documentation] Verify IPMI chassis restore power policy.
[Tags] IPMI_Chassis_Restore_Power_Policy