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/openpower/mpipl/test_mpipl_basic.robot b/openpower/mpipl/test_mpipl_basic.robot
index 767b98d..cbe2754 100644
--- a/openpower/mpipl/test_mpipl_basic.robot
+++ b/openpower/mpipl/test_mpipl_basic.robot
@@ -114,17 +114,17 @@
[Documentation] Check for BMC and system dump.
# {
- # "@odata.id": "/redfish/v1/Managers/bmc/LogServices/Dump/Entries/4",
+ # "@odata.id": "/redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/4",
# "@odata.type": "#LogEntry.v1_8_0.LogEntry",
# "AdditionalDataSizeBytes": 914254,
- # "AdditionalDataURI": "/redfish/v1/Managers/bmc/LogServices/Dump/Entries/4/attachment",
+ # "AdditionalDataURI": "/redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries/4/attachment",
# "Created": "2022-07-22T03:36:23+00:00",
# "DiagnosticDataType": "Manager",
# "EntryType": "Event",
# "Id": "4",
# "Name": "BMC Dump Entry"
# }
- ${bmc_dump}= Redfish.Get Properties /redfish/v1/Managers/bmc/LogServices/Dump/Entries
+ ${bmc_dump}= Redfish.Get Properties /redfish/v1/Managers/${MANAGER_ID}/LogServices/Dump/Entries
Log To Console BMC dumps generated: ${bmc_dump['Members@odata.count']}
Should Be True ${bmc_dump['Members@odata.count']} >= 1 msg=No BMC dump generated.