From ccae93f2120c99921cd377aefb088937378a039f Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Fri, 31 May 2024 16:42:52 +0200 Subject: [PATCH] node info unit test --- .../clients/elasticsearch/spec_issues/SpecIssuesTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/java-client/src/test/java/co/elastic/clients/elasticsearch/spec_issues/SpecIssuesTest.java b/java-client/src/test/java/co/elastic/clients/elasticsearch/spec_issues/SpecIssuesTest.java index faf2da345..b38529f9f 100644 --- a/java-client/src/test/java/co/elastic/clients/elasticsearch/spec_issues/SpecIssuesTest.java +++ b/java-client/src/test/java/co/elastic/clients/elasticsearch/spec_issues/SpecIssuesTest.java @@ -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 loadRsrc(String res, JsonpDeserializer deser) { InputStream is = this.getClass().getResourceAsStream(res); assertNotNull(is, "Resource not found: " + res);