james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adup...@apache.org
Subject [41/41] james-project git commit: JAMES-2083 Add a wait strategy in LdapGenericContainer
Date Mon, 10 Jul 2017 17:54:53 GMT
JAMES-2083 Add a wait strategy in LdapGenericContainer


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/a5f3aa71
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/a5f3aa71
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/a5f3aa71

Branch: refs/heads/master
Commit: a5f3aa719d6c1957e9853f49688e8d9b8c041c62
Parents: e5e54b7
Author: benwa <btellier@linagora.com>
Authored: Wed Jul 5 12:54:31 2017 +0700
Committer: Antoine Duprat <aduprat@linagora.com>
Committed: Mon Jul 10 14:24:01 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/james/user/ldap/LdapGenericContainer.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/a5f3aa71/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
----------------------------------------------------------------------
diff --git a/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
b/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
index fed1361..d1f3b9c 100644
--- a/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
+++ b/server/data/data-ldap-integration-testing/src/test/java/org/apache/james/user/ldap/LdapGenericContainer.java
@@ -20,6 +20,7 @@ package org.apache.james.user.ldap;
 
 import org.apache.james.util.streams.SwarmGenericContainer;
 import org.junit.rules.ExternalResource;
+import org.testcontainers.containers.wait.HostPortWaitStrategy;
 import org.testcontainers.images.builder.ImageFromDockerfile;
 
 import com.google.common.base.Preconditions;
@@ -66,7 +67,8 @@ public class LdapGenericContainer extends ExternalResource {
                 .withEnv("SLAPD_DOMAIN", domain)
                 .withEnv("SLAPD_PASSWORD", password)
                 .withEnv("SLAPD_CONFIG_PASSWORD", password)
-                .withExposedPorts(LdapGenericContainer.DEFAULT_LDAP_PORT);
+                .withExposedPorts(LdapGenericContainer.DEFAULT_LDAP_PORT)
+                .waitingFor(new HostPortWaitStrategy());
         }
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message