Skip to content

Commit a74bfaf

Browse files
committed
node info unit test
1 parent 043e7ef commit a74bfaf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

java-client/src/test/java/co/elastic/clients/elasticsearch/spec_issues/SpecIssuesTest.java

+7
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ public void i0056_hitsMetadataTotal() throws Exception {
296296
.trackTotalHits(thb -> thb.enabled(false)), JsonData.class);
297297
}
298298

299+
@Test
300+
public void gettingVersionFromNodes() throws Exception {
301+
ElasticsearchTestServer.global().client()
302+
.nodes().info().nodes().entrySet().forEach(node ->
303+
assertNotNull(node.getValue().version()));
304+
}
305+
299306
private <T> T loadRsrc(String res, JsonpDeserializer<T> deser) {
300307
InputStream is = this.getClass().getResourceAsStream(res);
301308
assertNotNull(is, "Resource not found: " + res);

0 commit comments

Comments
 (0)