Added a test to verify SSH login failure with incorrect service user password
Added testcase:
- Verify SSH Login Failure With Incorrect Service User Password
Change-Id: Ib7302e9c661b59ef57940c64a19cb5965e505bb6
Signed-off-by: manashsarma <manashsarma@in.ibm.com>
diff --git a/openpower/service_account/test_service_login.robot b/openpower/service_account/test_service_login.robot
index 744332b..92cddb2 100644
--- a/openpower/service_account/test_service_login.robot
+++ b/openpower/service_account/test_service_login.robot
@@ -76,6 +76,18 @@
Should Be Equal ${status} ${True}
+Verify SSH Login Failure With Incorrect Service User Password
+ [Documentation] Verify SSH login failure with incorrect service user password.
+ [Tags] Verify_SSH_Login_Failure_With_Incorrect_Service_User_Password
+ [Setup] Remove Existing ACF AND Upload Valid ACF
+
+ # Attempt SSH login with service user.
+ SSHLibrary.Open Connection ${OPENBMC_HOST}
+ # Attempt login with invalid password
+ ${status}= Run Keyword And Return Status SSHLibrary.Login service ${SERVICE_USER_PASSWORD}123
+ Should Be Equal ${status} ${False}
+
+
*** Keywords ***
Suite Setup Execution