Disable testingConventions in build tools in fips (#57357) (#57503)

Necessary since we also disable unit tests and 
testingConventions would fail in FIPS 140 mode.
This commit is contained in:
Ioannis Kakavas 2020-06-02 10:28:58 +03:00 committed by GitHub
parent c15cd33c88
commit 02bf5fff0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {