directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1483320 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java
Date Thu, 16 May 2013 12:44:37 GMT
Author: elecharny
Date: Thu May 16 12:44:36 2013
New Revision: 1483320

URL: http://svn.apache.org/r1483320
Log:
Fixed a broken test : we were having an infinite loop in delegation...

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java?rev=1483320&r1=1483319&r2=1483320&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/DelegatedAuthIT.java
Thu May 16 12:44:36 2013
@@ -25,7 +25,6 @@ import static org.junit.Assert.assertTru
 import static org.junit.Assert.fail;
 
 import org.apache.directory.api.ldap.model.exception.LdapAuthenticationException;
-import org.apache.directory.junit.tools.MultiThreadedMultiInvoker;
 import org.apache.directory.ldap.client.api.LdapConnection;
 import org.apache.directory.ldap.client.api.LdapNetworkConnection;
 import org.apache.directory.server.annotations.CreateLdapServer;
@@ -33,13 +32,9 @@ import org.apache.directory.server.annot
 import org.apache.directory.server.core.annotations.ApplyLdifs;
 import org.apache.directory.server.core.annotations.CreateAuthenticator;
 import org.apache.directory.server.core.annotations.CreateDS;
-import org.apache.directory.server.core.authn.AnonymousAuthenticator;
 import org.apache.directory.server.core.authn.DelegatingAuthenticator;
-import org.apache.directory.server.core.authn.SimpleAuthenticator;
-import org.apache.directory.server.core.authn.StrongAuthenticator;
 import org.apache.directory.server.core.integ.AbstractLdapTestUnit;
 import org.apache.directory.server.core.integ.FrameworkRunner;
-import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
@@ -79,10 +74,8 @@ import org.junit.runner.RunWith;
     allowAnonymousAccess = true)
 public class DelegatedAuthIT extends AbstractLdapTestUnit
 {
-    @Rule
-    public MultiThreadedMultiInvoker i = new MultiThreadedMultiInvoker( MultiThreadedMultiInvoker.NOT_THREADSAFE
);
-
-
+    //@Rule
+    //public MultiThreadedMultiInvoker i = new MultiThreadedMultiInvoker( MultiThreadedMultiInvoker.NOT_THREADSAFE
);
     /**
      * Test with bindDn which is not even found under any namingContext of the
      * server.
@@ -157,16 +150,7 @@ public class DelegatedAuthIT extends Abs
      */
     @CreateDS(
         allowAnonAccess = true,
-        name = "DelegatedAuthIT-MultipleAuthenticators-method",
-        authenticators =
-            {
-                @CreateAuthenticator(type = AnonymousAuthenticator.class),
-                @CreateAuthenticator(type = SimpleAuthenticator.class),
-                @CreateAuthenticator(
-                    type = DelegatingAuthenticator.class,
-                    delegateHost = "localhost",
-                    delegatePort = 10200),
-                @CreateAuthenticator(type = StrongAuthenticator.class) })
+        name = "DelegatedAuthIT-MultipleAuthenticators-method")
     @ApplyLdifs(
         {
             // Entry # 1



Mime
View raw message