directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1770270 - in /directory/apacheds/branches/apacheds-value: ldap-client-test/ ldap-client-test/src/test/java/org/apache/directory/shared/client/api/ server-integ/src/test/java/org/apache/directory/server/operations/bind/ server-integ/src/tes...
Date Thu, 17 Nov 2016 19:44:45 GMT
Author: elecharny
Date: Thu Nov 17 19:44:45 2016
New Revision: 1770270

URL: http://svn.apache.org/viewvc?rev=1770270&view=rev
Log:
Fixed some test failures

Modified:
    directory/apacheds/branches/apacheds-value/ldap-client-test/pom.xml
    directory/apacheds/branches/apacheds-value/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
    directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
    directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/ldapsdk/BindIT.java

Modified: directory/apacheds/branches/apacheds-value/ldap-client-test/pom.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/ldap-client-test/pom.xml?rev=1770270&r1=1770269&r2=1770270&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/ldap-client-test/pom.xml (original)
+++ directory/apacheds/branches/apacheds-value/ldap-client-test/pom.xml Thu Nov 17 19:44:45
2016
@@ -95,6 +95,11 @@
     
     <!-- Other dependencies -->
     <dependency>
+      <groupId>org.apache.directory.mavibot</groupId>
+      <artifactId>mavibot</artifactId>
+    </dependency>
+
+    <dependency>
       <groupId>org.apache.directory.api</groupId>
       <artifactId>api-ldap-client-api</artifactId>
     </dependency>

Modified: directory/apacheds/branches/apacheds-value/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java?rev=1770270&r1=1770269&r2=1770270&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
(original)
+++ directory/apacheds/branches/apacheds-value/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapConnectionTest.java
Thu Nov 17 19:44:45 2016
@@ -347,4 +347,14 @@ public void testLookup() throws Exceptio
 
         connection.close();
     }
+    
+    
+    @Test
+    public void testConfigSetting() throws LdapException, IOException
+    {
+        LdapConnection connection = new LdapNetworkConnection( Network.LOOPBACK_HOSTNAME,
ldapServer.getPort() );
+        connection.connect();
+
+        connection.close();
+    }
 }

Modified: directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java?rev=1770270&r1=1770269&r2=1770270&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
(original)
+++ directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
Thu Nov 17 19:44:45 2016
@@ -214,10 +214,10 @@ public class SimpleBindIT extends Abstra
         {
             new InitialDirContext( env );
         }
-        catch ( InvalidNameException ine )
+        catch ( AuthenticationException ine )
         {
             // Error code 34 : LDAP_INVALID_DN_SYNTAX
-            assertTrue( ine.getMessage().startsWith( "[LDAP: error code 34 - Incorrect DN
given" ) );
+            assertTrue( ine.getMessage().startsWith( "[LDAP: error code 49 - INVALID_CREDENTIALS:
Bind failed: Invalid authentication]" ) );
         }
         catch ( NamingException e )
         {

Modified: directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/ldapsdk/BindIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/ldapsdk/BindIT.java?rev=1770270&r1=1770269&r2=1770270&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/ldapsdk/BindIT.java
(original)
+++ directory/apacheds/branches/apacheds-value/server-integ/src/test/java/org/apache/directory/server/operations/ldapsdk/BindIT.java
Thu Nov 17 19:44:45 2016
@@ -117,7 +117,7 @@ public class BindIT extends AbstractLdap
             getWiredContext( getLdapServer(), "system", "blah" );
             fail( "should never get here due to a " );
         }
-        catch ( InvalidNameException e )
+        catch ( AuthenticationException e )
         {
         }
     }



Mime
View raw message