[Tests] Enable searchable_snapshots for non-snapshot builds (#55151) (#55157)

Fixes https://github.com/elastic/elasticsearch/issues/55050

(cherry picked from commit 13391ceff1cbf6db69706c5f46127b6ff8850a1f)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
This commit is contained in:
Andrei Dan 2020-04-14 16:13:39 +01:00 committed by GitHub
parent 3fbd8b371f
commit d918ef0da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import org.elasticsearch.gradle.test.RestIntegTestTask
import org.elasticsearch.gradle.info.BuildParams
apply plugin: 'elasticsearch.testclusters'
apply plugin: 'elasticsearch.standalone-rest-test'
@ -17,6 +18,9 @@ integTest.runner {
testClusters.integTest {
testDistribution = 'DEFAULT'
if (BuildParams.isSnapshotBuild() == false) {
systemProperty 'es.searchable_snapshots_feature_enabled', 'true'
}
numberOfNodes = 4
setting 'path.repo', repoDir.absolutePath

View File

@ -1558,7 +1558,6 @@ public class TimeSeriesLifecycleActionsIT extends ESRestTestCase {
assertBusy(() -> assertFalse("expected " + index + " to be deleted by ILM", indexExists(index)));
}
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/55050")
public void testSearchableSnapshotAction() throws Exception {
String snapshotRepo = createSnapshotRepo();
createNewSingletonPolicy("cold", new SearchableSnapshotAction(snapshotRepo));