Mute JDBC client tests with SSL in FIPS mode (#66566) (#66747)

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
This commit is contained in:
Ioannis Kakavas 2020-12-22 17:16:33 +02:00 committed by GitHub
parent 40c99e56c3
commit 2fd049cda7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import org.elasticsearch.gradle.info.BuildParams
apply plugin: 'elasticsearch.test-with-ssl' apply plugin: 'elasticsearch.test-with-ssl'
testClusters.all { testClusters.all {
@ -6,3 +8,8 @@ testClusters.all {
setting 'xpack.security.http.ssl.enabled', 'true' setting 'xpack.security.http.ssl.enabled', 'true'
setting 'xpack.security.transport.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}
}