Managers ID : Introduced variable to declare Managers ID in resource.robot and updated all the scripts in openbmc-test-automation
Changes:
- Introduced ${MANAGER_ID} variable in resource.robot
- Replaced all the Managers/bmc to Managers/${MANAGER_ID} across all the scripts
- Also in data/variables.py updated chassis id for the few redfish uri.
Tested:
- Ran All The Scripts Successfully
Change-Id: Iff3673aae27657e0799dec5cb94c1651a0cd5d18
Signed-off-by: ganesanb <ganesanb@ami.com>
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/update_service/test_bmc_image_switch.robot b/redfish/update_service/test_bmc_image_switch.robot
index 26ee0e5..9904334 100755
--- a/redfish/update_service/test_bmc_image_switch.robot
+++ b/redfish/update_service/test_bmc_image_switch.robot
@@ -110,14 +110,14 @@
Match BMC Release And Redifsh Firmware Version
[Documentation] The /etc/os-release vs Redfish FirmwareVersion attribute value from
- ... /redfish/v1/Managers/bmc should match.
+ ... /redfish/v1/Managers/${MANAGER_ID} should match.
# Python module: get_bmc_release_info()
${bmc_release_info}= utils.Get BMC Release Info
${bmc_release}= Set Variable ${bmc_release_info['version_id']}
Rprint Vars bmc_release
- ${firmware_version}= Redfish.Get Attribute /redfish/v1/Managers/bmc FirmwareVersion
+ ${firmware_version}= Redfish.Get Attribute /redfish/v1/Managers/${MANAGER_ID} FirmwareVersion
Rprint Vars firmware_version
Should Be Equal As Strings ${bmc_release} ${firmware_version}
@@ -139,6 +139,6 @@
Print Timen Switch to back up completed.
# Check if the BMC version after rebooted is the same version asked to switch.
- ${firmware_version}= Redfish.Get Attribute /redfish/v1/Managers/bmc FirmwareVersion
+ ${firmware_version}= Redfish.Get Attribute /redfish/v1/Managers/${MANAGER_ID} FirmwareVersion
Should Be Equal As Strings ${image_version} ${firmware_version}
... msg=${image_version} does not match redfish version ${firmware_version}