File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/test/java/com/madadipouya/elasticsearch/springdata Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7474 <dependency >
7575 <groupId >org.testcontainers</groupId >
7676 <artifactId >testcontainers</artifactId >
77- <version >1.11.2 </version >
77+ <version >1.17.3 </version >
7878 </dependency >
7979 <dependency >
8080 <groupId >org.testcontainers</groupId >
8181 <artifactId >junit-jupiter</artifactId >
82- <version >1.11 .2</version >
82+ <version >1.17 .2</version >
8383 <scope >test</scope >
8484 </dependency >
8585 <dependency >
8686 <groupId >org.testcontainers</groupId >
8787 <artifactId >elasticsearch</artifactId >
88- <version >1.11.2 </version >
88+ <version >1.17.3 </version >
8989 <scope >test</scope >
9090 </dependency >
9191 </dependencies >
Original file line number Diff line number Diff line change 11package com .madadipouya .elasticsearch .springdata ;
22
33import org .testcontainers .elasticsearch .ElasticsearchContainer ;
4+ import org .testcontainers .utility .DockerImageName ;
45
56public class BookElasticsearchContainer extends ElasticsearchContainer {
67
@@ -11,7 +12,8 @@ public class BookElasticsearchContainer extends ElasticsearchContainer {
1112 private static final String ELASTIC_SEARCH = "elasticsearch" ;
1213
1314 public BookElasticsearchContainer () {
14- super (ELASTIC_SEARCH_DOCKER );
15+ super (DockerImageName .parse (ELASTIC_SEARCH_DOCKER )
16+ .asCompatibleSubstituteFor ("docker.elastic.co/elasticsearch/elasticsearch" ));
1517 this .addFixedExposedPort (9200 , 9200 );
1618 this .addFixedExposedPort (9300 , 9300 );
1719 this .addEnv (CLUSTER_NAME , ELASTIC_SEARCH );
You can’t perform that action at this time.
0 commit comments