Skip to content

Commit

Permalink
Add synonyms feature for test clusters
Browse files Browse the repository at this point in the history
For snapshots builds we automatically enable all feature flags,
but for release builds they need to be explicitly added to
test clusters for tests.
This PR does it for synonyms feature.

Closes elastic#96641, elastic#97177
  • Loading branch information
mayya-sharipova committed Jul 3, 2023
1 parent c6c31f9 commit 0e37f0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rest-api-spec/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.elasticsearch.gradle.Version

apply plugin: 'elasticsearch.build'
apply plugin: 'elasticsearch.publish'
apply plugin: 'elasticsearch.rest-resources'
Expand Down Expand Up @@ -37,6 +39,10 @@ dependencies {
clusterModules project(":modules:reindex")
}

testClusters.configureEach {
requiresFeature 'es.synonyms_feature_flag_enabled', Version.fromString("8.9.0")
}

tasks.named("yamlRestTestV7CompatTransform").configure { task ->

task.skipTestsByFilePattern("**/cat*/*.yml", "Cat API are meant to be consumed by humans, so will not be supported by Compatible REST API")
Expand Down

0 comments on commit 0e37f0f

Please sign in to comment.