[CalendarServer-changes] [11763] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 30 13:08:31 PDT 2013


Revision: 11763
          http://trac.calendarserver.org//changeset/11763
Author:   cdaboo at apple.com
Date:     2013-09-30 13:08:31 -0700 (Mon, 30 Sep 2013)
Log Message:
-----------
Add DAV:limit test for sync report.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/server/serverinfo-partitioning.xml
    CalDAVTester/trunk/scripts/server/serverinfo-template.xml
    CalDAVTester/trunk/scripts/server/serverinfo.xml
    CalDAVTester/trunk/scripts/tests/CalDAV/sync-report.xml

Added Paths:
-----------
    CalDAVTester/trunk/Resource/CalDAV/reports/sync/21.xml

Added: CalDAVTester/trunk/Resource/CalDAV/reports/sync/21.xml
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/reports/sync/21.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/reports/sync/21.xml	2013-09-30 20:08:31 UTC (rev 11763)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:sync-collection xmlns:D="DAV:">
+<D:sync-token/>
+<D:sync-level>0</D:sync-level>
+<D:limit><D:nresults>10</D:nresults></D:limit>
+</D:sync-collection>

Modified: CalDAVTester/trunk/scripts/server/serverinfo-partitioning.xml
===================================================================
--- CalDAVTester/trunk/scripts/server/serverinfo-partitioning.xml	2013-09-30 17:17:20 UTC (rev 11762)
+++ CalDAVTester/trunk/scripts/server/serverinfo-partitioning.xml	2013-09-30 20:08:31 UTC (rev 11763)
@@ -56,6 +56,7 @@
 		<!-- <feature>quota-on-resources</feature> -->	<!-- WebDAV QUOTA on calendar and address book object resources -->
 		<feature>resource-id</feature>					<!-- WebDAV BIND DAV:resource-id property -->
 		<feature>sync-report</feature>					<!-- WebDAV collection sync REPORT -->
+		<!-- <feature>sync-report-limit</feature> -->	<!-- WebDAV collection sync REPORT DAV:limit support -->
 		<feature>sync-report-home</feature>				<!-- WebDAV collection sync REPORT on Homes -->
 		<feature>well-known</feature>					<!-- well-known feature -->
 

Modified: CalDAVTester/trunk/scripts/server/serverinfo-template.xml
===================================================================
--- CalDAVTester/trunk/scripts/server/serverinfo-template.xml	2013-09-30 17:17:20 UTC (rev 11762)
+++ CalDAVTester/trunk/scripts/server/serverinfo-template.xml	2013-09-30 20:08:31 UTC (rev 11763)
@@ -56,6 +56,7 @@
 		<!-- <feature>quota-on-resources</feature> -->	<!-- WebDAV QUOTA on calendar and address book object resources -->
 		<feature>resource-id</feature>					<!-- WebDAV BIND DAV:resource-id property -->
 		<feature>sync-report</feature>					<!-- WebDAV collection sync REPORT -->
+		<!-- <feature>sync-report-limit</feature> -->	<!-- WebDAV collection sync REPORT DAV:limit support -->
 		<feature>sync-report-home</feature>				<!-- WebDAV collection sync REPORT on Homes -->
 		<feature>well-known</feature>					<!-- well-known feature -->
 

Modified: CalDAVTester/trunk/scripts/server/serverinfo.xml
===================================================================
--- CalDAVTester/trunk/scripts/server/serverinfo.xml	2013-09-30 17:17:20 UTC (rev 11762)
+++ CalDAVTester/trunk/scripts/server/serverinfo.xml	2013-09-30 20:08:31 UTC (rev 11763)
@@ -56,6 +56,7 @@
 		<!-- <feature>quota-on-resources</feature> -->	<!-- WebDAV QUOTA on calendar and address book object resources -->
 		<feature>resource-id</feature>					<!-- WebDAV BIND DAV:resource-id property -->
 		<feature>sync-report</feature>					<!-- WebDAV collection sync REPORT -->
+		<!-- <feature>sync-report-limit</feature> -->	<!-- WebDAV collection sync REPORT DAV:limit support -->
 		<feature>sync-report-home</feature>				<!-- WebDAV collection sync REPORT on Homes -->
 		<feature>well-known</feature>					<!-- well-known feature -->
 

Modified: CalDAVTester/trunk/scripts/tests/CalDAV/sync-report.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/sync-report.xml	2013-09-30 17:17:20 UTC (rev 11762)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/sync-report.xml	2013-09-30 20:08:31 UTC (rev 11763)
@@ -3933,6 +3933,34 @@
 		</test>
 	</test-suite>
 
+	<test-suite name='limited reports' ignore='no'>
+		<test name='1' ignore='no'>
+			<exclude-feature>
+				<feature>sync-report-limit</feature>
+			</exclude-feature>
+			<description>Limit not allowed</description>
+			<request print-response='no'>
+				<method>REPORT</method>
+				<ruri>$calendarhome1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/reports/sync/21.xml</filepath>
+				</data>
+				<verify>
+					<callback>prepostcondition</callback>
+					<arg>
+						<name>error</name>
+						<value>{DAV:}number-of-matches-within-limits</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/20130930/a736a539/attachment.html>


More information about the calendarserver-changes mailing list