[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.
This commit is contained in:
Ioannis Kakavas 2018-11-28 09:35:36 +02:00
parent c42d9d91c9
commit fc7e7e7d81
1 changed files with 2 additions and 0 deletions

View File

@ -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");