[CalendarServer-changes] [3516] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Thu Dec 11 18:53:59 PST 2008
Revision: 3516
http://trac.macosforge.org/projects/calendarserver/changeset/3516
Author: cdaboo at apple.com
Date: 2008-12-11 18:53:59 -0800 (Thu, 11 Dec 2008)
Log Message:
-----------
More quota checks.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/quota.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/quota/2.ics
Added: CalDAVTester/trunk/Resource/quota/2.ics
===================================================================
--- CalDAVTester/trunk/Resource/quota/2.ics (rev 0)
+++ CalDAVTester/trunk/Resource/quota/2.ics 2008-12-12 02:53:59 UTC (rev 3516)
@@ -0,0 +1,29 @@
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//PYVOBJECT//NONSGML Version 1//EN
+BEGIN:VTIMEZONE
+TZID:US/Eastern
+LAST-MODIFIED:20040110T032845Z
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+END:VTIMEZONE
+BEGIN:VEVENT
+UID:54E181BC7CCC373042B28842 at ninevah.local
+DTSTART;TZID=US/Eastern:20060101T100000
+DURATION:PT1H
+DTSTAMP:20051222T205953Z
+SUMMARY:event 1
+END:VEVENT
+END:VCALENDAR
Modified: CalDAVTester/trunk/scripts/tests/quota.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/quota.xml 2008-12-12 02:49:10 UTC (rev 3515)
+++ CalDAVTester/trunk/scripts/tests/quota.xml 2008-12-12 02:53:59 UTC (rev 3516)
@@ -209,6 +209,167 @@
</test>
</test-suite>
+ <test-suite name='Quota after collection create' ignore='no'>
+ <test name='1' ignore='no'>
+ <description>Create new calendar</description>
+ <request print-response='no'>
+ <method>MKCALENDAR</method>
+ <ruri>$pathprefix1:/newcalendar/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='2' ignore='no'>
+ <description>Quota check</description>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix1:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/quota/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:resourcetype</value>
+ <value>DAV:quota-available-bytes$104857600</value>
+ <value>DAV:quota-used-bytes$0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
+ <test-suite name='Quota after empty collection delete' ignore='no'>
+ <test name='1' ignore='no'>
+ <description>Create new calendar</description>
+ <request print-response='no'>
+ <method>DELETE</method>
+ <ruri>$pathprefix1:/newcalendar/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='2' ignore='no'>
+ <description>Quota check</description>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix1:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/quota/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:resourcetype</value>
+ <value>DAV:quota-available-bytes$104857600</value>
+ <value>DAV:quota-used-bytes$0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
+ <test-suite name='Quota after collection create, and PUT' ignore='no'>
+ <test name='1' ignore='no'>
+ <description>Create new calendar</description>
+ <request print-response='no'>
+ <method>MKCALENDAR</method>
+ <ruri>$pathprefix1:/newcalendar/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='2' ignore='no'>
+ <request>
+ <method>PUT</method>
+ <ruri>$pathprefix1:/newcalendar/1.ics</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/quota/2.ics</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='3' ignore='no'>
+ <description>Quota check</description>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix1:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/quota/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:resourcetype</value>
+ <value>DAV:quota-available-bytes$104857000</value>
+ <value>DAV:quota-used-bytes$600</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
+ <test-suite name='Quota after non-empty collection delete' ignore='no'>
+ <test name='1' ignore='no'>
+ <description>Create new calendar</description>
+ <request print-response='no'>
+ <method>DELETE</method>
+ <ruri>$pathprefix1:/newcalendar/</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ </request>
+ </test>
+ <test name='2' ignore='no'>
+ <description>Quota check</description>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$pathprefix1:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/quota/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:resourcetype</value>
+ <value>DAV:quota-available-bytes$104857600</value>
+ <value>DAV:quota-used-bytes$0</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
<end/>
</caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081211/4c3ed2df/attachment-0001.html>
More information about the calendarserver-changes
mailing list