Skip to content

Commit 40bd271

Browse files
committed
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.
1 parent 8b851bf commit 40bd271

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ buildRestTests.expectedUnconvertedCandidates = [
4242
testClusters.integTest {
4343
if (singleNode().testDistribution == DEFAULT) {
4444
setting 'xpack.license.self_generated.type', 'trial'
45+
if ("false".equals(System.getProperty("build.snapshot")) == false) {
46+
setting 'xpack.autoscaling.enabled', 'true'
47+
}
4548
}
4649

4750
// enable regexes in painless so our tests don't complain about example snippets that use them

0 commit comments

Comments
 (0)