[CalendarServer-changes] [7260] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 24 15:34:22 PDT 2011


Revision: 7260
          http://trac.macosforge.org/projects/calendarserver/changeset/7260
Author:   cdaboo at apple.com
Date:     2011-03-24 15:34:20 -0700 (Thu, 24 Mar 2011)
Log Message:
-----------
Test for proper report expand behavior.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/tests/CalDAV/reports.xml

Added Paths:
-----------
    CalDAVTester/trunk/Resource/CalDAV/reports/limitexpand/8.xml

Added: CalDAVTester/trunk/Resource/CalDAV/reports/limitexpand/8.xml
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/reports/limitexpand/8.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/reports/limitexpand/8.xml	2011-03-24 22:34:20 UTC (rev 7260)
@@ -0,0 +1,41 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<calendar-query xmlns='urn:ietf:params:xml:ns:caldav'>
+<prop xmlns='DAV:'>
+<getetag/>
+<calendar-data xmlns='urn:ietf:params:xml:ns:caldav'>
+<expand start='20060102T000000Z' end='20060105T000000Z'/>
+<comp name='VCALENDAR'>
+<allprop/>
+<comp name='VEVENT'>
+<prop name='X-ABC-GUID'/>
+<prop name='UID'/>
+<prop name='DTSTART'/>
+<prop name='DTEND'/>
+<prop name='DURATION'/>
+<prop name='EXDATE'/>
+<prop name='EXRULE'/>
+<prop name='RDATE'/>
+<prop name='RRULE'/>
+<prop name='RECURRENCE-ID'/>
+<prop name='LOCATION'/>
+<prop name='SUMMARY'/>
+<prop name='DESCRIPTION'/>
+</comp>
+<comp name='VTIMEZONE'>
+<allprop/>
+<allcomp/>
+</comp>
+</comp>
+</calendar-data>
+</prop>
+<filter>
+<comp-filter name='VCALENDAR'>
+<comp-filter name='VEVENT'>
+<time-range start='20060102T000000Z' end='20060105T000000Z'/>
+<prop-filter name="SUMMARY">
+<text-match>event 6</text-match>
+</prop-filter>
+</comp-filter>
+</comp-filter>
+</filter>
+</calendar-query>

Modified: CalDAVTester/trunk/scripts/tests/CalDAV/reports.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/reports.xml	2011-03-24 20:45:31 UTC (rev 7259)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/reports.xml	2011-03-24 22:34:20 UTC (rev 7260)
@@ -1664,6 +1664,41 @@
 				</verify>
 			</request>
 		</test>
+		<test name='8' ignore='no'>
+			<description>time-range query with expand for one event - DURATION test</description>
+			<request print-response='no'>
+				<method>REPORT</method>
+				<ruri>$calendarpath1:/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/reports/limitexpand/8.xml</filepath>
+				</data>
+				<verify>
+					<callback>multistatusItems</callback>
+					<arg>
+						<name>okhrefs</name>
+						<value>6.ics</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>contains</name>
+						<value>DTSTART:20060102T190000Z</value>
+						<value>DURATION:PT1H</value>
+						<value>RECURRENCE-ID:20060103T190000Z</value>
+						<value>DTSTART:20060103T190000Z</value>
+						<value>RECURRENCE-ID:20060104T190000Z</value>
+						<value>DTSTART:20060104T210000Z</value>
+					</arg>
+					<arg>
+						<name>notcontains</name>
+						<value>VTIEMZONE</value>
+						<value>DTSTART:20060104T190000Z</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 	
 	<end/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110324/c8feed77/attachment.html>


More information about the calendarserver-changes mailing list