Add re-try for redfish GET request for targets
Changes:
- This retries is added to improve the success rate
for the GET request in case returns JSON errors
for the following URI during operation
/redfish/v1/Systems/ and /redfish/v1/Managers/
- Added other places in code to handle exceptions.
- Fix IPMI import paths in test suite
Tested:
- Ran from sandbox.
Change-Id: Ie37dbdd9c7572e0003a56e65a7b5f0a4c3b26a1a
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/service_root/test_service_root.robot b/redfish/service_root/test_service_root.robot
index b505b6f..1a7888c 100644
--- a/redfish/service_root/test_service_root.robot
+++ b/redfish/service_root/test_service_root.robot
@@ -77,7 +77,8 @@
[Tags] Verify_Redfish_Invalid_URL_Response_Code
Redfish.Login
- Redfish.Get /redfish/v1/idontexist valid_status_codes=[${HTTP_NOT_FOUND}]
+ Wait Until Keyword Succeeds 1 min 30 sec
+ ... Redfish.Get /redfish/v1/idontexist valid_status_codes=[${HTTP_NOT_FOUND}]
Redfish.Logout