Remove obsolete maven profile. Run LDAPLegacyImportTest just with the embedded LDAP

This commit is contained in:
mposolda committed 2016-12-19 22:15:13 +01:00
1 parent 40591cff25
commit 7e2c06e301
2 files changed
+6 -28

No files matched your search

-27
View File
@@ -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>
@@ -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;