Added waiting time for the tests
Changes:
- Added explicit wait 5s to allow user password to get set
Change-Id: I2242131487a16ad278f4b3ab122ac52a53f0512a
Signed-off-by: Sushma M M <sushmm99@in.ibm.com>
diff --git a/ipmi/test_ipmi_user.robot b/ipmi/test_ipmi_user.robot
index bbc82c2..519418b 100644
--- a/ipmi/test_ipmi_user.robot
+++ b/ipmi/test_ipmi_user.robot
@@ -133,6 +133,9 @@
${msg}= Run Keyword And Expect Error * Run IPMI Standard Command
... user set password ${random_userid} ${invalid_password}
+ # Delay added for user password to get set.
+ Sleep 5s
+
Should Contain ${msg} Set User Password command failed
Verify Setting IPMI Root User With New Name
@@ -346,6 +349,9 @@
Run IPMI Standard Command
... user set password ${root_userid} ${valid_password}
+ # Delay added for user password to get set.
+ Sleep 5s
+
# Verify that root user is able to run IPMI command using new password.
Wait Until Keyword Succeeds 15 sec 5 sec Verify IPMI Username And Password
... root ${valid_password}
diff --git a/redfish/account_service/test_ipmi_redfish_user.robot b/redfish/account_service/test_ipmi_redfish_user.robot
index 4e4138e..491f0f2 100644
--- a/redfish/account_service/test_ipmi_redfish_user.robot
+++ b/redfish/account_service/test_ipmi_redfish_user.robot
@@ -34,6 +34,9 @@
Redfish.Post /redfish/v1/AccountService/Accounts body=&{payload}
... valid_status_codes=[${HTTP_CREATED}]
+ # Delay added for created new user password to get set.
+ Sleep 5s
+
Verify IPMI Username And Password ${random_username} ${valid_password}