Get Status of system identifyLED On/Off.
Changes:
- Using /redfish/v1/Systems/system IndicatorLED to get system identifyLED On/Off status and verifing.
Set IndicatorLED State and Verify Identify LED State Via Redfish.
Tested: -
- Successfully ran this from gui/gui_test/overview_menu/test_overview_menu.robot
Change-Id: Ia73894efbfda00ae9f2f65a8489f6d961a245069
Signed-off-by: rramyasr-in <rramyasr@in.ibm.com>
diff --git a/gui/gui_test/overview_menu/test_overview_menu.robot b/gui/gui_test/overview_menu/test_overview_menu.robot
index 2492ee2..0fa9511 100644
--- a/gui/gui_test/overview_menu/test_overview_menu.robot
+++ b/gui/gui_test/overview_menu/test_overview_menu.robot
@@ -124,11 +124,10 @@
# Turn Off the server LED via Redfish and refresh GUI.
Set IndicatorLED State Off
-
Refresh GUI
# Turn ON the LED via GUI.
- Click Element At Coordinates ${xpath_led_button} 0 0
+ Click Element ${xpath_led_button}
# Cross check that server LED ON state via Redfish.
Verify Identify LED State Via Redfish Lit
@@ -247,12 +246,8 @@
# Description of argument(s):
# expected_state Expected value of Identify LED.
- # Python module: get_member_list(resource_path)
- ${systems}= Redfish_Utils.Get Member List /redfish/v1/Systems
- FOR ${system} IN @{systems}
- ${led_value}= Redfish.Get Attribute ${system} IndicatorLED
- Should Be True '${led_value}' == '${expected_state}'
- END
+ ${led_state}= Redfish.Get Attribute /redfish/v1/Systems/system IndicatorLED
+ Should Be True '${led_state}' == '${expected_state}'
Set IndicatorLED State
@@ -262,8 +257,7 @@
# led_state IndicatorLED state to "off", "Lit" etc.
# expect_resp_code Expected HTTPS response code. Default [200, 204]
- # Python module: get_member_list(resource_path)
- ${systems}= Redfish_Utils.Get Member List /redfish/v1/Systems
- FOR ${system} IN @{systems}
- Redfish.Patch ${system} body={"IndicatorLED":${led_state}} valid_status_codes=${expect_resp_code}
- END
+
+ Redfish.Patch /redfish/v1/Systems/system body={"IndicatorLED": "${led_state}"}
+ ... valid_status_codes=${expect_resp_code}
+