You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jialiang Cai (Jira)" <ji...@apache.org> on 2024/09/20 07:06:00 UTC

[jira] [Resolved] (AMBARI-26138) Fix the Ambari java test failures related to TestUsers

     [ https://issues.apache.org/jira/browse/AMBARI-26138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jialiang Cai resolved AMBARI-26138.
-----------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org