Skip to content

Commit

Permalink
Disable testingConventions in build tools in fips (elastic#57357)
Browse files Browse the repository at this point in the history
* Disable testingConventions in build tools in fips

Necessary since we also disable unit tests and 
testingConventions would fail in FIPS 140 mode.
  • Loading branch information
jkakavas committed Jun 2, 2020
1 parent c15cd33 commit 7e35ed3
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 @@ -182,8 +182,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 7e35ed3

Please sign in to comment.