From 384486d6dde15fd779deb46ed1a13b040d825bba Mon Sep 17 00:00:00 2001 From: Tim Vernum Date: Fri, 5 May 2017 10:44:28 +1000 Subject: [PATCH] [TESTS] Really fix MultipleAdRealmTests (I think) Original commit: elastic/x-pack-elasticsearch@dc1eb4eb93fc24831aa4d13627653e34e31000a8 --- .../org/elasticsearch/integration/ldap/MultipleAdRealmTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/src/test/java/org/elasticsearch/integration/ldap/MultipleAdRealmTests.java b/plugin/src/test/java/org/elasticsearch/integration/ldap/MultipleAdRealmTests.java index dd392d18b05..22edbbdccd1 100644 --- a/plugin/src/test/java/org/elasticsearch/integration/ldap/MultipleAdRealmTests.java +++ b/plugin/src/test/java/org/elasticsearch/integration/ldap/MultipleAdRealmTests.java @@ -33,6 +33,7 @@ public class MultipleAdRealmTests extends AbstractAdLdapRealmTestCase { // Pick a secondary realm that has the inverse value for 'loginWithCommonName' compare with the primary realm final List configs = Arrays.stream(RealmConfig.values()) .filter(config -> config.loginWithCommonName != AbstractAdLdapRealmTestCase.realmConfig.loginWithCommonName) + .filter(config -> config.name().startsWith("AD")) .collect(Collectors.toList()); secondaryRealmConfig = randomFrom(configs); ESLoggerFactory.getLogger("test")