[CalendarServer-changes] [6706] CalDAVTester/trunk/scripts/tests/CalDAV/ctag.xml

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 21 12:24:18 PST 2010


Revision: 6706
          http://trac.macosforge.org/projects/calendarserver/changeset/6706
Author:   cdaboo at apple.com
Date:     2010-12-21 12:24:12 -0800 (Tue, 21 Dec 2010)
Log Message:
-----------
Make sure Depth:0 and Depth:1 ctags on a collection are the same when changes happen in the collection.

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

Modified: CalDAVTester/trunk/scripts/tests/CalDAV/ctag.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/ctag.xml	2010-12-21 20:23:22 UTC (rev 6705)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/ctag.xml	2010-12-21 20:24:12 UTC (rev 6706)
@@ -65,7 +65,7 @@
 		</request>
 	</start>
 	
-	<test-suite name='PUT/DELETE/COPY/MOVE'>
+	<test-suite name='PUT/DELETE/COPY/MOVE' ignore='no'>
 		<test name='1'>
 			<description>Check for CTag</description>
 			<request>
@@ -446,7 +446,7 @@
 		</test>
 	</test-suite>
 	
-	<test-suite name='Scheduling'>
+	<test-suite name='Scheduling' ignore='no'>
 		<test name='1'>
 			<description>Check for CTag on calendar</description>
 			<request print-response='no'>
@@ -559,6 +559,189 @@
 		</test>
 	</test-suite>
 	
+	<test-suite name='Same for each Depth'>
+		<test name='1'>
+			<description>Check for CTag Depth:0</description>
+			<request print-response='no'>
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/ctag/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>{http://calendarserver.org/ns/}getctag</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>{http://calendarserver.org/ns/}getctag</property>
+					<variable>$getctag1:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Check for CTag Depth:1</description>
+			<request print-response='no'>
+				<method>PROPFIND</method>
+				<ruri>$pathprefix1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/ctag/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>only</name>
+						<value>$calendarpath1:/</value>
+					</arg>
+					<arg>
+						<name>okprops</name>
+						<value>{http://calendarserver.org/ns/}getctag$$getctag1:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='3'>
+			<description>Add/update resource</description>
+			<request end-delete="yes">
+				<method>PUT</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/delete/1.txt</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Check for CTag Depth:0</description>
+			<request print-response='no'>
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/ctag/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>{http://calendarserver.org/ns/}getctag</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>{http://calendarserver.org/ns/}getctag</property>
+					<variable>$getctag1:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='5'>
+			<description>Check for CTag Depth:1</description>
+			<request print-response='no'>
+				<method>PROPFIND</method>
+				<ruri>$pathprefix1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/ctag/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>only</name>
+						<value>$calendarpath1:/</value>
+					</arg>
+					<arg>
+						<name>okprops</name>
+						<value>{http://calendarserver.org/ns/}getctag$$getctag1:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='6'>
+			<description>Delete resource</description>
+			<request>
+				<method>DELETE</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='7'>
+			<description>Check for CTag Depth:0</description>
+			<request print-response='no'>
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/ctag/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>{http://calendarserver.org/ns/}getctag</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>{http://calendarserver.org/ns/}getctag</property>
+					<variable>$getctag1:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='8'>
+			<description>Check for CTag Depth:1</description>
+			<request print-response='no'>
+				<method>PROPFIND</method>
+				<ruri>$pathprefix1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/ctag/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>only</name>
+						<value>$calendarpath1:/</value>
+					</arg>
+					<arg>
+						<name>okprops</name>
+						<value>{http://calendarserver.org/ns/}getctag$$getctag1:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+
 	<end>
 		<request>
 			<method>DELETE</method>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20101221/b9557d6c/attachment-0001.html>


More information about the calendarserver-changes mailing list