Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure: org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealmTests.testCacheSettings #42267

Closed
jakelandis opened this issue May 21, 2019 · 2 comments · Fixed by #42289
Assignees
Labels
:Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) >test-failure Triaged test failures from CI

Comments

@jakelandis
Copy link
Contributor

org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealmTests > testCacheSettings FAILED
    java.lang.IllegalArgumentException: unknown hash function [sha256]
        at __randomizedtesting.SeedInfo.seed([183260F6BD6AF4D7:455D85248CE5C0FB]:0)
        at org.elasticsearch.xpack.core.security.authc.support.Hasher.resolve(Hasher.java:454)
        at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.<init>(CachingUsernamePasswordRealm.java:40)
        at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealmTests$1.<init>(CachingUsernamePasswordRealmTests.java:81)
        at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealmTests.testCacheSettings(CachingUsernamePasswordRealmTests.java:81)

It reproduces ! (against master / commit: 570e8ed)

./gradlew :x-pack:plugin:security:test --tests "org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealmTests.testCacheSettings" -Dtests.seed=183260F6BD6AF4D7 -Dtests.security.manager=true -Dtests.locale=shi-Latn-MA -Dtests.timezone=Asia/Kathmandu -Dcompiler.java=12 -Druntime.java=11
@jakelandis jakelandis added >test-failure Triaged test failures from CI :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) labels May 21, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

@jkakavas jkakavas self-assigned this May 21, 2019
talevy added a commit to talevy/elasticsearch that referenced this issue May 21, 2019
some tests are failing after the introduction of elastic#41792.

relates elastic#42267 and elastic#42289.
@talevy
Copy link
Contributor

talevy commented May 21, 2019

I'm piggybacking off this test issue to include this failure

org.elasticsearch.xpack.security.authc.file.FileRealmTests > testAuthenticateCaching FAILED
    java.lang.IllegalArgumentException: unknown hash function [sha256]
        at __randomizedtesting.SeedInfo.seed([59B2C0D8C29239CD:B20A3FBF3D6748A6]:0)
        at org.elasticsearch.xpack.core.security.authc.support.Hasher.resolve(Hasher.java:454)
        at org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm.<init>(CachingUsernamePasswordRealm.java:40)
        at org.elasticsearch.xpack.security.authc.file.FileRealm.<init>(FileRealm.java:30)
        at org.elasticsearch.xpack.security.authc.file.FileRealmTests.testAuthenticateCaching(FileRealmTests.java:103)
REPRODUCE WITH: ./gradlew :x-pack:plugin:security:test --tests "org.elasticsearch.xpack.security.authc.file.FileRealmTests.testAuthenticateCaching" -Dtests.seed=59B2C0D8C29239CD -Dtests.security.manager=true -Dtests.locale=nl-SX -Dtests.timezone=America/Regina -Dcompiler.java=12 -Druntime.java=12

muting both here #42304

talevy added a commit that referenced this issue May 21, 2019
some tests are failing after the introduction of #41792.

relates #42267 and #42289.
talevy added a commit that referenced this issue May 21, 2019
some tests are failing after the introduction of #41792.

relates #42267 and #42289.
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this issue May 27, 2019
some tests are failing after the introduction of elastic#41792.

relates elastic#42267 and elastic#42289.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) >test-failure Triaged test failures from CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants