|
From: <del...@us...> - 2011-05-31 17:04:45
|
Revision: 14595
http://exist.svn.sourceforge.net/exist/?rev=14595&view=rev
Author: deliriumsky
Date: 2011-05-31 17:04:34 +0000 (Tue, 31 May 2011)
Log Message:
-----------
[bugfix] Updated tests as Collections now have stricter default permissions 0755
Modified Paths:
--------------
branches/adam/eXist-acl/test/src/org/exist/security/XMLDBSecurityTest.java
Modified: branches/adam/eXist-acl/test/src/org/exist/security/XMLDBSecurityTest.java
===================================================================
--- branches/adam/eXist-acl/test/src/org/exist/security/XMLDBSecurityTest.java 2011-05-31 14:07:59 UTC (rev 14594)
+++ branches/adam/eXist-acl/test/src/org/exist/security/XMLDBSecurityTest.java 2011-05-31 17:04:34 UTC (rev 14595)
@@ -123,14 +123,22 @@
assertEquals("<testMe/>", resource.getContent().toString());
}
- @Test
- public void groupRemoveCollection() throws XMLDBException {
+ @Test(expected=XMLDBException.class)
+ public void groupRemoveCollection_canNotWriteParent() throws XMLDBException {
Collection root = DatabaseManager.getCollection(baseUri + "/db", "test2", "test2");
CollectionManagementService cms = (CollectionManagementService)
root.getService("CollectionManagementService", "1.0");
cms.removeCollection("securityTest1");
}
+ @Test
+ public void groupRemoveCollection_canWriteParent() throws XMLDBException {
+ Collection root = DatabaseManager.getCollection(baseUri + "/db", "admin", "");
+ CollectionManagementService cms = (CollectionManagementService)
+ root.getService("CollectionManagementService", "1.0");
+ cms.removeCollection("securityTest1");
+ }
+
@Test(expected=XMLDBException.class)
public void groupChmodCollection_asNotOwnerAndNotDBA() throws XMLDBException {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|