Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Today we use a special unicast hosts provider, the MockUncasedHostsProvider,
in many integration tests, to deal with the dynamic nature of the allocation of
ports to nodes. However #33241 allows us to use file-based discovery to achieve
the same goal, so the special test-only MockUncasedHostsProvider is no longer
required.

This change removes MockUncasedHostProvider and replaces it with file-based
discovery in tests based on EsIntegTestCase.

This is simply a backport of #33554 to 6.x, opened as a separate PR as 6.x is currently not passing CI.

Today we use a special unicast hosts provider, the `MockUncasedHostsProvider`,
in many integration tests, to deal with the dynamic nature of the allocation of
ports to nodes. However elastic#33241 allows us to use file-based discovery to achieve
the same goal, so the special test-only `MockUncasedHostsProvider` is no longer
required.

This change removes `MockUncasedHostProvider` and replaces it with file-based
discovery in tests based on `EsIntegTestCase`.
@DaveCTurner DaveCTurner added >non-issue :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v6.5.0 labels Sep 13, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@DaveCTurner DaveCTurner merged commit 00d07ca into elastic:6.x Sep 18, 2018
@DaveCTurner DaveCTurner deleted the 2018-09-13-6.x-file-based-discovery-in-tests branch September 18, 2018 12:46
@DaveCTurner
Copy link
Contributor Author

Merged to 6.x now that it's passing CI. See #33554 for review comments etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >non-issue v6.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants