[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 11:20:55 -05:00
|
|
|
apply plugin: 'elasticsearch.yaml-rest-test'
|
|
|
|
apply plugin: 'elasticsearch.java-rest-test'
|
2015-11-24 18:49:15 -05: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 11:20:55 -05:00
|
|
|
yamlRestTestImplementation project(path: ':x-pack:plugin:watcher:qa:common')
|
|
|
|
javaRestTestImplementation project(path: ':x-pack:plugin:watcher:qa:common')
|
|
|
|
javaRestTestImplementation project(':x-pack:qa')
|
|
|
|
yamlRestTestImplementation project(':x-pack:qa')
|
2020-04-17 12:38:01 -05:00
|
|
|
restXpackTestConfig project(path: ':x-pack:plugin:watcher:qa:rest', configuration: 'restXpackTests')
|
2020-02-26 15:57:10 -06:00
|
|
|
}
|
|
|
|
|
2020-02-26 08:13:41 -06:00
|
|
|
restResources {
|
|
|
|
restApi {
|
|
|
|
includeXpack 'watcher', 'security', 'xpack'
|
|
|
|
}
|
2020-03-19 12:29:36 -05:00
|
|
|
restTests {
|
|
|
|
includeXpack 'watcher'
|
|
|
|
}
|
2015-11-24 18:49:15 -05: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 11:20:55 -05:00
|
|
|
testClusters.all {
|
2019-07-15 17:53:05 -07:00
|
|
|
testDistribution = 'DEFAULT'
|
2017-06-23 10:40:31 +02:00
|
|
|
setting 'xpack.ml.enabled', 'false'
|
2018-03-21 21:09:44 -06:00
|
|
|
setting 'xpack.security.enabled', 'true'
|
2017-11-28 13:11:49 +01:00
|
|
|
// settings to test settings filtering on
|
|
|
|
setting 'xpack.notification.email.account._email.smtp.host', 'host.domain'
|
|
|
|
setting 'xpack.notification.email.account._email.smtp.port', '587'
|
|
|
|
setting 'xpack.notification.email.account._email.smtp.user', '_user'
|
2019-11-14 11:01:23 +00:00
|
|
|
keystore 'xpack.notification.email.account._email.smtp.secure_password', '_passwd'
|
2018-02-12 12:57:04 -07:00
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
2019-07-01 10:38:56 +03:00
|
|
|
extraConfigFile 'roles.yml', file('roles.yml')
|
|
|
|
user username: "test_admin", password: "x-pack-test-password"
|
|
|
|
user username: "x_pack_rest_user", password: "x-pack-test-password", role: "watcher_manager"
|
|
|
|
user username: "watcher_manager", password: "x-pack-test-password", role: "watcher_manager"
|
|
|
|
user username: "powerless_user", password: "x-pack-test-password", role: "crappy_role"
|
2015-11-24 18:49:15 -05:00
|
|
|
}
|