From 40bd271f5398c78f063b928e25fe8a3728a4fdf7 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Mon, 27 Jan 2020 09:48:40 -0500 Subject: [PATCH] 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. --- docs/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/build.gradle b/docs/build.gradle index 52417218c00..85445149362 100644 --- a/docs/build.gradle +++ b/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