mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
A ProjectResolver should be able to fetch the ProjectId without the need of a cluster state. This PR changes the method to take no argument and fixes cascading changes. It also adds a separate ProjectIdResolver interface to host the new no-arg getProjectId method. The existing ProjectResolver interface extends the new interface. The major impact of the change is for tests and test helpers. It has been made more obvious that most tests rely on the default project ID. Previously this was hidden by the no arg `singleProjectOnly()` that just pops the only project from cluster state. This only project is the default project anyway in the current tests. The change just made this fact explicit which I think is not a bad thing. We can definitely tidy up the tests and test helpers once more pieces fall into places. Happy to take suggestions. |
||
---|---|---|
.. | ||
src | ||
build.gradle |