mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
Introduce explicit API for configure test cluster feature flags (#83876)
This commit is contained in:
parent
58630383b5
commit
64929dc5df
30 changed files with 199 additions and 110 deletions
|
@ -6,6 +6,8 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
|
||||
import org.elasticsearch.gradle.Version
|
||||
import org.elasticsearch.gradle.internal.info.BuildParams
|
||||
import org.elasticsearch.gradle.internal.test.RestIntegTestTask
|
||||
|
||||
|
@ -26,9 +28,7 @@ tasks.register('remote-cluster', RestIntegTestTask) {
|
|||
}
|
||||
|
||||
testClusters.configureEach {
|
||||
if (BuildParams.isSnapshotBuild() == false) {
|
||||
systemProperty 'es.index_mode_feature_flag_registered', 'true'
|
||||
}
|
||||
requiresFeature 'es.index_mode_feature_flag_registered', Version.fromString("8.0.0")
|
||||
}
|
||||
|
||||
testClusters.matching{ it.name == 'remote-cluster' }.configureEach {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue