Ensure the elasticsearch indexes are initialized before the first request
- Use a flask hook to be sure the index is initialized before performing any action
- Fix the server tests to avoid a side effect with the global application configuration not reset between 2 tests
Related to swh/infra/sysadm-environment#3076 (closed)
Migrated from D5193 (view on Phabricator)