Skip to content

Commit 146b2e6

Browse files
authored
[Test] Fix data-stream rest test failure (#62137) (#62144)
By enabling searchable snapshots for release builds.
1 parent 14547b1 commit 146b2e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

x-pack/plugin/data-streams/qa/rest/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.elasticsearch.gradle.info.BuildParams
2+
13
apply plugin: 'elasticsearch.yaml-rest-test'
24

35
restResources {
@@ -12,6 +14,9 @@ restResources {
1214

1315
testClusters.all {
1416
testDistribution = 'DEFAULT'
17+
if (BuildParams.isSnapshotBuild() == false) {
18+
systemProperty 'es.searchable_snapshots_feature_enabled', 'true'
19+
}
1520
// Data streams is basic, but a few tests test data streams in combination with paid features
1621
setting 'xpack.license.self_generated.type', 'trial'
1722
// disable ILM history, since it disturbs tests using _all

0 commit comments

Comments
 (0)