[CalendarServer-changes] [309]
CalDAVTester/trunk/scripts/tests/dropbox.xml
source_changes at macosforge.org
source_changes at macosforge.org
Thu Oct 26 13:11:28 PDT 2006
Revision: 309
http://trac.macosforge.org/projects/calendarserver/changeset/309
Author: cdaboo at apple.com
Date: 2006-10-26 13:11:28 -0700 (Thu, 26 Oct 2006)
Log Message:
-----------
Tests for drop box collection restrictions.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/dropbox.xml
Modified: CalDAVTester/trunk/scripts/tests/dropbox.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/dropbox.xml 2006-10-26 20:09:04 UTC (rev 308)
+++ CalDAVTester/trunk/scripts/tests/dropbox.xml 2006-10-26 20:11:28 UTC (rev 309)
@@ -97,7 +97,7 @@
</verify>
</request>
</test>
- <test name='1'>
+ <test name='2'>
<description>Look for properties</description>
<request>
<method>PROPFIND</method>
@@ -194,6 +194,70 @@
</request>
</test>
</test-suite>
+ <test-suite name='Drop Box Home Restrictions'>
+ <test name='1'>
+ <description>Try to create a calendar</description>
+ <request end-delete="yes">
+ <method>MKCALENDAR</method>
+ <ruri>$pathprefix:/dropbox/calendar/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>403</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>Try to create a resource</description>
+ <request end-delete="yes">
+ <method>PUT</method>
+ <ruri>$pathprefix:/dropbox/test.xml</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/dropbox/2.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 Restrictions'>
+ <test name='1'>
+ <description>Try to create a calendar</description>
+ <request end-delete="yes">
+ <method>MKCALENDAR</method>
+ <ruri>$pathprefix:/dropbox/ABCEFG/calendar/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>403</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>Try to create a collection</description>
+ <request end-delete="yes">
+ <method>MKCOL</method>
+ <ruri>$pathprefix:/dropbox/ABCEFG/calendar/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>403</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
<end/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061026/4be6b922/attachment.html
More information about the calendarserver-changes
mailing list