mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
Test clusters currently has its own set of logic for dealing with finding different versions of Elasticsearch, downloading them, and extracting them. This commit converts testclusters to use the DistributionDownloadPlugin.
31 lines
1.2 KiB
Groovy
31 lines
1.2 KiB
Groovy
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
apply plugin: 'elasticsearch.standalone-test'
|
|
|
|
dependencies {
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
testCompile project(path: xpackModule('ccr'), configuration: 'runtime')
|
|
}
|
|
|
|
task restTest(type: RestIntegTestTask) {
|
|
mustRunAfter(precommit)
|
|
}
|
|
|
|
testClusters.restTest {
|
|
testDistribution = 'DEFAULT'
|
|
// Disable assertions in FollowingEngineAssertions, otherwise an AssertionError is thrown before
|
|
// indexing a document directly in a follower index. In a rest test we like to test the exception
|
|
// that is thrown in production when indexing a document directly in a follower index.
|
|
jvmArgs '-da:org.elasticsearch.xpack.ccr.index.engine.FollowingEngineAssertions'
|
|
setting 'xpack.ml.enabled', 'false'
|
|
setting 'xpack.monitoring.enabled', 'false'
|
|
setting 'xpack.security.enabled', 'true'
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
// TODO: reduce the need for superuser here
|
|
user username:'ccr-user', password: 'ccr-user-password', role: 'superuser'
|
|
}
|
|
|
|
check.dependsOn restTest
|
|
test.enabled = false
|