From 1210b644a271de9154235a0e30a978e71c4098d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarl=20Andr=C3=A9=20H=C3=BCbenthal?= Date: Fri, 6 Oct 2023 08:46:17 +0200 Subject: [PATCH] chore: remove unnecessary env var --- .../org/testcontainers/containers/CephContainer.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/testcontainers/containers/CephContainer.java b/src/main/java/org/testcontainers/containers/CephContainer.java index c3066a6..3715299 100644 --- a/src/main/java/org/testcontainers/containers/CephContainer.java +++ b/src/main/java/org/testcontainers/containers/CephContainer.java @@ -6,9 +6,6 @@ import java.net.URI; import java.net.URISyntaxException; import java.time.Duration; -import java.util.Collections; -import java.util.HashSet; -import java.util.Set; /** * Testcontainers implementation for Ceph. @@ -35,8 +32,6 @@ public class CephContainer extends GenericContainer { private static final String CEPH_END_START = ".*/opt/ceph-container/bin/demo: SUCCESS.*"; - private static final Set CEPH_DEMO_DAEMONS = new HashSet<>(Collections.singletonList("all")); - private String cephAccessKey; private String cephSecretKey; @@ -53,7 +48,6 @@ public CephContainer(final DockerImageName dockerImageName) { public void configure() { addExposedPorts(CEPH_MON_DEFAULT_PORT, CEPH_RGW_DEFAULT_PORT); - addEnv("DEMO_DAEMONS", String.join(",", CEPH_DEMO_DAEMONS)); addEnv("CEPH_DEMO_UID", CEPH_DEMO_UID); addEnv( "CEPH_DEMO_ACCESS_KEY", @@ -73,7 +67,8 @@ public void configure() { addEnv("MON_IP", "127.0.0.1"); addEnv("RGW_NAME", "localhost"); - setWaitStrategy(Wait.forLogMessage(CEPH_END_START, 1).withStartupTimeout(Duration.ofMinutes(5))); + setWaitStrategy(Wait.forLogMessage(CEPH_END_START, 1) + .withStartupTimeout(Duration.ofMinutes(5))); } public CephContainer withCephAccessKey(String cephAccessKey) {