Added service user automation testcase
Added Test cases:
Verify service login failure with incorrect password
Change-Id: Ic75b5f8f08d14a70bdccb8d1dfb8a6d4c39751f8
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 fa7280c..b3eb526 100644
--- a/openpower/service_account/test_service_login.robot
+++ b/openpower/service_account/test_service_login.robot
@@ -51,7 +51,18 @@
Open Connection for SCP
scp.Put File ${EXPIRED_SERVICE_FILE_PATH} ${acf_dir}
Run Keyword And Expect Error InvalidCredentialsError*
- ... Redfish.Login service ${SERVICE_PASSWORD}
+ ... Redfish.Login service ${SERVICE_USER_PASSWORD}
+
+
+Verify Service Login Failure With Incorrect Password
+ [Documentation] Verify service login failure with incorrect password.
+ [Tags] Verify_Service_Login_Failure_With_Incorrect_Password
+
+ Remove Existing ACF
+ Upload Valid ACF
+ ${incorrect_service_password} = Catenate SEPARATOR= ${SERVICE_USER_PASSWORD} 123
+ Run Keyword And Expect Error InvalidCredentialsError*
+ ... Redfish.Login service ${incorrect_service_password}
*** Keywords ***
@@ -69,7 +80,6 @@
BMC Execute Command rm -f ${acf_dir}/*.acf
-
Upload Valid ACF
[Documentation] Upload valid ACF.