DMTF redfish system path logic update in test suites
Changes:
- Dynamincally find the logical id and use
Resolves openbmc/openbmc-test-automation#2172
Change-Id: I9af1cc6a3ad4b7ad29270b9b8013fe18e6259bd1
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ipmi/test_ipmi_general.robot b/ipmi/test_ipmi_general.robot
index faab290..4a8c5a7 100644
--- a/ipmi/test_ipmi_general.robot
+++ b/ipmi/test_ipmi_general.robot
@@ -277,5 +277,9 @@
# Description of argument(s):
# expected_led_status Expected value of Identify LED.
- ${led_value}= Redfish.Get Attribute /redfish/v1/Systems/system IndicatorLED
- Should Be True '${led_value}' == '${expected_state}'
+ # 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