Commit 9481f2c6 authored by dreis2211's avatar dreis2211 Committed by Stephane Nicoll

Remove hardcoded version from VersionOverridingElasticsearchContainer

See gh-20428
parent f1f662e7
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
*/ */
package org.springframework.boot.autoconfigure.data.elasticsearch; package org.springframework.boot.autoconfigure.data.elasticsearch;
import org.elasticsearch.Version;
import org.testcontainers.elasticsearch.ElasticsearchContainer; import org.testcontainers.elasticsearch.ElasticsearchContainer;
/** /**
...@@ -32,7 +33,7 @@ public class VersionOverridingElasticsearchContainer extends ElasticsearchContai ...@@ -32,7 +33,7 @@ public class VersionOverridingElasticsearchContainer extends ElasticsearchContai
/** /**
* Elasticsearch version * Elasticsearch version
*/ */
protected static final String ELASTICSEARCH_VERSION = "7.6.1"; protected static final String ELASTICSEARCH_VERSION = Version.CURRENT.toString();
public VersionOverridingElasticsearchContainer() { public VersionOverridingElasticsearchContainer() {
super(ELASTICSEARCH_IMAGE + ":" + ELASTICSEARCH_VERSION); super(ELASTICSEARCH_IMAGE + ":" + ELASTICSEARCH_VERSION);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment