mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
For 1/2 the plugins in x-pack, the integTest task is now a no-op and all of the tests are now executed via a test, yamlRestTest, javaRestTest, or internalClusterTest. This includes the following projects: async-search, autoscaling, ccr, enrich, eql, frozen-indicies, data-streams, graph, ilm, mapper-constant-keyword, mapper-flattened, ml A few of the more specialized qa projects within these plugins have not been changed with this PR due to additional complexity which should be addressed separately. A follow up PR will address the remaining x-pack plugins (this PR is big enough as-is). related: #61802 related: #56841 related: #59939 related: #55896
27 lines
976 B
Groovy
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'
|
|
}
|
|
|