Added status code check
Changes:
- Added status code check.
Tested:
- Ran successfully
lib/code_update_utils.robot
Change-Id: I02a240dbc6165543c10986b9c31941c2de57501d
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/code_update_utils.robot b/lib/code_update_utils.robot
index 4bb04b6..ae3581f 100644
--- a/lib/code_update_utils.robot
+++ b/lib/code_update_utils.robot
@@ -741,6 +741,7 @@
Redfish.Patch ${REDFISH_BASE_URI}UpdateService
... body={'HttpPushUriOptions' : {'HttpPushUriApplyTime' : {'ApplyTime' : '${policy}'}}}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
Verify Get ApplyTime ${policy}