[CalendarServer-changes] [1008] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 10 09:10:43 PST 2007
Revision: 1008
http://trac.macosforge.org/projects/calendarserver/changeset/1008
Author: cdaboo at apple.com
Date: 2007-01-10 09:10:43 -0800 (Wed, 10 Jan 2007)
Log Message:
-----------
Tests for availability capabilities.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/availability.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/availability/1.xml
Added: CalDAVTester/trunk/Resource/availability/1.xml
===================================================================
--- CalDAVTester/trunk/Resource/availability/1.xml (rev 0)
+++ CalDAVTester/trunk/Resource/availability/1.xml 2007-01-10 17:10:43 UTC (rev 1008)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<C:supported-calendar-component-set/>
+</D:prop>
+</D:propfind>
Modified: CalDAVTester/trunk/scripts/tests/availability.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/availability.xml 2007-01-10 17:10:02 UTC (rev 1007)
+++ CalDAVTester/trunk/scripts/tests/availability.xml 2007-01-10 17:10:43 UTC (rev 1008)
@@ -25,6 +25,47 @@
<start/>
+ <test-suite name='Capabilities'>
+ <test name='1' ignore='no'>
+ <description>Check for proper capability in DAV header</description>
+ <request>
+ <method>OPTIONS</method>
+ <ruri>$calendar:</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ <verify>
+ <callback>header</callback>
+ <arg>
+ <name>header</name>
+ <value>*DAV$.*calendar-availability.*</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2' ignore='no'>
+ <description>Supported component</description>
+ <request print-response='no'>
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/availability/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>urn:ietf:params:xml:ns:caldavsupported-calendar-component-set$<comp name="VEVENT"/><comp name="VTODO"/><comp name="VTIMEZONE"/><comp name="VJOURNAL"/><comp name="VFREEBUSY"/><comp name="VAVAILABILITY"/></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
<test-suite name='PUT VAVAILABILITY'>
<test name='1' ignore='no'>
<description>PUT availability</description>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070110/4edcb4fe/attachment.html
More information about the calendarserver-changes
mailing list