[CalendarServer-changes] [3320] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Nov 4 12:04:41 PST 2008


Revision: 3320
          http://trac.macosforge.org/projects/calendarserver/changeset/3320
Author:   cdaboo at apple.com
Date:     2008-11-04 12:04:40 -0800 (Tue, 04 Nov 2008)
Log Message:
-----------
Tests for proper Schedule-Tag change logic.

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

Added Paths:
-----------
    CalDAVTester/trunk/Resource/implicit/scheduletag/10.ics
    CalDAVTester/trunk/Resource/implicit/scheduletag/11.ics
    CalDAVTester/trunk/Resource/implicit/scheduletag/7.ics
    CalDAVTester/trunk/Resource/implicit/scheduletag/8.ics
    CalDAVTester/trunk/Resource/implicit/scheduletag/9.xml

Added: CalDAVTester/trunk/Resource/implicit/scheduletag/10.ics
===================================================================
--- CalDAVTester/trunk/Resource/implicit/scheduletag/10.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/scheduletag/10.ics	2008-11-04 20:04:40 UTC (rev 3320)
@@ -0,0 +1,35 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+VERSION:2.0
+BEGIN:VTIMEZONE
+LAST-MODIFIED:20040110T032845Z
+TZID:US/Eastern
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+END:VTIMEZONE
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=US/Eastern:20060101T120000
+DURATION:PT1H
+ORGANIZER;CN=User 01:$cuaddr1:
+ATTENDEE;CN=User 01;PARTSTAT=ACCEPTED:$cuaddr1:
+ATTENDEE;CN=User 02;PARTSTAT=ACCEPTED:$cuaddr2:
+ATTENDEE;CN=User 03;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr3:
+SUMMARY:event 1
+UID:event1 at ninevah.local
+END:VEVENT
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/implicit/scheduletag/11.ics
===================================================================
--- CalDAVTester/trunk/Resource/implicit/scheduletag/11.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/scheduletag/11.ics	2008-11-04 20:04:40 UTC (rev 3320)
@@ -0,0 +1,35 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+VERSION:2.0
+BEGIN:VTIMEZONE
+LAST-MODIFIED:20040110T032845Z
+TZID:US/Eastern
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+END:VTIMEZONE
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=US/Eastern:20060101T120000
+DURATION:PT1H
+ORGANIZER;CN=User 01:$cuaddr1:
+ATTENDEE;CN=User 01;PARTSTAT=ACCEPTED:$cuaddr1:
+ATTENDEE;CN=User 02;RSVP=TRUE;PARTSTAT=ACCEPTED:$cuaddr2:
+ATTENDEE;CN=User 03;PARTSTAT=ACCEPTED:$cuaddr3:
+SUMMARY:event 1
+UID:event1 at ninevah.local
+END:VEVENT
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/implicit/scheduletag/7.ics
===================================================================
--- CalDAVTester/trunk/Resource/implicit/scheduletag/7.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/scheduletag/7.ics	2008-11-04 20:04:40 UTC (rev 3320)
@@ -0,0 +1,35 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTIMEZONE
+LAST-MODIFIED:20040110T032845Z
+TZID:US/Eastern
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+END:VTIMEZONE
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=US/Eastern:20060101T100000
+DURATION:PT1H
+ORGANIZER;CN=User 01:$cuaddr1:
+ATTENDEE;CN=User 01;PARTSTAT=ACCEPTED:$cuaddr1:
+ATTENDEE;CN=User 02;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr2:
+ATTENDEE;CN=User 03;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr3:
+SUMMARY:event 1
+UID:event1 at ninevah.local
+END:VEVENT
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/implicit/scheduletag/8.ics
===================================================================
--- CalDAVTester/trunk/Resource/implicit/scheduletag/8.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/scheduletag/8.ics	2008-11-04 20:04:40 UTC (rev 3320)
@@ -0,0 +1,35 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTIMEZONE
+LAST-MODIFIED:20040110T032845Z
+TZID:US/Eastern
+BEGIN:DAYLIGHT
+DTSTART:20000404T020000
+RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
+TZNAME:EDT
+TZOFFSETFROM:-0500
+TZOFFSETTO:-0400
+END:DAYLIGHT
+BEGIN:STANDARD
+DTSTART:20001026T020000
+RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
+TZNAME:EST
+TZOFFSETFROM:-0400
+TZOFFSETTO:-0500
+END:STANDARD
+END:VTIMEZONE
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=US/Eastern:20060101T120000
+DURATION:PT1H
+ORGANIZER;CN=User 01:$cuaddr1:
+ATTENDEE;CN=User 01;PARTSTAT=ACCEPTED:$cuaddr1:
+ATTENDEE;CN=User 02;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr2:
+ATTENDEE;CN=User 03;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr3:
+SUMMARY:event 1
+UID:event1 at ninevah.local
+END:VEVENT
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/implicit/scheduletag/9.xml
===================================================================
--- CalDAVTester/trunk/Resource/implicit/scheduletag/9.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/scheduletag/9.xml	2008-11-04 20:04:40 UTC (rev 3320)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
+<D:prop>
+<D:getetag/>
+<C:schedule-tag/>
+</D:prop>
+</D:propfind>

