Browse Source

Enable autoscaling in snapshot docs tests (#51474)

This commit enables autoscaling in docs tests based on snapshot
builds. This is done so that when the API docs are added to the docs,
then the cluster will have been started to enable autoscaling so these
APIs are available for testing.
Jason Tedor 5 years ago
parent
commit
038f033b50
1 changed files with 3 additions and 0 deletions
  1. 3 0
      docs/build.gradle

+ 3 - 0
docs/build.gradle

@@ -42,6 +42,9 @@ buildRestTests.expectedUnconvertedCandidates = [
 testClusters.integTest {
   if (singleNode().testDistribution == DEFAULT) {
     setting 'xpack.license.self_generated.type', 'trial'
+    if ("false".equals(System.getProperty("build.snapshot")) == false) {
+      setting 'xpack.autoscaling.enabled', 'true'
+    }
   }
 
   // enable regexes in painless so our tests don't complain about example snippets that use them