keycloak-aplcache
Changes
testsuite/integration/pom.xml 27(+0 -27)
Details
testsuite/integration/pom.xml 27(+0 -27)
diff --git a/testsuite/integration/pom.xml b/testsuite/integration/pom.xml
index 131b7cc..1c29c82 100755
--- a/testsuite/integration/pom.xml
+++ b/testsuite/integration/pom.xml
@@ -591,32 +591,5 @@
</build>
</profile>
- <!-- Ldap profiles -->
- <profile>
- <activation>
- <property>
- <name>ldap.vendor</name>
- <value>msad</value>
- </property>
- </activation>
- <id>msad</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <includes>
- <include>org/keycloak/testsuite/federation/ldap/base/**</include>
- </includes>
- <excludes>
- <exclude>**/LDAPMultipleAttributesTest.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
-
</profiles>
</project>
diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/federation/storage/ldap/LDAPLegacyImportTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/federation/storage/ldap/LDAPLegacyImportTest.java
index 9e26fcf..a3d9178 100755
--- a/testsuite/integration/src/test/java/org/keycloak/testsuite/federation/storage/ldap/LDAPLegacyImportTest.java
+++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/federation/storage/ldap/LDAPLegacyImportTest.java
@@ -69,6 +69,7 @@ import org.openqa.selenium.WebDriver;
import java.io.IOException;
import java.util.List;
+import java.util.Map;
import static org.junit.Assert.assertEquals;
@@ -80,7 +81,11 @@ import static org.junit.Assert.assertEquals;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class LDAPLegacyImportTest {
- private static LDAPRule ldapRule = new LDAPRule();
+ // This test is executed just for the embedded LDAP server
+ private static LDAPRule ldapRule = new LDAPRule((Map<String, String> ldapConfig) -> {
+ String connectionURL = ldapConfig.get(LDAPConstants.CONNECTION_URL);
+ return !"ldap://localhost:10389".equals(connectionURL);
+ });
private static ComponentModel ldapModel = null;