32 lines
853 B
Groovy
32 lines
853 B
Groovy
import org.elasticsearch.gradle.info.BuildParams
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
dependencies {
|
|
testCompile project(path: xpackModule('searchable-snapshots'), configuration: 'testArtifacts')
|
|
}
|
|
|
|
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'
|
|
}
|
|
}
|