[7.x] Convert second 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#61802) (#61856)
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:
security, spatial, stack, transform, vecotrs, voting-only-node, and watcher.
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.
related: #60630
related: #56841
related: #59939
related: #55896
2020-09-02 12:20:55 -04:00
|
|
|
apply plugin: 'elasticsearch.yaml-rest-test'
|
2020-07-01 11:32:32 -04:00
|
|
|
|
|
|
|
dependencies {
|
[7.x] Convert second 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#61802) (#61856)
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:
security, spatial, stack, transform, vecotrs, voting-only-node, and watcher.
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.
related: #60630
related: #56841
related: #59939
related: #55896
2020-09-02 12:20:55 -04:00
|
|
|
yamlRestTestImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2020-07-01 11:32:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
restResources {
|
|
|
|
restApi {
|
|
|
|
includeCore '_common', 'cluster', 'indices', 'index', 'snapshot'
|
2020-07-23 09:10:54 -04:00
|
|
|
includeXpack 'ilm', 'slm', 'stack', 'indices'
|
2020-07-01 11:32:32 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def clusterCredentials = [username: System.getProperty('tests.rest.cluster.username', 'test_admin'),
|
|
|
|
password: System.getProperty('tests.rest.cluster.password', 'x-pack-test-password')]
|
|
|
|
|
[7.x] Convert second 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#61802) (#61856)
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:
security, spatial, stack, transform, vecotrs, voting-only-node, and watcher.
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.
related: #60630
related: #56841
related: #59939
related: #55896
2020-09-02 12:20:55 -04:00
|
|
|
yamlRestTest {
|
2020-08-04 08:46:32 -04:00
|
|
|
systemProperty 'tests.rest.cluster.username', clusterCredentials.username
|
|
|
|
systemProperty 'tests.rest.cluster.password', clusterCredentials.password
|
2020-07-01 11:32:32 -04:00
|
|
|
}
|
|
|
|
|
[7.x] Convert second 1/2 x-pack plugins from integTest to [yaml | java]RestTest or internalClusterTest (#61802) (#61856)
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:
security, spatial, stack, transform, vecotrs, voting-only-node, and watcher.
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.
related: #60630
related: #56841
related: #59939
related: #55896
2020-09-02 12:20:55 -04:00
|
|
|
testClusters.all {
|
2020-07-01 11:32:32 -04:00
|
|
|
testDistribution = 'DEFAULT'
|
|
|
|
setting 'xpack.ml.enabled', 'false'
|
|
|
|
setting 'xpack.security.enabled', 'true'
|
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
|
|
user clusterCredentials
|
|
|
|
}
|