Skip to content

Commit 5f30258

Browse files
Mute SSLTrustRestrictionsTests on JDK 11
This commit adds an assumption to two test methods in SSLTrustRestrictionsTests that we are not on JDK 11 as the tests currently fail there. Relates #29989
1 parent b42765c commit 5f30258

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/ssl/SSLTrustRestrictionsTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import org.apache.logging.log4j.message.ParameterizedMessage;
99
import org.elasticsearch.ElasticsearchException;
10+
import org.elasticsearch.bootstrap.JavaVersion;
1011
import org.elasticsearch.common.io.PathUtils;
1112
import org.elasticsearch.common.settings.Settings;
1213
import org.elasticsearch.common.transport.TransportAddress;
@@ -173,6 +174,8 @@ public void testCertificateWithTrustedNameIsAccepted() throws Exception {
173174
}
174175

175176
public void testCertificateWithUntrustedNameFails() throws Exception {
177+
// see https://github.com/elastic/elasticsearch/issues/29989
178+
assumeTrue("test fails on JDK 11 currently", JavaVersion.current().compareTo(JavaVersion.parse("11")) < 0);
176179
writeRestrictions("*.trusted");
177180
try {
178181
tryConnect(untrustedCert);
@@ -183,6 +186,8 @@ public void testCertificateWithUntrustedNameFails() throws Exception {
183186
}
184187

185188
public void testRestrictionsAreReloaded() throws Exception {
189+
// see https://github.com/elastic/elasticsearch/issues/29989
190+
assumeTrue("test fails on JDK 11 currently", JavaVersion.current().compareTo(JavaVersion.parse("11")) < 0);
186191
writeRestrictions("*");
187192
assertBusy(() -> {
188193
try {

0 commit comments

Comments
 (0)