2019-06-20 09:21:29 +03:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
2018-02-23 13:31:28 +01:00
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
2019-06-04 13:50:23 -07:00
|
|
|
testCompile project(':x-pack:plugin:core')
|
2018-02-23 13:31:28 +01:00
|
|
|
testCompile project(path: xpackModule('watcher'), configuration: 'runtime')
|
|
|
|
}
|
|
|
|
|
2018-03-26 09:10:04 +02:00
|
|
|
String slackUrl = System.getenv('slack_url')
|
2018-02-23 13:31:28 +01:00
|
|
|
|
2018-03-26 09:10:04 +02:00
|
|
|
if (!slackUrl) {
|
|
|
|
integTest.enabled = false
|
2018-12-05 14:20:01 +02:00
|
|
|
testingConventions.enabled = false
|
2019-06-20 09:21:29 +03:00
|
|
|
} else {
|
|
|
|
testClusters.integTest {
|
|
|
|
setting 'xpack.security.enabled', 'false'
|
|
|
|
setting 'xpack.monitoring.enabled', 'false'
|
|
|
|
setting 'xpack.ml.enabled', 'false'
|
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
|
|
setting 'logger.org.elasticsearch.xpack.watcher', 'DEBUG'
|
|
|
|
keystore 'xpack.notification.slack.account.test_account.secure_url', slackUrl
|
|
|
|
}
|
2018-02-23 13:31:28 +01:00
|
|
|
}
|