New BMC redfish library integration
Changes:
- Use redfish_plus.py when importing Redfish instances.
- Update bmc_redfish.py.
- Update bmc_redfish_utility.py.
- Update object name 'redfish' to 'Redfish'.
- Update test setup and teardown in suites.
- Update response error checking using valid_status_codes.
- Fix test cases required for migration.
Change-Id: Ida154aede649d9a2bbef66d16ccf725f5ea37ed0
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/managers/test_bmc_network_conf.robot b/redfish/managers/test_bmc_network_conf.robot
index 5e4b70c..6891e6e 100644
--- a/redfish/managers/test_bmc_network_conf.robot
+++ b/redfish/managers/test_bmc_network_conf.robot
@@ -37,7 +37,7 @@
[Documentation] Get MAC address and verify it's existence on the BMC.
[Tags] Get_MAC_Address_And_Verify
- ${resp}= redfish.Get ${REDFISH_NW_ETH0_URI}
+ ${resp}= Redfish.Get ${REDFISH_NW_ETH0_URI}
${macaddr}= Get From Dictionary ${resp.dict} MACAddress
Validate MAC On BMC ${macaddr}
@@ -54,7 +54,7 @@
Test Setup Execution
[Documentation] Test setup execution.
- redfish.Login
+ Redfish.Login
@{network_configurations}= Get Network Configuration
Set Test Variable @{network_configurations}
@@ -96,7 +96,7 @@
# "VLANId": 0
# }
- ${resp}= redfish.Get ${REDFISH_NW_ETH0_URI}
+ ${resp}= Redfish.Get ${REDFISH_NW_ETH0_URI}
@{network_configurations}= Get From Dictionary ${resp.dict} IPv4Addresses
[Return] @{network_configurations}
@@ -162,4 +162,4 @@
[Documentation] Test teardown execution.
FFDC On Test Case Fail
- redfish.Logout
+ Redfish.Logout