Browse Source

Enable searchable snapshots for release tests (#54987)

Mark Vieira 5 years ago
parent
commit
1ad2905033
1 changed files with 8 additions and 0 deletions
  1. 8 0
      x-pack/plugin/searchable-snapshots/build.gradle

+ 8 - 0
x-pack/plugin/searchable-snapshots/build.gradle

@@ -1,3 +1,5 @@
+import org.elasticsearch.gradle.info.BuildParams
+
 evaluationDependsOn(xpackModule('core'))
 evaluationDependsOn(xpackModule('core'))
 
 
 apply plugin: 'elasticsearch.esplugin'
 apply plugin: 'elasticsearch.esplugin'
@@ -40,3 +42,9 @@ task testJar(type: Jar) {
 artifacts {
 artifacts {
   testArtifacts testJar
   testArtifacts testJar
 }
 }
+
+test {
+  if (BuildParams.isSnapshotBuild() == false) {
+    systemProperty 'es.searchable_snapshots_feature_enabled', 'true'
+  }
+}