Browse Source

Fix synthetic source docs test in release build (#87601)

Synthetic source is the first thing we've documented behind the tsdb
feature flag. This adds the feature flag to the docs sub-project for the
release build so the tests will pass.

Closes #87592
Nik Everett 3 years ago
parent
commit
4bae370293
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/build.gradle

+ 3 - 1
docs/build.gradle

@@ -1,4 +1,4 @@
-import org.elasticsearch.gradle.VersionProperties
+import org.elasticsearch.gradle.Version
 import org.elasticsearch.gradle.internal.info.BuildParams
 
 import static org.elasticsearch.gradle.testclusters.TestDistribution.DEFAULT
@@ -92,6 +92,8 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach {
   // TODO: remove this once cname is prepended to transport.publish_address by default in 8.0
   systemProperty 'es.transport.cname_in_publish_address', 'true'
 
+  requiresFeature 'es.index_mode_feature_flag_registered', Version.fromString("8.0.0")
+
   // build the cluster with all plugins
   project.rootProject.subprojects.findAll { it.parent.path == ':plugins' }.each { subproj ->
     /* Skip repositories. We just aren't going to be able to test them so it