[CalendarServer-changes] [1038] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Jan 12 11:42:41 PST 2007


Revision: 1038
          http://trac.macosforge.org/projects/calendarserver/changeset/1038
Author:   cdaboo at apple.com
Date:     2007-01-12 11:42:41 -0800 (Fri, 12 Jan 2007)

Log Message:
-----------
More VAVAILABILITY tests.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/tests/availability.xml

Added Paths:
-----------
    CalDAVTester/trunk/Resource/availability/11.xml
    CalDAVTester/trunk/Resource/availability/12.xml
    CalDAVTester/trunk/Resource/availability/13.xml
    CalDAVTester/trunk/Resource/availability/14.xml

Added: CalDAVTester/trunk/Resource/availability/11.xml
===================================================================
--- CalDAVTester/trunk/Resource/availability/11.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/availability/11.xml	2007-01-12 19:42:41 UTC (rev 1038)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<C:free-busy-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<C:time-range start="20060101T000000Z" end="20060105T000000Z"/>
+</C:free-busy-query>

Added: CalDAVTester/trunk/Resource/availability/12.xml
===================================================================
--- CalDAVTester/trunk/Resource/availability/12.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/availability/12.xml	2007-01-12 19:42:41 UTC (rev 1038)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<C:free-busy-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<C:time-range start="20060104T000000Z" end="20060108T000000Z"/>
+</C:free-busy-query>

Added: CalDAVTester/trunk/Resource/availability/13.xml
===================================================================
--- CalDAVTester/trunk/Resource/availability/13.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/availability/13.xml	2007-01-12 19:42:41 UTC (rev 1038)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<C:free-busy-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<C:time-range start="20050501T000000Z" end="20050508T000000Z"/>
+</C:free-busy-query>

Added: CalDAVTester/trunk/Resource/availability/14.xml
===================================================================
--- CalDAVTester/trunk/Resource/availability/14.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/availability/14.xml	2007-01-12 19:42:41 UTC (rev 1038)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<C:free-busy-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<C:time-range start="20061001T000000Z" end="20061008T000000Z"/>
+</C:free-busy-query>

Modified: CalDAVTester/trunk/scripts/tests/availability.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/availability.xml	2007-01-12 19:42:16 UTC (rev 1037)
+++ CalDAVTester/trunk/scripts/tests/availability.xml	2007-01-12 19:42:41 UTC (rev 1038)
@@ -58,7 +58,7 @@
 		</request>
 	</start>
 	
-	<test-suite name='Capabilities'>
+	<test-suite name='Capabilities' ignore='no'>
 		<test name='1' ignore='no'>
 			<description>Check for proper capability in DAV header</description>
 			<request>
@@ -99,7 +99,7 @@
 		</test>
 	</test-suite>
 
-	<test-suite name='Verify PUT VAVAILABILITY'>
+	<test-suite name='Verify PUT VAVAILABILITY' ignore='no'>
 		<test name='1' ignore='no'>
 			<description>PUT availability</description>
 			<request>
@@ -283,6 +283,95 @@
 		</test>
 	</test-suite>
 
+	<test-suite name='free-busy reports' ignore='no'>
+		<test name='1' ignore='no'>
+			<description>query for free busy with time range</description>
+			<request print-response='no'>
+				<method>REPORT</method>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/availability/11.xml</filepath>
+				</data>
+				<verify>
+					<callback>freeBusy</callback>
+					<arg>
+						<name>busy</name>
+						<value>20060102T170000Z/20060102T180000Z</value>
+					</arg>
+					<arg>
+						<name>unavailable</name>
+						<value>20060101T000000Z/20060102T140000Z</value>
+						<value>20060102T170000Z/20060104T140000Z</value>
+						<value>20060104T170000Z/20060105T000000Z</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2' ignore='no'>
+			<description>query for free busy with time range with an overridden available component</description>
+			<request print-response='no'>
+				<method>REPORT</method>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/availability/12.xml</filepath>
+				</data>
+				<verify>
+					<callback>freeBusy</callback>
+					<arg>
+						<name>unavailable</name>
+						<value>20060104T000000Z/20060104T140000Z</value>
+						<value>20060104T170000Z/20060106T170000Z</value>
+						<value>20060106T220000Z/20060108T000000Z</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='3' ignore='no'>
+			<description>query for free busy with time range unbounded start availability</description>
+			<request print-response='no'>
+				<method>REPORT</method>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/availability/13.xml</filepath>
+				</data>
+				<verify>
+					<callback>freeBusy</callback>
+					<arg>
+						<name>unavailable</name>
+						<value>20050501T000000Z/20050502T130000Z</value>
+						<value>20050502T210000Z/20050503T130000Z</value>
+						<value>20050503T210000Z/20050504T130000Z</value>
+						<value>20050504T210000Z/20050505T130000Z</value>
+						<value>20050505T210000Z/20050506T130000Z</value>
+						<value>20050506T210000Z/20050508T000000Z</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4' ignore='no'>
+			<description>query for free busy with time range unbounded end availability</description>
+			<request print-response='no'>
+				<method>REPORT</method>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/availability/14.xml</filepath>
+				</data>
+				<verify>
+					<callback>freeBusy</callback>
+					<arg>
+						<name>unavailable</name>
+						<value>20061001T000000Z/20061002T130000Z</value>
+						<value>20061002T210000Z/20061003T130000Z</value>
+						<value>20061003T210000Z/20061004T130000Z</value>
+						<value>20061004T210000Z/20061005T130000Z</value>
+						<value>20061005T210000Z/20061006T130000Z</value>
+						<value>20061006T210000Z/20061008T000000Z</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/20070112/4be0af9c/attachment.html


More information about the calendarserver-changes mailing list