[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.java-rest-test'
|
2019-04-07 23:23:12 -04:00
|
|
|
|
|
|
|
dependencies {
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'default')
|
|
|
|
testImplementation project(path: xpackModule('security'), configuration: 'testArtifacts')
|
|
|
|
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
2019-04-07 23:23:12 -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.javaRestTest {
|
2019-07-15 20:53:05 -04:00
|
|
|
testDistribution = 'DEFAULT'
|
2019-06-18 04:51:20 -04:00
|
|
|
numberOfNodes = 2
|
2019-04-07 23:23:12 -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
|
|
|
extraConfigFile 'http.key', file('src/javaRestTest/resources/ssl/http.key')
|
|
|
|
extraConfigFile 'http.crt', file('src/javaRestTest/resources/ssl/http.crt')
|
|
|
|
extraConfigFile 'transport.key', file('src/javaRestTest/resources/ssl/transport.key')
|
|
|
|
extraConfigFile 'transport.crt', file('src/javaRestTest/resources/ssl/transport.crt')
|
|
|
|
extraConfigFile 'ca.crt', file('src/javaRestTest/resources/ssl/ca.crt')
|
2019-04-07 23:23:12 -04:00
|
|
|
|
|
|
|
setting 'xpack.ml.enabled', 'false'
|
|
|
|
setting 'xpack.license.self_generated.type', 'basic'
|
|
|
|
setting 'xpack.security.http.ssl.enabled', 'true'
|
|
|
|
setting 'xpack.security.http.ssl.certificate', 'http.crt'
|
|
|
|
setting 'xpack.security.http.ssl.key', 'http.key'
|
|
|
|
setting 'xpack.security.http.ssl.key_passphrase', 'http-password'
|
2019-06-18 04:51:20 -04:00
|
|
|
setting 'xpack.security.http.ssl.certificate_authorities', 'ca.crt'
|
2019-04-07 23:23:12 -04:00
|
|
|
setting 'xpack.security.transport.ssl.enabled', 'true'
|
|
|
|
setting 'xpack.security.transport.ssl.certificate', 'transport.crt'
|
|
|
|
setting 'xpack.security.transport.ssl.key', 'transport.key'
|
|
|
|
setting 'xpack.security.transport.ssl.key_passphrase', 'transport-password'
|
|
|
|
setting 'xpack.security.transport.ssl.certificate_authorities', 'ca.crt'
|
|
|
|
}
|
|
|
|
|