Skip to content

Commit 0262785

Browse files
committed
Fix fips tests for vanilla Test tasks (#74969) (#74981)
This fixes a regression introduced with #74670. Vanilla test tasks (of plain type Test) must also dependOn `fipsResources` when build is run in FIPS mode. Otherwise we see the plain test task failing with "SHA MessageDigest not available" Fixes #74922
1 parent 17ba4ac commit 0262785

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build-tools-internal/src/main/groovy/elasticsearch.fips.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ if (BuildParams.inFipsJvm) {
9292
}
9393
}
9494
project.tasks.withType(Test).configureEach { Test task ->
95+
dependsOn 'fipsResources'
9596
task.systemProperty('javax.net.ssl.trustStorePassword', 'password')
9697
task.systemProperty('javax.net.ssl.keyStorePassword', 'password')
9798
task.systemProperty('javax.net.ssl.trustStoreType', 'BCFKS')

0 commit comments

Comments
 (0)