[CalendarServer-changes] [507] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 17 07:40:06 PST 2006


Revision: 507
          http://trac.macosforge.org/projects/calendarserver/changeset/507
Author:   cdaboo at apple.com
Date:     2006-11-17 07:40:05 -0800 (Fri, 17 Nov 2006)

Log Message:
-----------
Added test to check that COPY/MOVE of calendar preseverse the resourcetype. Note that the COPY test is ignored for
now as I do not plan on fixing that one just yet...

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

Added Paths:
-----------
    CalDAVTester/trunk/Resource/copymove/7.xml

Added: CalDAVTester/trunk/Resource/copymove/7.xml
===================================================================
--- CalDAVTester/trunk/Resource/copymove/7.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/copymove/7.xml	2006-11-17 15:40:05 UTC (rev 507)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:resourcetype/>
+</D:prop>
+</D:propfind>

Modified: CalDAVTester/trunk/scripts/tests/copymove.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/copymove.xml	2006-11-17 05:13:40 UTC (rev 506)
+++ CalDAVTester/trunk/scripts/tests/copymove.xml	2006-11-17 15:40:05 UTC (rev 507)
@@ -425,6 +425,127 @@
 		</test>
 	</test-suite>
 	
+	<test-suite name='COPY/MOVE and Properties' ignore='no'>
+		<test name='1' ignore="yes">
+			<description>Verify that COPY'ing a calendar preserves the calendar resource type</description>
+			<request>
+				<method>MKCALENDAR</method>
+				<ruri>$pathprefix:/caltest1/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$pathprefix:/caltest1/</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/copymove/7.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:resourcetype$&lt;collection/&gt;&lt;calendar xmlns="urn:ietf:params:xml:ns:caldav"/&gt;</value>
+					</arg>
+				</verify>
+			</request>
+			<request>
+				<method>COPY</method>
+				<header>
+					<name>Destination</name>
+					<value>$host:$pathprefix:/caltest2/</value>
+				</header>
+				<ruri>$pathprefix:/caltest1/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$pathprefix:/caltest2/</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/copymove/7.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:resourcetype$&lt;collection&gt;&lt;calendar xmlns="urn:ietf:params:xml:ns:caldav"&gt;</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Verify that MOVE'ing a calendar preserves the calendar resource type</description>
+			<request>
+				<method>MKCALENDAR</method>
+				<ruri>$pathprefix:/caltest3/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$pathprefix:/caltest3/</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/copymove/7.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:resourcetype$&lt;collection/&gt;&lt;calendar xmlns="urn:ietf:params:xml:ns:caldav"/&gt;</value>
+					</arg>
+				</verify>
+			</request>
+			<request>
+				<method>MOVE</method>
+				<header>
+					<name>Destination</name>
+					<value>$host:$pathprefix:/caltest4/</value>
+				</header>
+				<ruri>$pathprefix:/caltest3/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$pathprefix:/caltest4/</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/copymove/7.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:resourcetype$&lt;collection/&gt;&lt;calendar xmlns="urn:ietf:params:xml:ns:caldav"/&gt;</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+
 	<end>
 		<request>
 			<method>DELETE</method>
@@ -434,6 +555,22 @@
 			<method>DELETE</method>
 			<ruri>move1.ics</ruri>
 		</request>
+		<request>
+			<method>DELETE</method>
+			<ruri>$pathprefix:/caltest1/</ruri>
+		</request>
+		<request>
+			<method>DELETE</method>
+			<ruri>$pathprefix:/caltest2/</ruri>
+		</request>
+		<request>
+			<method>DELETE</method>
+			<ruri>$pathprefix:/caltest3/</ruri>
+		</request>
+		<request>
+			<method>DELETE</method>
+			<ruri>$pathprefix:/caltest4/</ruri>
+		</request>
 	</end>
 	
 </caldavtest>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061117/df504864/attachment.html


More information about the calendarserver-changes mailing list