-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Distributed Coordination/Discovery-PluginsAnything related to our integration plugins with EC2, GCP and AzureAnything related to our integration plugins with EC2, GCP and Azure>bug>testIssues or PRs that are addressing/adding testsIssues or PRs that are addressing/adding testsv6.6.0v7.0.0-beta1
Description
The Ec2NetworkTests sneakily don't assert much of anything. They look like:
NetworkService networkService = new NetworkService(Collections.singletonList(new Ec2NameResolver(nodeSettings)));
// TODO we need to replace that with a mock. For now we check the URL we are supposed to reach.
try {
networkService.resolveBindHostAddresses(null);
// ------- See how there isn't a fail here?!
} catch (IOException e) {
assertThat(e.getMessage(), containsString("local-ipv4"));
}
It looks like they always just fall out of the catch statement, asserting nothing in particular. This seem bad.
Metadata
Metadata
Assignees
Labels
:Distributed Coordination/Discovery-PluginsAnything related to our integration plugins with EC2, GCP and AzureAnything related to our integration plugins with EC2, GCP and Azure>bug>testIssues or PRs that are addressing/adding testsIssues or PRs that are addressing/adding testsv6.6.0v7.0.0-beta1