From 6fc818a74743d2abb7e17ccc627647bc4a3102e2 Mon Sep 17 00:00:00 2001 From: Antoine Bouhours Date: Mon, 29 Apr 2024 09:18:18 +0200 Subject: [PATCH] Disable index auto-creation by ElasticSearch (#133) Signed-off-by: BOUHOURS Antoine --- .../conversion/server/elasticsearch/EmbeddedElasticsearch.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/powsybl/network/conversion/server/elasticsearch/EmbeddedElasticsearch.java b/src/test/java/com/powsybl/network/conversion/server/elasticsearch/EmbeddedElasticsearch.java index a528329..996197e 100644 --- a/src/test/java/com/powsybl/network/conversion/server/elasticsearch/EmbeddedElasticsearch.java +++ b/src/test/java/com/powsybl/network/conversion/server/elasticsearch/EmbeddedElasticsearch.java @@ -41,6 +41,7 @@ public void postConstruct() { envMap.put("xpack.security.enabled", Boolean.FALSE.toString()); envMap.put("ingest.geoip.downloader.enabled", Boolean.FALSE.toString()); envMap.put("ES_JAVA_OPTS", "-Xms128m -Xmx128m"); + envMap.put("action.auto_create_index", "false"); elasticsearchContainer.start(); System.setProperty("spring.data.elasticsearch.embedded", Boolean.toString(true));