directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1720906 - in /directory/apacheds/trunk/test-framework/src/test: java/org/apache/directory/server/core/integ/TestClassServer.java resources/test-entry.ldif
Date Sat, 19 Dec 2015 12:34:54 GMT
Author: seelmann
Date: Sat Dec 19 12:34:53 2015
New Revision: 1720906

URL: http://svn.apache.org/viewvc?rev=1720906&view=rev
Log:
Test for DIRSERVER-2109

Modified:
    directory/apacheds/trunk/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassServer.java
    directory/apacheds/trunk/test-framework/src/test/resources/test-entry.ldif

Modified: directory/apacheds/trunk/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassServer.java?rev=1720906&r1=1720905&r2=1720906&view=diff
==============================================================================
--- directory/apacheds/trunk/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassServer.java
(original)
+++ directory/apacheds/trunk/test-framework/src/test/java/org/apache/directory/server/core/integ/TestClassServer.java
Sat Dec 19 12:34:53 2015
@@ -19,8 +19,10 @@
 package org.apache.directory.server.core.integ;
 
 
+import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
 
+import org.apache.directory.api.ldap.model.entry.Entry;
 import org.apache.directory.api.ldap.model.name.Dn;
 import org.apache.directory.server.core.annotations.ApplyLdifFiles;
 import org.junit.Test;
@@ -37,5 +39,11 @@ public class TestClassServer extends Abs
         assertTrue( getService().getAdminSession().exists( new Dn( "cn=testPerson1,ou=system"
) ) );
 
         assertTrue( getService().getAdminSession().exists( new Dn( "cn=testPerson2,ou=system"
) ) );
+
+        assertTrue( getService().getAdminSession().exists( new Dn( "cn=\\#\\\\\\+\\, \\\"\u00F6\u00E9\\\",ou=users,ou=system"
) ) );
+        Entry entry = getService().getAdminSession().lookup( new Dn("cn=\\#\\\\\\+\\, \\\"\u00F6\u00E9\\\",ou=users,ou=system")
);
+        System.out.println( entry );
+        assertEquals(1, entry.get( "cn" ).size());
+        assertEquals("#\\+, \"\u00F6\u00E9\"", entry.get( "cn" ).get().getString());
     }
 }

Modified: directory/apacheds/trunk/test-framework/src/test/resources/test-entry.ldif
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/test-framework/src/test/resources/test-entry.ldif?rev=1720906&r1=1720905&r2=1720906&view=diff
==============================================================================
--- directory/apacheds/trunk/test-framework/src/test/resources/test-entry.ldif (original)
+++ directory/apacheds/trunk/test-framework/src/test/resources/test-entry.ldif Sat Dec 19
12:34:53 2015
@@ -30,3 +30,14 @@ dn: cn=testPerson2,ou=system
 objectClass: person 
 cn: testPerson2 
 sn: sn_testPerson2
+
+# cn=\#\\\+\, \"öé\",ou=users,ou=system
+dn:: Y249XCNcXFwrXCwgXCLDtsOpXCIsb3U9dXNlcnMsb3U9c3lzdGVt
+objectClass: inetOrgPerson
+objectClass: organizationalPerson
+objectClass: person
+objectClass: top
+cn:: I1wrLCAiw7bDqSI=
+sn:: I1wrLCAiw7bDqSI=
+givenName:: I1wrLCAiw7bDqSI=
+uid:: I1wrLCAiw7bDqSI=



Mime
View raw message