Added https status code 202
Changes:
- Added 202 status code support.
Tested:
- Ran successfully
redfish/update_service/test_firmware_tftp_upload_image.robot
Change-Id: I7d345982f740762391193eabc2014f6e7451319b
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/redfish/update_service/test_firmware_tftp_upload_image.robot b/redfish/update_service/test_firmware_tftp_upload_image.robot
index 3caeeb3..77db19d 100644
--- a/redfish/update_service/test_firmware_tftp_upload_image.robot
+++ b/redfish/update_service/test_firmware_tftp_upload_image.robot
@@ -101,6 +101,7 @@
# Download image from TFTP server to BMC.
Redfish.Post /redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate
... body={"TransferProtocol" : "TFTP", "ImageURI" : "${TFTP_SERVER}/${IMAGE_FILE_NAME}"}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_ACCEPTED}]
# Wait for image tar file to download complete.
${image_id}= Wait Until Keyword Succeeds 180 sec 10 sec Get Latest Image ID
@@ -145,6 +146,7 @@
# Download image from TFTP server via ImageURI to BMC.
Redfish.Post /redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate
... body={"ImageURI": "tftp://${TFTP_SERVER}/${IMAGE_FILE_NAME}"}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_ACCEPTED}]
# Wait for image tar file download to complete.
${image_id}= Wait Until Keyword Succeeds 180 sec 10 sec Get Latest Image ID