2020-04-07 07:28:53 -04:00
|
|
|
import org.elasticsearch.gradle.info.BuildParams
|
|
|
|
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(path: xpackModule('searchable-snapshots'), configuration: 'testArtifacts')
|
2020-04-07 07:28:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
final File repoDir = file("$buildDir/testclusters/repo")
|
|
|
|
|
|
|
|
integTest.runner {
|
|
|
|
systemProperty 'tests.path.repo', repoDir
|
|
|
|
}
|
|
|
|
|
|
|
|
testClusters.integTest {
|
|
|
|
testDistribution = 'DEFAULT'
|
|
|
|
if (BuildParams.isSnapshotBuild() == false) {
|
|
|
|
systemProperty 'es.searchable_snapshots_feature_enabled', 'true'
|
|
|
|
}
|
|
|
|
setting 'path.repo', repoDir.absolutePath
|
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
|
|
}
|
|
|
|
|
|
|
|
restResources {
|
|
|
|
restApi {
|
|
|
|
includeCore 'indices', 'search', 'bulk', 'snapshot', 'nodes', '_common'
|
|
|
|
includeXpack 'searchable_snapshots'
|
|
|
|
}
|
|
|
|
}
|