Skip to content

Commit fc7e7e7

Browse files
committed
[TESTS] Mute SNI tests on FIPS 140 JVMs
These tests use a TrustAllConfig TrustManager as they set verification_mode to none, that can't be used in a FIPS 140 JVM.
1 parent c42d9d9 commit fc7e7e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/AbstractSimpleSecurityTransportTestCase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public void testRenegotiation() throws Exception {
196196
}
197197

198198
public void testSNIServerNameIsPropagated() throws Exception {
199+
assumeFalse("Can't run in a FIPS JVM, TrustAllConfig is not a SunJSSE TrustManagers", inFipsJvm());
199200
SSLService sslService = createSSLService();
200201

201202
final SSLConfiguration sslConfiguration = sslService.getSSLConfiguration("xpack.ssl");
@@ -261,6 +262,7 @@ public boolean matches(SNIServerName sniServerName) {
261262
}
262263

263264
public void testInvalidSNIServerName() throws Exception {
265+
assumeFalse("Can't run in a FIPS JVM, TrustAllConfig is not a SunJSSE TrustManagers", inFipsJvm());
264266
SSLService sslService = createSSLService();
265267

266268
final SSLConfiguration sslConfiguration = sslService.getSSLConfiguration("xpack.ssl");

0 commit comments

Comments
 (0)