From fc7e7e7d81da60450d2a03245aaf5f52e4164a66 Mon Sep 17 00:00:00 2001 From: Ioannis Kakavas Date: Wed, 28 Nov 2018 09:35:36 +0200 Subject: [PATCH] [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. --- .../transport/AbstractSimpleSecurityTransportTestCase.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/AbstractSimpleSecurityTransportTestCase.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/AbstractSimpleSecurityTransportTestCase.java index e2ee7b9d84e..77a9caf64c0 100644 --- a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/AbstractSimpleSecurityTransportTestCase.java +++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/AbstractSimpleSecurityTransportTestCase.java @@ -196,6 +196,7 @@ public abstract class AbstractSimpleSecurityTransportTestCase extends AbstractSi } public void testSNIServerNameIsPropagated() throws Exception { + assumeFalse("Can't run in a FIPS JVM, TrustAllConfig is not a SunJSSE TrustManagers", inFipsJvm()); SSLService sslService = createSSLService(); final SSLConfiguration sslConfiguration = sslService.getSSLConfiguration("xpack.ssl"); @@ -261,6 +262,7 @@ public abstract class AbstractSimpleSecurityTransportTestCase extends AbstractSi } public void testInvalidSNIServerName() throws Exception { + assumeFalse("Can't run in a FIPS JVM, TrustAllConfig is not a SunJSSE TrustManagers", inFipsJvm()); SSLService sslService = createSSLService(); final SSLConfiguration sslConfiguration = sslService.getSSLConfiguration("xpack.ssl");