Fix Firmware test PATCH request HTTP response code
Changes:
- HTTP 200 and 204 are valid respond
Tested:
- NA
Change-Id: I59dd67dc6b1abea3ff8e0a8b7f6cab2fc9b98d6f
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/update_service/test_firmware_property.robot b/redfish/update_service/test_firmware_property.robot
index cd14b53..f10a822 100755
--- a/redfish/update_service/test_firmware_property.robot
+++ b/redfish/update_service/test_firmware_property.robot
@@ -29,6 +29,7 @@
Redfish.Patch ${REDFISH_BASE_URI}UpdateService
... body={'HttpPushUriOptions' : {'HttpPushUriApplyTime' : {'ApplyTime' : 'Immediate'}}}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
${http_push_uri_options}= Redfish.Get Attribute ${REDFISH_BASE_URI}UpdateService HttpPushUriOptions
Rprint Vars http_push_uri_options
@@ -49,6 +50,7 @@
Redfish.Patch ${REDFISH_BASE_URI}UpdateService
... body={'HttpPushUriOptions' : {'HttpPushUriApplyTime' : {'ApplyTime' : 'OnReset'}}}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
${http_push_uri_options}= Redfish.Get Attribute ${REDFISH_BASE_URI}UpdateService HttpPushUriOptions
Rprint Vars http_push_uri_options