Basic TC on IPMI chassis status

Resolves openbmc/openbmc-test-automation#154
Two TC are created to test IPMI chassis status when BMC is OFF/ON

Change-Id: I96d33a582e10da24493f895960892926b009a0a0
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/test_lists/skip_test b/test_lists/skip_test
index 82b8a5e..cb21548 100644
--- a/test_lists/skip_test
+++ b/test_lists/skip_test
@@ -39,5 +39,7 @@
 -e Set_Valid_System_Time
 -e Set_Invalid_System_Time
 -e Set_System_Time_with_no_time
+-e IPMI_Chassis_Status_On
+-e IPMI_Chassis_Status_Off
 #https://github.com/openbmc/openbmc/issues/811
 -e powercapping
diff --git a/test_lists/skip_test_palmetto b/test_lists/skip_test_palmetto
index 982bf05..cdd8f09 100644
--- a/test_lists/skip_test_palmetto
+++ b/test_lists/skip_test_palmetto
@@ -44,3 +44,6 @@
 ##Testcase NA for Palmetto system
 -e io_board_Present
 -e io_board_Fault
+#https://github.com/openbmc/openbmc-test-automation/issues/148
+-e IPMI_Chassis_Status_On
+-e IPMI_Chassis_Status_Off
diff --git a/test_lists/skip_test_witherspoon b/test_lists/skip_test_witherspoon
index b5d63f6..6ff6bbd 100644
--- a/test_lists/skip_test_witherspoon
+++ b/test_lists/skip_test_witherspoon
@@ -39,6 +39,8 @@
 -e Set_Valid_System_Time
 -e Set_Invalid_System_Time
 -e Set_System_Time_with_no_time
+-e IPMI_Chassis_Status_On
+-e IPMI_Chassis_Status_Off
 #Pre bringup list
 -e Repeated_Testing
 -e power_on_test
diff --git a/tests/ipmi/test_chassis.robot b/tests/ipmi/test_chassis.robot
new file mode 100644
index 0000000..ccf6b88
--- /dev/null
+++ b/tests/ipmi/test_chassis.robot
@@ -0,0 +1,35 @@
+*** Settings ***
+Documentation          This suite tests IPMI chassis status in Open BMC.
+
+Resource               ../../lib/rest_client.robot
+Resource               ../../lib/ipmi_client.robot
+Resource               ../../lib/openbmc_ffdc.robot
+Resource               ../../lib/utils.robot
+
+Suite Setup            Open Connection And Log In
+Suite Teardown         Close All Connections
+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
+
+    Initiate Power On
+    ${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 Power Off
+    ${resp}=    Run IPMI Standard Command    chassis status
+    ${power_status}=    Get Lines Containing String    ${resp}    System Power
+    Should Contain    ${power_status}    off
+
+