Modified: CalDAVTester/trunk/scripts/tests/implicitscheduletag.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/implicitscheduletag.xml	2008-11-04 20:04:07 UTC (rev 3319)
+++ CalDAVTester/trunk/scripts/tests/implicitscheduletag.xml	2008-11-04 20:04:40 UTC (rev 3320)
@@ -30,6 +30,10 @@
 			<method>GET</method>
 			<ruri>$calendarpath2:/</ruri>
 		</request>
+		<request user="$userid3:" pswd="$pswd3:">
+			<method>GET</method>
+			<ruri>$calendarpath3:/</ruri>
+		</request>
 	</start>
 	
 	<test-suite name='No schedule-tag' ignore='no'>
@@ -292,6 +296,45 @@
 				</verify>
 			</request>
 		</test>
+		<test name='3'>
+			<description>Attendee event has new schedule tag header</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath2:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag!$schedule-tag-attendee-new:</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Schedule-Tag</name>
+					<variable>$schedule-tag-attendee-new:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Matching property</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee-new:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 
 	<test-suite name='Organizer change to resource with invalid If-Schedule-Tag-Match' ignore='no'>
@@ -335,9 +378,44 @@
 				</verify>
 			</request>
 		</test>
+		<test name='3'>
+			<description>Attendee event has same schedule tag header</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath2:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag$$schedule-tag-attendee-new:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Matching property</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee-new:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 
-	<test-suite name='Attendee change to resource with valid If-Schedule-Tag-Match' ignore='no'>
+	<test-suite name='Attendee non-PARTSTAT change to resource with valid If-Schedule-Tag-Match' ignore='no'>
 		<test name='1'>
 			<description>Updated event has schedule tag header</description>
 			<request user="$userid2:" pswd="$pswd2:" print-response="no">
@@ -392,6 +470,41 @@
 				</verify>
 			</request>
 		</test>
+		<test name='3'>
+			<description>Organizer event has same schedule tag header</description>
+			<request print-response="no">
+				<method>GET</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag$$schedule-tag-organizer-new2:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Matching property</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-organizer-new2:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 
 	<test-suite name='Attendee change to resource with invalid If-Schedule-Tag-Match' ignore='no'>
@@ -435,6 +548,41 @@
 				</verify>
 			</request>
 		</test>
+		<test name='3'>
+			<description>Organizer event has same schedule tag header</description>
+			<request print-response="no">
+				<method>GET</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag$$schedule-tag-organizer-new2:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Matching property</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-organizer-new2:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 
 	<test-suite name='Remove resource schedule-tag behavior' ignore='no'>
@@ -497,7 +645,7 @@
 				<ruri>$calendarpath1:/2.ics</ruri>
 				<data>
 					<content-type>text/calendar; charset=utf-8</content-type>
-					<filepath>Resource/implicit/scheduletag/3.ics</filepath>
+					<filepath>Resource/implicit/scheduletag/7.ics</filepath>
 				</data>
 				<verify>
 					<callback>statusCode</callback>
@@ -511,7 +659,7 @@
 				</verify>
 				<grabheader>
 					<name>Schedule-Tag</name>
-					<variable>$schedule-tag:</variable>
+					<variable>$schedule-tag-organizer:</variable>
 				</grabheader>
 			</request>
 		</test>
@@ -528,7 +676,7 @@
 					<callback>propfindItems</callback>
 					<arg>
 						<name>okprops</name>
-						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag:</value>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-organizer:</value>
 					</arg>
 				</verify>
 			</request>
@@ -550,7 +698,7 @@
 				</verify>
 				<grabheader>
 					<name>Schedule-Tag</name>
-					<variable>$schedule-tag:</variable>
+					<variable>$schedule-tag-attendee02:</variable>
 				</grabheader>
 			</request>
 		</test>
@@ -567,13 +715,479 @@
 					<callback>propfindItems</callback>
 					<arg>
 						<name>okprops</name>
-						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag:</value>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee02:</value>
 					</arg>
 				</verify>
 			</request>
 		</test>
