From cc15a28254c35fcc958b4291904342dbe00fadbf Mon Sep 17 00:00:00 2001 From: Ioannis Kakavas Date: Fri, 18 Dec 2020 08:57:39 +0200 Subject: [PATCH] Mute JDBC client tests with SSL in FIPS mode (#66566) JDBC client can only be configured for SSL with keystores, but we can't use JKS/PKCS12 keystores in FIPS 140-2 mode. Resolves: #66095 --- x-pack/plugin/sql/qa/jdbc/security/with-ssl/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/plugin/sql/qa/jdbc/security/with-ssl/build.gradle b/x-pack/plugin/sql/qa/jdbc/security/with-ssl/build.gradle index aa349e4e3c63a..8409e4f84df5e 100644 --- a/x-pack/plugin/sql/qa/jdbc/security/with-ssl/build.gradle +++ b/x-pack/plugin/sql/qa/jdbc/security/with-ssl/build.gradle @@ -1,3 +1,5 @@ +import org.elasticsearch.gradle.info.BuildParams + apply plugin: 'elasticsearch.test-with-ssl' testClusters.all { @@ -6,3 +8,8 @@ testClusters.all { setting 'xpack.security.http.ssl.enabled', 'true' setting 'xpack.security.transport.ssl.enabled', 'true' } + +// JDBC client can only be configured for SSL with keystores, but we can't use JKS/PKCS12 keystores in FIPS 140-2 mode. +tasks.withType(Test).configureEach { + onlyIf { BuildParams.inFipsJvm == false} +}