Close SSH connections before deleting user
Changed:
- Close SSH connection with the test_user used in test before removing
the user. Deleting used user in some implementation fails.
Tested:
- Ran tests and make sure it succeeded.
Change-Id: I5a3ea9bd668092adf6ff15468a0473488eb7f8fc
Signed-off-by: Igor Kanyuka <ifelmail@gmail.com>
diff --git a/redfish/account_service/test_user_account.robot b/redfish/account_service/test_user_account.robot
index 75a2adf..fec38c6 100644
--- a/redfish/account_service/test_user_account.robot
+++ b/redfish/account_service/test_user_account.robot
@@ -299,10 +299,10 @@
Verify User Account Unlock
[Documentation] Verify manually unlocking the account before lockout time
[Tags] Verify_User_Account_Unlock
- [Teardown] Run Keywords Redfish.Logout
+ [Teardown] Run Keywords SSHLibrary.Close All Connections
+ ... AND Redfish.Logout
... AND Redfish.Login
... AND Redfish.Delete /redfish/v1/AccountService/Accounts/test_user
- ... AND SSHLibrary.Close All Connections
Redfish Create User test_user TestPwd123 Administrator ${True}