Test enclosure fault led after assertion on CPU LED.

This change includes:
   - Added test case to verify enclosure fault LED on assertion.
   - Moved "Get System LED State" keyword from led.robot into utils.robot.
   - Added the test case in skip list of barrelye and palmetto as it is NA.

Resolves openbmc/openbmc-test-automation#432

Change-Id: Ic57b488a2087e18fd5e690d800ab4ac2e08eac2b
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/tests/test_led.robot b/tests/test_led.robot
index ca20788..bbd86c7 100644
--- a/tests/test_led.robot
+++ b/tests/test_led.robot
@@ -63,15 +63,6 @@
 
 *** Keywords ***
 
-Get System LED State
-    [Documentation]  Returns the state of given system LED.
-    [Arguments]  ${led_name}
-    # Description of arguments:
-    # led_name     System LED name (e.g. heartbeat, identify, beep).
-
-    ${state}=  Read Attribute  ${LED_PHYSICAL_URI}${led_name}  State
-    [Return]  ${state.rsplit('.', 1)[1]}
-
 Set System LED State
     [Documentation]  Set given system LED via REST.
     [Arguments]  ${led_name}  ${led_state}
diff --git a/tests/test_ledgroup.robot b/tests/test_ledgroup.robot
index 2ac2bf7..54697a8 100644
--- a/tests/test_ledgroup.robot
+++ b/tests/test_ledgroup.robot
@@ -79,7 +79,15 @@
     Verify LED Group  bmc_fault
     Verify LED Group  motherboard_fault
 
-*** Keywords ***
+Verify Enclosure Fault LED On Assertion
+    [Documentation]  Verify enclosure fault LED on assertion.
+    [Tags]  Verify_Enclosure_Fault_LED_On_Assertion
+
+    Set LED State  On  cpu0_fault
+    ${resp}=  Get System LED State  rear_fault
+    Should Be Equal  ${resp}  On
+
+***Keywords***
 
 Set LED State
     [Documentation]  Set state of given LED to on or off.