[CalendarServer-changes] [2621] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jun 25 13:20:58 PDT 2008
Revision: 2621
http://trac.macosforge.org/projects/calendarserver/changeset/2621
Author: cdaboo at apple.com
Date: 2008-06-25 13:20:58 -0700 (Wed, 25 Jun 2008)
Log Message:
-----------
Test to make sure invalid principal URIs do not cause a 500 error.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/dropbox.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/dropbox/8.xml
CalDAVTester/trunk/Resource/dropbox/9.xml
Added: CalDAVTester/trunk/Resource/dropbox/8.xml
===================================================================
--- CalDAVTester/trunk/Resource/dropbox/8.xml (rev 0)
+++ CalDAVTester/trunk/Resource/dropbox/8.xml 2008-06-25 20:20:58 UTC (rev 2621)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:acl xmlns:D="DAV:">
+ <D:ace>
+ <D:principal>
+ <D:href>$principaluri2:xyz</D:href>
+ </D:principal>
+ <D:grant>
+ <D:privilege><D:read/></D:privilege>
+ </D:grant>
+ </D:ace>
+</D:acl>
Added: CalDAVTester/trunk/Resource/dropbox/9.xml
===================================================================
--- CalDAVTester/trunk/Resource/dropbox/9.xml (rev 0)
+++ CalDAVTester/trunk/Resource/dropbox/9.xml 2008-06-25 20:20:58 UTC (rev 2621)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:acl xmlns:D="DAV:">
+ <D:ace>
+ <D:principal>
+ <D:href>$principaluri2:/xyz</D:href>
+ </D:principal>
+ <D:grant>
+ <D:privilege><D:read/></D:privilege>
+ </D:grant>
+ </D:ace>
+</D:acl>
Modified: CalDAVTester/trunk/scripts/tests/dropbox.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/dropbox.xml 2008-06-25 20:18:32 UTC (rev 2620)
+++ CalDAVTester/trunk/scripts/tests/dropbox.xml 2008-06-25 20:20:58 UTC (rev 2621)
@@ -188,6 +188,42 @@
</verify>
</request>
</test>
+ <test name='7'>
+ <description>Add invalid user read privilege on collection</description>
+ <request>
+ <method>ACL</method>
+ <ruri>$pathprefix:/dropbox/ABCEFG/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/8.xml</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>403</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='8'>
+ <description>Add invalid user read privilege on collection</description>
+ <request>
+ <method>ACL</method>
+ <ruri>$pathprefix:/dropbox/ABCEFG/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/9.xml</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>403</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
</test-suite>
<test-suite name='Drop Box Home Restrictions'>
<test name='1'>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080625/9bfc64cd/attachment.htm
More information about the calendarserver-changes
mailing list