Merge pull request #20428 from dreis2211

* pr/20428:
  Remove hardcoded version from VersionOverridingElasticsearchContainer

Closes gh-20428
pull/20434/head
Stephane Nicoll 5 years ago
commit 067accb3a8

@ -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
/** /**
* 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);

Loading…
Cancel
Save