2020-02-09 15:48:09 -05:00
|
|
|
import org.elasticsearch.gradle.info.BuildParams
|
2020-02-06 21:55:01 -05:00
|
|
|
|
[7.x] Convert first 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#60630) (#61855)
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
2020-09-02 12:19:24 -04:00
|
|
|
apply plugin: 'elasticsearch.yaml-rest-test'
|
2020-02-06 21:55:01 -05:00
|
|
|
|
|
|
|
dependencies {
|
[7.x] Convert first 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#60630) (#61855)
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
2020-09-02 12:19:24 -04:00
|
|
|
yamlRestTestImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2020-02-06 21:55:01 -05:00
|
|
|
}
|
|
|
|
|
2020-02-26 09:13:41 -05:00
|
|
|
restResources {
|
|
|
|
restApi {
|
2020-03-19 13:28:59 -04:00
|
|
|
includeCore '_common'
|
2020-02-26 09:13:41 -05:00
|
|
|
includeXpack 'autoscaling'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
[7.x] Convert first 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#60630) (#61855)
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
2020-09-02 12:19:24 -04:00
|
|
|
testClusters.all {
|
2020-02-06 21:55:01 -05:00
|
|
|
testDistribution = 'DEFAULT'
|
2020-02-09 15:48:09 -05:00
|
|
|
if (BuildParams.isSnapshotBuild() == false) {
|
|
|
|
systemProperty 'es.autoscaling_feature_flag_registered', 'true'
|
|
|
|
}
|
2020-02-06 21:55:01 -05:00
|
|
|
setting 'xpack.autoscaling.enabled', 'true'
|
|
|
|
setting 'xpack.security.enabled', 'true'
|
|
|
|
extraConfigFile 'roles.yml', file('autoscaling-roles.yml')
|
|
|
|
user username: 'autoscaling-admin', password: 'autoscaling-admin-password', role: 'superuser'
|
|
|
|
user username: 'autoscaling-user', password: 'autoscaling-user-password', role: 'autoscaling'
|
|
|
|
}
|