Skip to content

testBuilderUsesDefaultSSLContext fails due to a wrong exception message #31940

Closed
@bleskes

Description

@bleskes

This test failed today of the above test while running on java11, which may be relevant:

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA=java11,ES_RUNTIME_JAVA=java11,nodes=virtual&&linux/168/console

16:26:03 FAILURE 0.58s J2 | RestClientBuilderIntegTests.testBuilderUsesDefaultSSLContext <<< FAILURES!
16:26:03    > Throwable #1: java.lang.AssertionError: 
16:26:03    > Expected: a string containing "General SSLEngine problem"
16:26:03    >      but: was "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
16:26:03    > 	at __randomizedtesting.SeedInfo.seed([40A8A6346B9B56FA:78D0B8F8B871D88F]:0)
16:26:03    > 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
16:26:03    > 	at org.elasticsearch.client.RestClientBuilderIntegTests.testBuilderUsesDefaultSSLContext(RestClientBuilderIntegTests.java:82)
16:26:03    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:26:03    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
16:26:03    > 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
16:26:03    > 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
16:26:03    > 	at java.base/java.lang.Thread.run(Thread.java:834)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions