Jake Landis b4179a8814
[7.x] Refactor watcher tests (#52799) (#52844)
This PR moves the majority of the Watcher REST tests under
the Watcher x-pack plugin.

Specifically, moves the Watcher tests from:
x-pack/plugin/test
x-pack/qa/smoke-test-watcher
x-pack/qa/smoke-test-watcher-with-security
x-pack/qa/smoke-test-monitoring-with-watcher

to:
x-pack/plugin/watcher/qa/rest (/test and /qa/smoke-test-watcher)
x-pack/plugin/watcher/qa/with-security
x-pack/plugin/watcher/qa/with-monitoring

Additionally, this disables Watcher from the main
x-pack test cluster and consolidates the stop/start logic
for the tests listed.

No changes to the tests (beyond moving them) are included.

3rd party tests and doc tests (which also touch Watcher)
are not included in the changes here.
2020-02-26 15:57:10 -06:00

41 lines
757 B
YAML

admin:
cluster:
- all
indices:
- names: '*'
privileges:
- all
watcher_manager:
cluster:
- manage
indices:
- names: '.watch*'
privileges:
- all
# this index gets created by one of the watcher yaml tests
# and is needed for a search transform, so we have to create it as part of the test
- names: 'my_test_index'
privileges:
- all
run_as:
- powerless_user
- watcher_manager
- x_pack_rest_user
watcher_monitor:
cluster:
- monitor
indices:
- names: '.watcher-history-*'
privileges:
- read
crappy_role:
cluster:
- cluster:monitor/nodes/info
- cluster:monitor/health
- cluster:monitor/nodes/liveness
- cluster:monitor/main