directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r688724 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchLimitsIT.java
Date Mon, 25 Aug 2008 13:49:47 GMT
Author: seelmann
Date: Mon Aug 25 06:49:47 2008
New Revision: 688724

URL: http://svn.apache.org/viewvc?rev=688724&view=rev
Log:
Fixed size limit test for admin/non-admin user

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

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchLimitsIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchLimitsIT.java?rev=688724&r1=688723&r2=688724&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchLimitsIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/SearchLimitsIT.java
Mon Aug 25 06:49:47 2008
@@ -292,17 +292,31 @@
         getActorsWithLimit( "(objectClass=*)", 0, 1 );
     }
 
-    
+
+    /**
+     * Sets up the server with shorter search size limit than the request's 
+     * which constrains size by using server max limit value. Should work 
+     * just fine for the administrative user.
+     */
+    @Test
+    public void testRequestConstrainedGreaterThanConfigurationSize() throws Exception
+    {
+        ldapServer.setMaxSizeLimit( 1 ); 
+        Set<String> set = getActorsWithLimit( "(objectClass=*)", 0, 100000 );
+        assertEquals( 4, set.size() );
+    }
+
+
     /**
      * Sets up the server with shorter search size limit than the request's 
      * which constrains size by using server max limit value to cause a size 
      * limit exceeded exception on the client.
      */
     @Test ( expected = SizeLimitExceededException.class )
-    public void testRequestConstrainedGreaterThanConfigurationSize() throws Exception
+    public void testNonAdminRequestConstrainedGreaterThanConfigurationSize() throws Exception
     {
         ldapServer.setMaxSizeLimit( 1 ); 
-        getActorsWithLimit( "(objectClass=*)", 0, 100000 );
+        getActorsWithLimitNonAdmin( "(objectClass=*)", 0, 100000 );
     }
 
     



Mime
View raw message