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.
This commit is contained in:
Jason Tedor 2020-01-27 09:48:40 -05:00
parent 8b851bfc33
commit 40bd271f53
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 3 additions and 0 deletions

View File

@ -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