Handle BMC reset operation response code
Changes:
- Add HTTP 201 response as valid
Tested:
- NA
Change-Id: I5e76f7bba4f87b4798a6d80a5007c65164a25b57
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/bmc_redfish_utils.robot b/lib/bmc_redfish_utils.robot
index a9146b0..7d39041 100644
--- a/lib/bmc_redfish_utils.robot
+++ b/lib/bmc_redfish_utils.robot
@@ -92,7 +92,7 @@
${target}= Wait Until Keyword Succeeds 1 min 20 sec
... redfish_utils.Get Target Actions /redfish/v1/Managers/${MANAGER_ID}/ Manager.Reset
${payload}= Create Dictionary ResetType=${reset_type}
- Redfish.Post ${target} body=&{payload}
+ Redfish.Post ${target} body=&{payload} valid_status_codes=[${HTTP_OK}, ${HTTP_CREATED}]
Reset BIOS Via Redfish