From 0e37f0fc7ea10af0f739552edef017c47c8b4059 Mon Sep 17 00:00:00 2001 From: Mayya Sharipova Date: Mon, 3 Jul 2023 12:30:17 -0400 Subject: [PATCH] Add synonyms feature for test clusters 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 #96641, #97177 --- rest-api-spec/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rest-api-spec/build.gradle b/rest-api-spec/build.gradle index 767699fb591c3..aefe2a9485f48 100644 --- a/rest-api-spec/build.gradle +++ b/rest-api-spec/build.gradle @@ -1,3 +1,5 @@ +import org.elasticsearch.gradle.Version + apply plugin: 'elasticsearch.build' apply plugin: 'elasticsearch.publish' apply plugin: 'elasticsearch.rest-resources' @@ -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")