directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1571960 - /directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchIT.java
Date Wed, 26 Feb 2014 08:37:10 GMT
Author: kayyagari
Date: Wed Feb 26 08:37:10 2014
New Revision: 1571960

URL: http://svn.apache.org/r1571960
Log:
test for DIRSERVER-1961

Modified:
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchIT.java

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchIT.java?rev=1571960&r1=1571959&r2=1571960&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchIT.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchIT.java
Wed Feb 26 08:37:10 2014
@@ -20,6 +20,7 @@
 package org.apache.directory.server.core.operations.search;
 
 
+import static org.apache.directory.server.core.integ.IntegrationUtils.getAdminConnection;
 import static org.apache.directory.server.core.integ.IntegrationUtils.getRootContext;
 import static org.apache.directory.server.core.integ.IntegrationUtils.getSystemContext;
 import static org.junit.Assert.assertEquals;
@@ -2076,4 +2077,22 @@ public class SearchIT extends AbstractLd
         
         assertEquals( 5, count );
     }
+
+    
+    /**
+     * DIRSERVER-1961
+     *
+     * @throws Exception
+     */
+    @Test
+    public void testSearchRootDSEOneLevel() throws Exception
+    {
+        LdapConnection conn = getAdminConnection( service );
+
+        EntryCursor cursor = conn.search( "ou=schema", "(objectClass=person)", SearchScope.OBJECT,
"*" );
+
+        assertFalse( cursor.next() );
+        
+        cursor.close();
+    }
 }



Mime
View raw message