Himanshu Maurya created AMBARI-26138:
----------------------------------------

             Summary: Fix the Ambari java test failures related to TestUsers
                 Key: AMBARI-26138
                 URL: https://issues.apache.org/jira/browse/AMBARI-26138
             Project: Ambari
          Issue Type: Improvement
            Reporter: Himanshu Maurya
            Assignee: Himanshu Maurya


After adding ambari password validation criteria for username cannot be part of 
password
Some of the java test cases are getting failed
{code:java}
[ERROR] Tests run: 15, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 15.256 
s <<< FAILURE! - in org.apache.ambari.server.security.authorization.TestUsers
[ERROR] 
testModifyPassword_UserByAdmin(org.apache.ambari.server.security.authorization.TestUsers)
  Time elapsed: 0.69 s  <<< ERROR!
java.lang.IllegalArgumentException: The password does not meet the Ambari user 
password policy : password cannot contain the username
        at 
org.apache.ambari.server.security.authorization.TestUsers.testModifyPassword_UserByAdmin(TestUsers.java:173)

[ERROR] 
testModifyPassword_EmptyPassword(org.apache.ambari.server.security.authorization.TestUsers)
  Time elapsed: 0.552 s  <<< ERROR!
java.lang.IllegalArgumentException: The password does not meet the Ambari user 
password policy : password cannot contain the username
        at 
org.apache.ambari.server.security.authorization.TestUsers.testModifyPassword_EmptyPassword(TestUsers.java:205)

[ERROR] 
testModifyPassword_UserByHimselfPasswordOk(org.apache.ambari.server.security.authorization.TestUsers)
  Time elapsed: 0.422 s  <<< ERROR!
java.lang.IllegalArgumentException: The password does not meet the Ambari user 
password policy : password cannot contain the username
        at 
org.apache.ambari.server.security.authorization.TestUsers.testModifyPassword_UserByHimselfPasswordOk(TestUsers.java:456)

[ERROR] 
testModifyPassword_UserByHimselfPasswordNotOk(org.apache.ambari.server.security.authorization.TestUsers)
  Time elapsed: 0.468 s  <<< ERROR!
java.lang.IllegalArgumentException: The password does not meet the Ambari user 
password policy : password cannot contain the username
        at 
org.apache.ambari.server.security.authorization.TestUsers.testModifyPassword_UserByHimselfPasswordNotOk(TestUsers.java:476)
 {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to