[
https://issues.apache.org/jira/browse/AMBARI-21578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16102315#comment-16102315
]
Robert Levas edited comment on AMBARI-21578 at 7/26/17 9:29 PM:
----------------------------------------------------------------
There were 2 issues at hand.... the main one is that
{{net.java.dev.jna:jna:4.3.0}} requires {{GLIBC_2.14}} and CentOS 6 only has
{{GLIBC_2.12}}. {{net.java.dev.jna:jna:4.2.2}} seems to work find with
{{GLIBC_2.12}}. The other issue is that the unit test was not particularly
correct. Though it did expose this issue, the test should not have needed to
execute the PAM library.
was (Author: rlevas):
There were 2 issues at hand.... the main one is that
{{net.java.dev.jna:jna:4.3.0}} requires {{GLIBC_2.14}} and CentOS 6 only has
{{GLIBC_2.12}}. {{net.java.dev.jna:jna:4.2.2}} seems to work find with
{{GLIBC_2.12}}.
> testBadCredential UT fails
> --------------------------
>
> Key: AMBARI-21578
> URL: https://issues.apache.org/jira/browse/AMBARI-21578
> Project: Ambari
> Issue Type: Bug
> Components: test
> Affects Versions: 2.5.2
> Reporter: Yesha Vora
> Assignee: Robert Levas
> Attachments: AMBARI-21578_branch-2.5_01.patch,
> AMBARI-21578_trunk_01.patch
>
>
> testBadCredential UT Fails with below error.
> {code}
> Error Message
> Unexpected exception,
> expected<org.springframework.security.core.AuthenticationException> but
> was<java.lang.UnsatisfiedLinkError>
> Stacktrace
> java.lang.Exception: Unexpected exception,
> expected<org.springframework.security.core.AuthenticationException> but
> was<java.lang.UnsatisfiedLinkError>
> at
> org.apache.ambari.server.security.authorization.AmbariPamAuthenticationProviderTest.testBadCredential(AmbariPamAuthenticationProviderTest.java:87){code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)