diff --git a/README.md b/README.md index 897483a..816b5f5 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ I believe it could be beneficial for many, so I've made the code available here. You're welcome to contribute your own examples if you'd like. -This repository is tested against Elasticsearch 8.16.0. +This repository is tested against Elasticsearch 8.16.1. We automatically start a Docker image using the [Elasticsearch module for TestContainers](https://www.testcontainers.org/modules/elasticsearch/). diff --git a/pom.xml b/pom.xml index 9cea8fe..fe92257 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ - 8.16.0 + 8.16.1 2.18.1 2.24.1 2.0.16 diff --git a/src/test/java/fr/pilato/test/elasticsearch/hlclient/EsClientIT.java b/src/test/java/fr/pilato/test/elasticsearch/hlclient/EsClientIT.java index 1a9a0be..dca913f 100644 --- a/src/test/java/fr/pilato/test/elasticsearch/hlclient/EsClientIT.java +++ b/src/test/java/fr/pilato/test/elasticsearch/hlclient/EsClientIT.java @@ -938,9 +938,7 @@ void esql() throws IOException, SQLException { } // Using the JDBC ResultSet ES|QL API - // And this is now failing because of https://github.com/elastic/elasticsearch-java/pull/903 try (ResultSet resultSet = client.esql().query(ResultSetEsqlAdapter.INSTANCE, query)) { - fail("https://github.com/elastic/elasticsearch-java/pull/903 have been fixed. Update the code."); assertTrue(resultSet.next()); assertEquals("David", resultSet.getString(1)); } catch (JsonpMappingException e) { @@ -948,16 +946,10 @@ void esql() throws IOException, SQLException { } // Using the Object ES|QL API - // And this is now failing because of https://github.com/elastic/elasticsearch-java/pull/903 - try { - Iterable persons = client.esql().query(ObjectsEsqlAdapter.of(Person.class), query); - fail("https://github.com/elastic/elasticsearch-java/pull/903 have been fixed. Update the code."); - for (Person person : persons) { - assertNull(person.getId()); - assertNotNull(person.getName()); - } - } catch (JsonpMappingException e) { - // This is expected as we have this issue https://github.com/elastic/elasticsearch-java/pull/903 + Iterable persons = client.esql().query(ObjectsEsqlAdapter.of(Person.class), query); + for (Person person : persons) { + assertNull(person.getId()); + assertNotNull(person.getName()); } }