mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
f816b2e850
Created a smoke-test-monitoring-with-watcher project that runs REST tests with watcher enabled to ensure that the proper watcher are installed either when the local or the HTTP exporter are set up. Also removed two more watcher imports in the tests. Relates elastic/x-pack-elasticsearch#2925 Original commit: elastic/x-pack-elasticsearch@0a9abc3185
26 lines
1.1 KiB
Groovy
26 lines
1.1 KiB
Groovy
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
dependencies {
|
|
testCompile project(path: ':x-pack-elasticsearch:plugin', configuration: 'runtime')
|
|
}
|
|
|
|
integTestCluster {
|
|
plugin ':x-pack-elasticsearch:plugin'
|
|
setting 'xpack.monitoring.enabled', 'true'
|
|
setting 'xpack.watcher.enabled', 'true'
|
|
setting 'xpack.security.enabled', 'false'
|
|
setting 'xpack.ml.enabled', 'false'
|
|
|
|
// exporter settings are configured dynamically in our tests
|
|
// configure a local exporter, the HTTP exporter is configured via dynamic settings change
|
|
//setting 'xpack.monitoring.exporters.my_local.type', 'local'
|
|
//setting 'xpack.monitoring.exporters.my_local.index.name.time_format', 'YYYY'
|
|
//setting 'xpack.monitoring.exporters.my_http.type', 'http'
|
|
//setting 'xpack.monitoring.exporters.my_http.host', 'http'
|
|
//setting 'xpack.monitoring.exporters.my_http.index.name.time_format', 'YYYY-MM'
|
|
// one of the exporters should configure cluster alerts
|
|
// setting 'xpack.monitoring.exporters.my_http.cluster_alerts.management.enabled', 'true'
|
|
}
|
|
|