[CalendarServer-changes] [3037] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 23 19:46:14 PDT 2008


Revision: 3037
          http://trac.macosforge.org/projects/calendarserver/changeset/3037
Author:   cdaboo at apple.com
Date:     2008-09-23 19:46:14 -0700 (Tue, 23 Sep 2008)
Log Message:
-----------
Test indication to client about what changed when an invite was auto-processed.

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

Added Paths:
-----------
    CalDAVTester/trunk/Resource/implicit/scenario1/simple/12.xml

Added: CalDAVTester/trunk/Resource/implicit/scenario1/simple/12.xml
===================================================================
--- CalDAVTester/trunk/Resource/implicit/scenario1/simple/12.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/scenario1/simple/12.xml	2008-09-24 02:46:14 UTC (rev 3037)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/">
+<D:prop>
+<CS:schedule-changes/>
+</D:prop>
+</D:propfind>

Modified: CalDAVTester/trunk/scripts/tests/implicitscenario1.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/implicitscenario1.xml	2008-09-24 02:45:12 UTC (rev 3036)
+++ CalDAVTester/trunk/scripts/tests/implicitscenario1.xml	2008-09-24 02:46:14 UTC (rev 3037)
@@ -73,7 +73,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/simple/3.xml</filepath>
 				</data>
 				<verify>
@@ -84,6 +84,32 @@
 					</arg>
 				</verify>
 			</request>
+			<request user="$userid2:" pswd="$pswd2:" print-response='no'>
+				<method>GETNEW</method>
+				<ruri>$pathprefix2:/$inbox:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request user="$userid2:" pswd="$pswd2:" print-response='no'>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$</ruri>
+				<data>
+					<content-type>application/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scenario1/simple/12.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>props</name>
+						<value><![CDATA[http://calendarserver.org/ns/schedule-changes$<dtstamp>.*</dtstamp><action><create/></action>]]></value>
+					</arg>
+				</verify>
+			</request>
 		</test>
 		<test name='4'>
 			<description>Attendee has data</description>
@@ -151,7 +177,7 @@
 				</header>
 				<ruri>$pathprefix:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/simple/3.xml</filepath>
 				</data>
 				<verify>
@@ -174,6 +200,25 @@
 					</arg>
 				</verify>
 			</request>
+			<request print-response='no'>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$</ruri>
+				<data>
+					<content-type>application/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scenario1/simple/12.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>props</name>
+						<value><![CDATA[http://calendarserver.org/ns/schedule-changes$<dtstamp>.*</dtstamp><action><reply><attendee>$cuaddr2:</attendee><partstat/></reply></action>]]></value>
+					</arg>
+				</verify>
+			</request>
 		</test>
 		<test name='8'>
 			<description>Organizer data changed</description>
@@ -248,7 +293,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/simple/3.xml</filepath>
 				</data>
 				<verify>
@@ -259,6 +304,32 @@
 					</arg>
 				</verify>
 			</request>
+			<request user="$userid2:" pswd="$pswd2:" print-response='no'>
+				<method>GETNEW</method>
+				<ruri>$pathprefix2:/$inbox:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request user="$userid2:" pswd="$pswd2:" print-response='no'>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$</ruri>
+				<data>
+					<content-type>application/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scenario1/simple/12.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>props</name>
+						<value><![CDATA[http://calendarserver.org/ns/schedule-changes$<dtstamp>.*</dtstamp><action><update><changes><summary/></changes></update></action>]]></value>
+					</arg>
+				</verify>
+			</request>
 		</test>
 		<test name='13'>
 			<description>Attendee has data</description>
@@ -326,7 +397,7 @@
 				</header>
 				<ruri>$pathprefix:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/simple/3.xml</filepath>
 				</data>
 				<verify>
@@ -337,6 +408,32 @@
 					</arg>
 				</verify>
 			</request>
+			<request print-response='no'>
+				<method>GETNEW</method>
+				<ruri>$pathprefix:/$inbox:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request print-response='no'>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$</ruri>
+				<data>
+					<content-type>application/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scenario1/simple/12.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>props</name>
+						<value><![CDATA[http://calendarserver.org/ns/schedule-changes$<dtstamp>.*</dtstamp><action><reply><attendee>$cuaddr2:</attendee><partstat/></reply></action>]]></value>
+					</arg>
+				</verify>
+			</request>
 		</test>
 		<test name='17'>
 			<description>Organizer data changed</description>
@@ -433,7 +530,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/organizerdelete/3.xml</filepath>
 				</data>
 				<verify>
@@ -523,7 +620,7 @@
 				</header>
 				<ruri>$pathprefix:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/organizerdelete/3.xml</filepath>
 				</data>
 				<verify>
@@ -594,7 +691,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/organizerdelete/3.xml</filepath>
 				</data>
 				<verify>
@@ -622,6 +719,25 @@
 					</arg>
 				</verify>
 			</request>
+			<request user="$userid2:" pswd="$pswd2:" print-response='no'>
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$</ruri>
+				<data>
+					<content-type>application/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scenario1/simple/12.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>props</name>
+						<value><![CDATA[http://calendarserver.org/ns/schedule-changes$<dtstamp>.*</dtstamp><action><cancel/></action>]]></value>
+					</arg>
+				</verify>
+			</request>
 		</test>
 		<test name='12'>
 			<description>Attendee data gone</description>
@@ -633,7 +749,7 @@
 				</header>
 				<ruri>$calendarpath2:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/organizerdelete/3.xml</filepath>
 				</data>
 				<verify>
@@ -726,7 +842,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/attendeedelete/3.xml</filepath>
 				</data>
 				<verify>
@@ -804,7 +920,7 @@
 				</header>
 				<ruri>$pathprefix:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/attendeedelete/3.xml</filepath>
 				</data>
 				<verify>
@@ -882,7 +998,7 @@
 				</header>
 				<ruri>$pathprefix:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/attendeedelete/3.xml</filepath>
 				</data>
 				<verify>
@@ -989,7 +1105,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/alarms/3.xml</filepath>
 				</data>
 				<verify>
@@ -1078,7 +1194,7 @@
 				</header>
 				<ruri>$pathprefix:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/alarms/3.xml</filepath>
 				</data>
 				<verify>
@@ -1174,7 +1290,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/alarms/3.xml</filepath>
 				</data>
 				<verify>
@@ -1270,7 +1386,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/alarms/3.xml</filepath>
 				</data>
 				<verify>
@@ -1334,7 +1450,7 @@
 				</header>
 				<ruri>$pathprefix2:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/alarms/3.xml</filepath>
 				</data>
 				<verify>
@@ -1391,7 +1507,7 @@
 				</header>
 				<ruri>$pathprefix:/$inbox:/</ruri>
 				<data>
-					<content-type>text/calendar; charset=utf-8</content-type>
+					<content-type>application/xml; charset=utf-8</content-type>
 					<filepath>Resource/implicit/scenario1/alarms/3.xml</filepath>
 				</data>
 				<verify>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080923/096def20/attachment-0001.html 


More information about the calendarserver-changes mailing list