Skip to content

Commit

Permalink
node info unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta committed May 31, 2024
1 parent 131c604 commit ccae93f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,13 @@ public void i0056_hitsMetadataTotal() throws Exception {
.trackTotalHits(thb -> thb.enabled(false)), JsonData.class);
}

@Test
public void gettingVersionFromNodes() throws Exception {
ElasticsearchTestServer.global().client()
.nodes().info().nodes().entrySet().forEach(node ->
assertNotNull(node.getValue().version()));
}

private <T> T loadRsrc(String res, JsonpDeserializer<T> deser) {
InputStream is = this.getClass().getResourceAsStream(res);
assertNotNull(is, "Resource not found: " + res);
Expand Down

0 comments on commit ccae93f

Please sign in to comment.