Tests: Muting OpenLDAP tests due to network issues
Original commit: elastic/x-pack-elasticsearch@c32d397a20
This commit is contained in:
parent
0399be6406
commit
8666f96b62
|
@ -306,6 +306,7 @@ public class LdapUserSearchSessionFactoryTests extends LdapTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Network
|
@Network
|
||||||
|
@AwaitsFix(bugUrl = "https://github.com/elastic/x-pack-elasticsearch/issues/1823")
|
||||||
public void testUserSearchWithActiveDirectory() throws Exception {
|
public void testUserSearchWithActiveDirectory() throws Exception {
|
||||||
String groupSearchBase = "DC=ad,DC=test,DC=elasticsearch,DC=com";
|
String groupSearchBase = "DC=ad,DC=test,DC=elasticsearch,DC=com";
|
||||||
String userSearchBase = "CN=Users,DC=ad,DC=test,DC=elasticsearch,DC=com";
|
String userSearchBase = "CN=Users,DC=ad,DC=test,DC=elasticsearch,DC=com";
|
||||||
|
@ -359,6 +360,7 @@ public class LdapUserSearchSessionFactoryTests extends LdapTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Network
|
@Network
|
||||||
|
@AwaitsFix(bugUrl = "https://github.com/elastic/x-pack-elasticsearch/issues/1823")
|
||||||
public void testUserSearchwithBindUserOpenLDAP() throws Exception {
|
public void testUserSearchwithBindUserOpenLDAP() throws Exception {
|
||||||
String groupSearchBase = "ou=people,dc=oldap,dc=test,dc=elasticsearch,dc=com";
|
String groupSearchBase = "ou=people,dc=oldap,dc=test,dc=elasticsearch,dc=com";
|
||||||
String userSearchBase = "ou=people,dc=oldap,dc=test,dc=elasticsearch,dc=com";
|
String userSearchBase = "ou=people,dc=oldap,dc=test,dc=elasticsearch,dc=com";
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
package org.elasticsearch.xpack.security.authc.ldap;
|
package org.elasticsearch.xpack.security.authc.ldap;
|
||||||
|
|
||||||
import com.unboundid.ldap.sdk.LDAPException;
|
import com.unboundid.ldap.sdk.LDAPException;
|
||||||
|
import org.apache.lucene.util.LuceneTestCase;
|
||||||
|
import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
|
||||||
import org.elasticsearch.action.support.PlainActionFuture;
|
import org.elasticsearch.action.support.PlainActionFuture;
|
||||||
import org.elasticsearch.common.settings.SecureString;
|
import org.elasticsearch.common.settings.SecureString;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
@ -33,6 +35,7 @@ import static org.hamcrest.Matchers.hasItem;
|
||||||
import static org.hamcrest.Matchers.instanceOf;
|
import static org.hamcrest.Matchers.instanceOf;
|
||||||
|
|
||||||
@Network
|
@Network
|
||||||
|
@AwaitsFix(bugUrl = "https://github.com/elastic/x-pack-elasticsearch/issues/1823")
|
||||||
public class OpenLdapTests extends ESTestCase {
|
public class OpenLdapTests extends ESTestCase {
|
||||||
|
|
||||||
public static final String OPEN_LDAP_URL = "ldaps://54.200.235.244:636";
|
public static final String OPEN_LDAP_URL = "ldaps://54.200.235.244:636";
|
||||||
|
|
|
@ -5,12 +5,13 @@
|
||||||
*/
|
*/
|
||||||
package org.elasticsearch.xpack.security.authc.ldap;
|
package org.elasticsearch.xpack.security.authc.ldap;
|
||||||
|
|
||||||
|
import org.apache.lucene.util.LuceneTestCase.AwaitsFix;
|
||||||
import org.elasticsearch.action.support.PlainActionFuture;
|
import org.elasticsearch.action.support.PlainActionFuture;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.unit.TimeValue;
|
import org.elasticsearch.common.unit.TimeValue;
|
||||||
|
import org.elasticsearch.test.junit.annotations.Network;
|
||||||
import org.elasticsearch.xpack.security.authc.ldap.support.LdapSearchScope;
|
import org.elasticsearch.xpack.security.authc.ldap.support.LdapSearchScope;
|
||||||
import org.elasticsearch.xpack.security.support.NoOpLogger;
|
import org.elasticsearch.xpack.security.support.NoOpLogger;
|
||||||
import org.elasticsearch.test.junit.annotations.Network;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -21,6 +22,7 @@ import static org.hamcrest.Matchers.is;
|
||||||
import static org.hamcrest.Matchers.notNullValue;
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
|
||||||
@Network
|
@Network
|
||||||
|
@AwaitsFix(bugUrl = "https://github.com/elastic/x-pack-elasticsearch/issues/1823")
|
||||||
public class SearchGroupsResolverTests extends GroupsResolverTestCase {
|
public class SearchGroupsResolverTests extends GroupsResolverTestCase {
|
||||||
|
|
||||||
public static final String BRUCE_BANNER_DN = "uid=hulk,ou=people,dc=oldap,dc=test,dc=elasticsearch,dc=com";
|
public static final String BRUCE_BANNER_DN = "uid=hulk,ou=people,dc=oldap,dc=test,dc=elasticsearch,dc=com";
|
||||||
|
|
|
@ -86,6 +86,7 @@ public class LdapMetaDataResolverTests extends ESTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Network
|
@Network
|
||||||
|
@AwaitsFix(bugUrl = "https://github.com/elastic/x-pack-elasticsearch/issues/1823")
|
||||||
public void testResolveSingleValuedAttributeFromConnection() throws Exception {
|
public void testResolveSingleValuedAttributeFromConnection() throws Exception {
|
||||||
resolver = new LdapMetaDataResolver(Arrays.asList("givenName", "sn"), true);
|
resolver = new LdapMetaDataResolver(Arrays.asList("givenName", "sn"), true);
|
||||||
setupOpenLdapConnection();
|
setupOpenLdapConnection();
|
||||||
|
@ -96,6 +97,7 @@ public class LdapMetaDataResolverTests extends ESTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Network
|
@Network
|
||||||
|
@AwaitsFix(bugUrl = "https://github.com/elastic/x-pack-elasticsearch/issues/1823")
|
||||||
public void testResolveMultiValuedAttributeFromConnection() throws Exception {
|
public void testResolveMultiValuedAttributeFromConnection() throws Exception {
|
||||||
resolver = new LdapMetaDataResolver(Arrays.asList("objectClass"), true);
|
resolver = new LdapMetaDataResolver(Arrays.asList("objectClass"), true);
|
||||||
setupOpenLdapConnection();
|
setupOpenLdapConnection();
|
||||||
|
@ -106,6 +108,7 @@ public class LdapMetaDataResolverTests extends ESTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Network
|
@Network
|
||||||
|
@AwaitsFix(bugUrl = "https://github.com/elastic/x-pack-elasticsearch/issues/1823")
|
||||||
public void testResolveMissingAttributeFromConnection() throws Exception {
|
public void testResolveMissingAttributeFromConnection() throws Exception {
|
||||||
resolver = new LdapMetaDataResolver(Arrays.asList("alias"), true);
|
resolver = new LdapMetaDataResolver(Arrays.asList("alias"), true);
|
||||||
setupOpenLdapConnection();
|
setupOpenLdapConnection();
|
||||||
|
|
Loading…
Reference in New Issue