Code fix for MAC address testing.
Signed-off-by: Prashanth Katti <prkatti1@in.ibm.com>
Change-Id: I397ed99ec9cc983ee5d05485553ec4acdd4e36a9
diff --git a/redfish/managers/test_bmc_network_mac.robot b/redfish/managers/test_bmc_network_mac.robot
index 1cd05fc..3457a82 100644
--- a/redfish/managers/test_bmc_network_mac.robot
+++ b/redfish/managers/test_bmc_network_mac.robot
@@ -144,13 +144,13 @@
${payload}= Create Dictionary MACAddress=${mac_address}
Redfish.Patch ${REDFISH_NW_ETH0_URI} body=&{payload}
- ... valid_status_codes=[200, 400]
+ ... valid_status_codes=[200, 400, 500]
# After any modification on network interface, BMC restarts network
# module, wait until it is reachable.
- Wait For Host To Ping ${OPENBMC_HOST}
- ... ${NETWORK_TIMEOUT} ${NETWORK_RETRY_TIME}
+ Wait Until Keyword Succeeds ${NETWORK_TIMEOUT} ${NETWORK_RETRY_TIME}
+ ... redfish.Get ${REDFISH_NW_ETH0_URI}
# Verify whether new MAC address is populated on BMC system.
# It should not allow to configure invalid settings.