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/lib/bmc_redfish_utils.robot b/lib/bmc_redfish_utils.robot
index c95f7f5..3bc107c 100644
--- a/lib/bmc_redfish_utils.robot
+++ b/lib/bmc_redfish_utils.robot
@@ -48,10 +48,10 @@
# "GracefulRestart",
# "ForceRestart"
# ],
- # "target": "/redfish/v1/Managers/bmc/Actions/Manager.Reset"
+ # "target": "/redfish/v1/Managers/${MANAGER_ID}/Actions/Manager.Reset"
# }
- ${target}= redfish_utils.Get Target Actions /redfish/v1/Managers/bmc/ Manager.Reset
+ ${target}= redfish_utils.Get Target Actions /redfish/v1/Managers/${MANAGER_ID}/ Manager.Reset
${payload}= Create Dictionary ResetType=${reset_type}
Redfish.Post ${target} body=&{payload}
@@ -359,6 +359,6 @@
Get BMC Last Reset Time
[Documentation] Return BMC LastResetTime.
- ${last_reset_time}= Redfish.Get Attribute /redfish/v1/Managers/bmc LastResetTime
+ ${last_reset_time}= Redfish.Get Attribute /redfish/v1/Managers/${MANAGER_ID} LastResetTime
[Return] ${last_reset_time}