Skip to content

Commit

Permalink
Disable testingConventions in build tools in fips (#57357) (#57504)
Browse files Browse the repository at this point in the history
Necessary since we also disable unit tests and 
testingConventions would fail in FIPS 140 mode.
  • Loading branch information
jkakavas authored Jun 2, 2020
1 parent fb1a5bf commit 9143041
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,11 @@ if (project != rootProject) {
'forbiddenApisTest', 'forbiddenApisIntegTest', 'forbiddenApisTestFixtures')
jarHell.enabled = false
thirdPartyAudit.enabled = false
if (Boolean.parseBoolean(System.getProperty("tests.fips.enabled"))) {
if (org.elasticsearch.gradle.info.BuildParams.inFipsJvm) {
// We don't support running gradle with a JVM that is in FIPS 140 mode, so we don't test it.
// WaitForHttpResourceTests tests would fail as they use JKS/PKCS12 keystores
test.enabled = false
testingConventions.enabled = false
}

configurations {
Expand Down

0 comments on commit 9143041

Please sign in to comment.