+		<test name='5'>
+			<description>New attendee event has schedule tag header</description>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath3:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Schedule-Tag</name>
+					<variable>$schedule-tag-attendee03:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='6'>
+			<description>Matching property</description>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee03:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 
+	<test-suite name='Organizer change' ignore='no'>
+		<test name='1'>
+			<description>Updated event has changed schedule tag header</description>
+			<request print-response="no">
+				<method>PUT</method>
+				<header>
+					<name>If-Schedule-Tag-Match</name>
+					<value>$schedule-tag-organizer:</value>
+				</header>
+				<ruri>$calendarpath1:/2.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/8.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag!$schedule-tag-organizer:</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Schedule-Tag</name>
+					<variable>$schedule-tag-organizer:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Matching property</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/2.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-organizer:</value>
+						<value>DAV:getetag</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-organizer:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='3'>
+			<description>Attendee event has changed schedule tag header</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath2:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag!$schedule-tag-attendee02:</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Schedule-Tag</name>
+					<variable>$schedule-tag-attendee02:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Matching property</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee02:</value>
+						<value>DAV:getetag</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-attendee02:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='5'>
+			<description>New attendee event has changed schedule tag header</description>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath3:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag!$schedule-tag-attendee03:</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Schedule-Tag</name>
+					<variable>$schedule-tag-attendee03:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='6'>
+			<description>Matching property</description>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee03:</value>
+						<value>DAV:getetag</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-attendee03:</variable>
+				</grabproperty>
+			</request>
+		</test>
+	</test-suite>
+
+	<test-suite name='Attendee 02 change' ignore='no'>
+		<test name='1'>
+			<description>Updated event has changed schedule tag header</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath2:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>PUT</method>
+				<header>
+					<name>If-Schedule-Tag-Match</name>
+					<value>$schedule-tag-attendee02:</value>
+				</header>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/10.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag!$schedule-tag-attendee02:</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Schedule-Tag</name>
+					<variable>$schedule-tag-attendee02:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Matching property</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee02:</value>
+						<value>DAV:getetag!$etag-attendee02:</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-attendee02:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='3'>
+			<description>Organizer has same schedule tag header</description>
+			<request print-response="no">
+				<method>GET</method>
+				<ruri>$calendarpath1:/2.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag$$schedule-tag-organizer:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Matching property</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/2.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-organizer:</value>
+						<value>DAV:getetag!$etag-attendee02:</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-attendee02:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='5'>
+			<description>Attendee has same schedule tag header</description>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath3:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag$$schedule-tag-attendee03:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='6'>
+			<description>Matching property</description>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee03:</value>
+						<value>DAV:getetag!$etag-attendee03:</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-attendee03:</variable>
+				</grabproperty>
+			</request>
+		</test>
+	</test-suite>
+
+	<test-suite name='Attendee 03 change' ignore='no'>
+		<test name='1'>
+			<description>Updated event has changed schedule tag header</description>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath3:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>PUT</method>
+				<header>
+					<name>If-Schedule-Tag-Match</name>
+					<value>$schedule-tag-attendee03:</value>
+				</header>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/11.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag!$schedule-tag-attendee03:</value>
+					</arg>
+				</verify>
+				<grabheader>
+					<name>Schedule-Tag</name>
+					<variable>$schedule-tag-attendee03:</variable>
+				</grabheader>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Matching property</description>
+			<request user="$userid3:" pswd="$pswd3:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee03:</value>
+						<value>DAV:getetag!$etag-attendee03:</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-attendee03:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='3'>
+			<description>Organizer has same schedule tag header</description>
+			<request print-response="no">
+				<method>GET</method>
+				<ruri>$calendarpath1:/2.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag$$schedule-tag-organizer:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Matching property</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/2.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-organizer:</value>
+						<value>DAV:getetag!$etag-attendee02:</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-attendee02:</variable>
+				</grabproperty>
+			</request>
+		</test>
+		<test name='5'>
+			<description>Attendee has same schedule tag header</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>GETNEW</method>
+				<ruri>$calendarpath2:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Schedule-Tag$$schedule-tag-attendee02:</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='6'>
+			<description>Matching property</description>
+			<request user="$userid2:" pswd="$pswd2:" print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/scheduletag/9.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>urn:ietf:params:xml:ns:caldavschedule-tag$$schedule-tag-attendee02:</value>
+						<value>DAV:getetag!$etag-attendee02:</value>
+					</arg>
+				</verify>
+				<grabproperty>
+					<property>DAV:getetag</property>
+					<variable>$etag-attendee02:</variable>
+				</grabproperty>
+			</request>
+		</test>
+	</test-suite>
+
 	<end>
 		<request user="$useradmin:" pswd="$pswdadmin:">
 			<method>DELETEALL</method>
@@ -581,6 +1195,8 @@
 			<ruri>$pathprefix1:/$inbox:/</ruri>
 			<ruri>$pathprefix2:/calendar/</ruri>
 			<ruri>$pathprefix2:/$inbox:/</ruri>
+			<ruri>$pathprefix3:/calendar/</ruri>
+			<ruri>$pathprefix3:/$inbox:/</ruri>
 		</request>
 	</end>
 	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20081104/861cc206/attachment-0001.html>


More information about the calendarserver-changes mailing list