Test rear power LED association with power on LED.

Resolves openbmc/openbmc-test-automation#757

Change-Id: I8c5e60e0133df834b0e470516e30b9cb12e54802
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/test_lists/skip_test_barreleye b/test_lists/skip_test_barreleye
index 91253a6..9b65a82 100644
--- a/test_lists/skip_test_barreleye
+++ b/test_lists/skip_test_barreleye
@@ -48,6 +48,7 @@
 -e Test_Power_LED_And_Verify_Via_REST
 -e Test_Fault_LED_And_Verify_Via_REST
 -e Verify_Enclosure_Fault_LED_On_Assertion
+-e Verify_Rear_Power_LED_Association_With_Group_LED
 # Network tests for xyz interface.
 # https://github.com/openbmc/openbmc-test-automation/issues/729
 -e Network_Test
diff --git a/test_lists/skip_test_palmetto b/test_lists/skip_test_palmetto
index dd1a39f..ebe80f7 100644
--- a/test_lists/skip_test_palmetto
+++ b/test_lists/skip_test_palmetto
@@ -55,6 +55,7 @@
 -e Test_Beep_LED_And_Verify_Via_REST
 -e Test_Fault_LED_And_Verify_Via_REST
 -e Verify_Enclosure_Fault_LED_On_Assertion
+-e Verify_Rear_Power_LED_Association_With_Group_LED
 # Network tests for xyz interface.
 # https://github.com/openbmc/openbmc-test-automation/issues/729
 -e Network_Test
diff --git a/tests/test_ledgroup.robot b/tests/test_ledgroup.robot
index 54697a8..bc155ca 100644
--- a/tests/test_ledgroup.robot
+++ b/tests/test_ledgroup.robot
@@ -87,6 +87,21 @@
     ${resp}=  Get System LED State  rear_fault
     Should Be Equal  ${resp}  On
 
+
+Verify Rear Power LED Association With Group LED
+    [Documentation]  Verify rear power LED state association with
+    ...  power on group LED.
+    [Tags]  Verify_Rear_Power_LED_Association_With_Group_LED
+
+    Set LED State  On  power_on
+    ${resp}=  Get System LED State  rear_power
+    Should Be Equal  ${resp}  On
+
+    Set LED State  Off  power_on
+    ${resp}=  Get System LED State  rear_power
+    Should Be Equal  ${resp}  Off
+
+
 ***Keywords***
 
 Set LED State