directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r326065 - /directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/aci/ACIItemParserTest.java
Date Tue, 18 Oct 2005 09:51:18 GMT
Author: akarasulu
Date: Tue Oct 18 02:51:13 2005
New Revision: 326065

URL: http://svn.apache.org/viewcvs?rev=326065&view=rev
Log:
added some extra tests a long long time ago

Modified:
    directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/aci/ACIItemParserTest.java

Modified: directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/aci/ACIItemParserTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/aci/ACIItemParserTest.java?rev=326065&r1=326064&r2=326065&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/aci/ACIItemParserTest.java
(original)
+++ directory/shared/ldap/trunk/common/src/test/org/apache/ldap/common/aci/ACIItemParserTest.java
Tue Oct 18 02:51:13 2005
@@ -75,11 +75,10 @@
         "{ precedence 10, userClasses {allUsers  , userGroup { \"1.2=y,z=t\"  , \"a=b,c=d\"
} " +
         " , subtree { { base \"ou=people\" } } }   , grantsAndDenials  {  denyCompare  ,
grantModify } } } }}";
         
-        ACIItem l_ACIItem = parser.parse(spec1);
-        
-        // System.out.println( l_ACIItem );
+        parser.parse(spec1);
     }
-    
+
+
     /**
      * Tests the parser with an ACIItem of UserFirst main component.
      */    
@@ -92,8 +91,32 @@
         "userPermissions { { protectedItems{ entry  , attributeType { cn  , ou }  , attributeValue
{x=y,m=n,k=l} , " +
         "rangeOfValues (cn=ErsinEr) }  , grantsAndDenials { grantBrowse } } } }  }   ";
         
-        ACIItem l_ACIItem = parser.parse(spec2);
-        
-        // System.out.println( l_ACIItem );
+        parser.parse(spec2);
+    }
+
+
+    public void testAllowAddAllUsers() throws Exception
+    {
+        String spec = "{ identificationTag \"addAci\", " +
+                "precedence 14, " +
+                "authenticationLevel none, " +
+                "itemOrUserFirst userFirst: { " +
+                "userClasses { allUsers }, " +
+                "userPermissions { { protectedItems {entry}, " +
+                "grantsAndDenials { grantAdd } } } } }";
+        parser.parse( spec );
+    }
+
+
+    public void testCombo() throws Exception
+    {
+        String spec = "{ identificationTag \"addAci\", " +
+                "precedence 14, " +
+                "authenticationLevel none, " +
+                "itemOrUserFirst userFirst: { " +
+                "userClasses { allUsers, name { \"ou=blah\" } }, " +
+                "userPermissions { { protectedItems {entry}, " +
+                "grantsAndDenials { grantAdd } } } } }";
+        parser.parse( spec );
     }
 }



Mime
View raw message