From 3b08170cad51b95199988e1442ba44f4fb8a599b Mon Sep 17 00:00:00 2001 From: Pascal Essiembre Date: Sun, 18 Apr 2021 16:43:56 -0400 Subject: [PATCH] Updated Elasticsearch REST client to 7.12.0. #42 --- CHANGES.xml | 3 +++ pom.xml | 7 ++++--- .../elasticsearch/ElasticsearchCommitterTest.java | 9 ++++----- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CHANGES.xml b/CHANGES.xml index 6b71aaa..0886391 100644 --- a/CHANGES.xml +++ b/CHANGES.xml @@ -12,6 +12,9 @@ Added back "typeName" support for backward compatibility with older versions of Elasticsearch (lower than 7.0). + + Maven dependency updates: Elasticsearch REST client 7.12.0. + diff --git a/pom.xml b/pom.xml index 41998c3..647fd69 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,8 @@ Elasticsearch implementation of Norconex Committer. - 7.8.1 + 7.12.0 + 1.15.2 2013 @@ -69,13 +70,13 @@ org.testcontainers junit-jupiter - 1.14.3 + ${testcontainers.version} test org.testcontainers elasticsearch - 1.14.3 + ${testcontainers.version} test diff --git a/src/test/java/com/norconex/committer/elasticsearch/ElasticsearchCommitterTest.java b/src/test/java/com/norconex/committer/elasticsearch/ElasticsearchCommitterTest.java index 296ff0b..213cedd 100644 --- a/src/test/java/com/norconex/committer/elasticsearch/ElasticsearchCommitterTest.java +++ b/src/test/java/com/norconex/committer/elasticsearch/ElasticsearchCommitterTest.java @@ -65,7 +65,7 @@ class ElasticsearchCommitterTest { private static final Logger LOG = LoggerFactory.getLogger( ElasticsearchCommitterTest.class); - private static final String TEST_ES_VERSION = "7.8.1"; + private static final String TEST_ES_VERSION = "7.12.0"; private static final String TEST_INDEX = "tests"; private static final String TEST_ID = "1"; private static final String TEST_CONTENT = "This is test content."; @@ -78,10 +78,9 @@ class ElasticsearchCommitterTest { @Container static ElasticsearchContainer container = new ElasticsearchContainer( - new DockerImageName( - "docker.elastic.co/elasticsearch/elasticsearch", - TEST_ES_VERSION).toString()); - + DockerImageName.parse( + "docker.elastic.co/elasticsearch/elasticsearch") + .withTag(TEST_ES_VERSION)); private static RestClient restClient;