Alexander Reelsen 4bf5d9536a Tests: Remove @ClusterScope tests, create REST tests (elastic/x-pack-elasticsearch#2131)
Replacing integration tests with rest tests and unit tests, thus removing integration tests that require start of a new cluster. Removing unused testing methods

Original commit: elastic/x-pack-elasticsearch@265966d80c
2017-08-01 14:15:36 +02:00

40 lines
734 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
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