2019-07-01 03:38:56 -04:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
2017-01-04 14:27:53 -05:00
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
2015-11-24 18:49:15 -05:00
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2019-04-15 13:14:43 -04:00
|
|
|
testCompile project(':x-pack:qa')
|
2020-02-26 16:57:10 -05:00
|
|
|
testCompile project(path: ':x-pack:plugin:watcher:qa:rest', configuration: 'testArtifacts')
|
2020-04-17 13:38:01 -04:00
|
|
|
restXpackTestConfig project(path: ':x-pack:plugin:watcher:qa:rest', configuration: 'restXpackTests')
|
2020-02-26 16:57:10 -05:00
|
|
|
}
|
|
|
|
|
2020-02-26 09:13:41 -05:00
|
|
|
restResources {
|
|
|
|
restApi {
|
|
|
|
includeXpack 'watcher', 'security', 'xpack'
|
|
|
|
}
|
2020-03-19 13:29:36 -04:00
|
|
|
restTests {
|
|
|
|
includeXpack 'watcher'
|
|
|
|
}
|
2015-11-24 18:49:15 -05:00
|
|
|
}
|
|
|
|
|
2019-07-01 03:38:56 -04:00
|
|
|
testClusters.integTest {
|
2019-07-15 20:53:05 -04:00
|
|
|
testDistribution = 'DEFAULT'
|
2017-06-23 04:40:31 -04:00
|
|
|
setting 'xpack.ml.enabled', 'false'
|
2018-03-21 23:09:44 -04:00
|
|
|
setting 'xpack.security.enabled', 'true'
|
2017-11-28 07:11:49 -05: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 06:01:23 -05:00
|
|
|
keystore 'xpack.notification.email.account._email.smtp.secure_password', '_passwd'
|
2018-02-12 14:57:04 -05:00
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
2019-07-01 03:38:56 -04: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
|
|
|
}
|