OpenSearch/x-pack/plugin/ccr/qa/rest/build.gradle

27 lines
976 B
Groovy

apply plugin: 'elasticsearch.yaml-rest-test'
restResources {
restApi {
includeCore '_common', 'cluster', 'nodes', 'indices', 'index', 'info'
includeXpack 'ccr'
}
}
dependencies {
yamlRestTestImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
}
testClusters.all {
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.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'
}