Remove obsolete maven profile. Run LDAPLegacyImportTest just with the embedded LDAP
This commit is contained in:
1 parent
40591cff25
commit
7e2c06e301
2 files changed
+6
-28
No files matched your search
@@ -591,32 +591,5 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</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>
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
+6
-1
@@ -69,6 +69,7 @@ import org.openqa.selenium.WebDriver;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
@@ -80,7 +81,11 @@ import static org.junit.Assert.assertEquals;
|
|||||||
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||||
public class LDAPLegacyImportTest {
|
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;
|
private static ComponentModel ldapModel = null;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user