Enable searchable snapshots for release tests (#54987)

This commit is contained in:
Mark Vieira 2020-04-08 14:40:40 -07:00
parent 2b970e2a8d
commit 1552f2fa3e
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
import org.elasticsearch.gradle.info.BuildParams
evaluationDependsOn(xpackModule('core')) evaluationDependsOn(xpackModule('core'))
apply plugin: 'elasticsearch.esplugin' apply plugin: 'elasticsearch.esplugin'
@ -40,3 +42,9 @@ task testJar(type: Jar) {
artifacts { artifacts {
testArtifacts testJar testArtifacts testJar
} }
test {
if (BuildParams.isSnapshotBuild() == false) {
systemProperty 'es.searchable_snapshots_feature_enabled', 'true'
}
}