Udpdate HTTPS valid response code for test
Changes:
- Added HTTP_NO_CONTENT as valid response code for
the test PATCH request
Tested:
- Tested on sandbox with changes
Change-Id: I2d1c1566fd99336d06dbb59e4c08e1fc25d44b6e
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/account_service/test_user_account.robot b/redfish/account_service/test_user_account.robot
index 40d82b1..b7c1f9b 100644
--- a/redfish/account_service/test_user_account.robot
+++ b/redfish/account_service/test_user_account.robot
@@ -225,10 +225,12 @@
# Update admin_user username using Redfish.
${payload}= Create Dictionary UserName=newadmin_user
Redfish.Patch /redfish/v1/AccountService/Accounts/admin_user body=&{payload}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
# Update readonly_user role using Redfish.
${payload}= Create Dictionary RoleId=Administrator
Redfish.Patch /redfish/v1/AccountService/Accounts/readonly_user body=&{payload}
+ ... valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]
# Verify users after updating
Redfish Verify User newadmin_user TestPwd123 Administrator ${True}