Test to verify username and password should not be same
Changes:
Added test to verify that admin and readonly user creation
fails if username and password are same
Tested:
Tested changes on BMC environment
Change-Id: I8d8afbee8b466946789767ff6f2a0d85e50dd56b
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/redfish/account_service/test_user_account.robot b/redfish/account_service/test_user_account.robot
index 76ccac1..3baffe7 100644
--- a/redfish/account_service/test_user_account.robot
+++ b/redfish/account_service/test_user_account.robot
@@ -577,6 +577,17 @@
readonly_user ReadOnly Dictation
+Verify Admin And Readonly User Password Is Not Same As Username
+ [Documentation] Verify that admin and readonly user creation is failed if
+ ... password is same as username.
+ [Template] Create User With Unsupported Password Format And Verify
+ [Tags] Verify_Admin_And_Readonly_User_Password_Is_Not_Same_As_Username
+
+ #username role_id password
+ AdminUser1 Administrator AdminUser1
+ ReadOnlyUser1 ReadOnly ReadOnlyUser1
+
+
*** Keywords ***
Test Teardown Execution
@@ -930,8 +941,8 @@
# Unsupported password format are sequential characters,
# sequential digits, palindrome digits, palindrome characters,
# only uppercase letters, only lowercase letters, only digits,
- # only characters, not a dictionary word.
-
+ # only characters, not a dictionary word, username and password
+ # should not be same.
# Make sure the user account in question does not already exist.
Redfish.Delete /redfish/v1/AccountService/Accounts/${userName}