Skip to content

Commit b150a55

Browse files
authored
Disable index auto-creation by ElasticSearch (#556)
1 parent 6dd82ad commit b150a55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/org/gridsuite/study/server/utils/elasticsearch/EmbeddedElasticsearch.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public void postConstruct() {
4141
envMap.put("xpack.security.enabled", Boolean.FALSE.toString());
4242
envMap.put("ingest.geoip.downloader.enabled", Boolean.FALSE.toString());
4343
envMap.put("ES_JAVA_OPTS", "-Xms128m -Xmx128m");
44+
envMap.put("action.auto_create_index", "false");
4445
elasticsearchContainer.start();
4546

4647
System.setProperty("spring.data.elasticsearch.embedded", Boolean.toString(true));

0 commit comments

Comments
 (0)