2018-09-15 10:18:59 -04:00
|
|
|
import org.elasticsearch.gradle.test.RestIntegTestTask
|
|
|
|
|
2019-05-29 09:16:04 -04:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
2018-09-15 10:18:59 -04:00
|
|
|
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)
|
|
|
|
}
|
|
|
|
|
2019-05-29 09:16:04 -04:00
|
|
|
testClusters.restTest {
|
|
|
|
distribution = 'default'
|
2019-01-10 09:54:34 -05:00
|
|
|
// 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.
|
2019-05-29 09:16:04 -04:00
|
|
|
jvmArgs '-da:org.elasticsearch.xpack.ccr.index.engine.FollowingEngineAssertions'
|
2018-09-15 10:18:59 -04:00
|
|
|
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
|
2019-05-29 09:16:04 -04:00
|
|
|
user username:'ccr-user', password: 'ccr-user-password', role: 'superuser'
|
2018-09-15 10:18:59 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
check.dependsOn restTest
|
2019-04-09 14:52:50 -04:00
|
|
|
test.enabled = false
|