OpenSearch/qa
Ali Beyad 4a001706e7 Simplifies security index state changes and template/mapping updates (elastic/x-pack-elasticsearch#551)
Currently, both the NativeUsersStore and NativeRolesStore can undergo
multiple state transitions. This is done primarily to check if the
security index is usable before it proceeds. However, such checks are
only needed for the tests, because if the security index is unavailable
when it is needed, the downstream actions invoked by the
NativeUsersStore and NativeRolesStore will throw the appropriate
exceptions notifying of that condition. In addition, both the
NativeUsersStore and NativeRolesStore had much duplicate code that
listened for cluster state changes and made the exact same state
transitions.

This commit removes the complicated state transitions in both classes
and enables both classes to use the SecurityTemplateService to monitor
all of the security index lifecycle changes they need to be aware of.

This commit also moves the logic for determining if the security index
needs template and/or mapping updates to the SecurityLifecycleService,
and makes the NativeRealmMigrator solely responsible for applying the
updates.

Original commit: elastic/x-pack-elasticsearch@b31d144597
2017-02-23 13:05:39 -05:00
..
audit-tests Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
core-rest-tests-with-security Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
ml-basic-multi-node Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
ml-disabled Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
ml-no-bootstrap-tests Rename x-pack project names to new names with split repo 2017-02-10 11:02:42 -08:00
ml-single-node-tests Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
reindex-tests-with-security Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
rolling-upgrade Simplifies security index state changes and template/mapping updates (elastic/x-pack-elasticsearch#551) 2017-02-23 13:05:39 -05:00
security-client-tests Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
security-example-realm Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
security-migrate-tests Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-graph-with-security Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-monitoring-with-security Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-plugins Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-plugins-ssl Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-security-with-mustache Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-watcher Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-watcher-with-mustache Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-watcher-with-painless Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
smoke-test-watcher-with-security Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
tribe-node-tests-with-security Moved directories around 2016-09-29 12:03:14 +02:00
tribe-tests-with-license Build: Convert integ test dsl to new split cluster/runner dsl 2017-02-22 00:56:52 -08:00
vagrant Rename x-pack project names to new names with split repo 2017-02-10 11:02:42 -08:00
build.gradle Migrates QA files 2017-02-08 16:58:55 +00:00