You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2011/01/20 00:09:28 UTC
svn commit: r1061055 -
/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java
Author: elecharny
Date: Wed Jan 19 23:09:28 2011
New Revision: 1061055
URL: http://svn.apache.org/viewvc?rev=1061055&view=rev
Log:
Added an Ignored test for a future fix
Modified:
directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java
Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java?rev=1061055&r1=1061054&r2=1061055&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java (original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceIT.java Wed Jan 19 23:09:28 2011
@@ -52,6 +52,7 @@ import org.apache.directory.shared.ldap.
import org.apache.directory.shared.ldap.name.DN;
import org.junit.After;
import org.junit.Before;
+import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -321,6 +322,36 @@ public class CollectiveAttributeServiceI
@Test
+ @Ignore( "This test is failing until we fix the handling of collective attributes in filters" )
+ public void testSearchFilterCollectiveAttribute() throws Exception
+ {
+ // -------------------------------------------------------------------
+ // Setup the collective attribute specific administration point
+ // -------------------------------------------------------------------
+ addAdministrativeRole( "collectiveAttributeSpecificArea" );
+ connection.add( getTestSubentry( "cn=testsubentry,ou=system" ) );
+
+ Cursor<Response> cursor = connection.search( "ou=system", "(c-ou=configuration)", SearchScope.SUBTREE, "+",
+ "*" );
+
+ boolean found = false;
+
+ while ( cursor.next() )
+ {
+ Response result = cursor.get();
+
+ if ( result instanceof SearchResultEntry )
+ {
+ found = true;
+ break;
+ }
+ }
+
+ assertTrue( found );
+ }
+
+
+ @Test
public void testSearch() throws Exception
{
// -------------------------------------------------------------------