mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
skip repository-hdfs integTest in case of fips jvm (#44319)
The repository-hdfs runners need to be disabled it in fips mode. Testing done for all the tasks, dynamic created and static (integTest, integTestHa, integSecureTest, integSecureHaTest)
This commit is contained in:
parent
ec0a0a41db
commit
4c95cc3223
@ -137,7 +137,7 @@ for (String integTestTaskName : ['integTestHa', 'integTestSecure', 'integTestSec
|
||||
description = "Runs rest tests against an elasticsearch cluster with HDFS."
|
||||
dependsOn(project.bundlePlugin)
|
||||
|
||||
if ((project.ext.has('inFipsJvm') && project.ext.inFipsJvm) || disabledIntegTestTaskNames.contains(integTestTaskName)) {
|
||||
if (disabledIntegTestTaskNames.contains(integTestTaskName)) {
|
||||
enabled = false;
|
||||
}
|
||||
|
||||
@ -150,6 +150,7 @@ for (String integTestTaskName : ['integTestHa', 'integTestSecure', 'integTestSec
|
||||
}
|
||||
|
||||
runner {
|
||||
onlyIf { project.inFipsJvm == false }
|
||||
if (integTestTaskName.contains("Ha")) {
|
||||
if (integTestTaskName.contains("Secure")) {
|
||||
Path path = buildDir.toPath()
|
||||
@ -194,7 +195,6 @@ for (String integTestTaskName : ['integTestHa', 'integTestSecure', 'integTestSec
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Determine HDFS Fixture compatibility for the current build environment.
|
||||
boolean fixtureSupported = false
|
||||
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||
@ -223,6 +223,7 @@ if (legalPath == false) {
|
||||
// Always ignore HA integration tests in the normal integration test runner, they are included below as
|
||||
// part of their own HA-specific integration test tasks.
|
||||
integTest.runner {
|
||||
onlyIf { project.inFipsJvm == false }
|
||||
exclude('**/Ha*TestSuiteIT.class')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user