[Test] Fix data-stream rest test failure (#62137) (#62144)

By enabling searchable snapshots for release builds.
This commit is contained in:
Yang Wang 2020-09-09 17:12:53 +10:00 committed by GitHub
parent 14547b14fb
commit 146b2e6b1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import org.elasticsearch.gradle.info.BuildParams
apply plugin: 'elasticsearch.yaml-rest-test'
restResources {
@ -12,6 +14,9 @@ restResources {
testClusters.all {
testDistribution = 'DEFAULT'
if (BuildParams.isSnapshotBuild() == false) {
systemProperty 'es.searchable_snapshots_feature_enabled', 'true'
}
// Data streams is basic, but a few tests test data streams in combination with paid features
setting 'xpack.license.self_generated.type', 'trial'
// disable ILM history, since it disturbs tests using _all