[CalendarServer-changes] [4193] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Wed May 6 09:48:43 PDT 2009


Revision: 4193
          http://trac.macosforge.org/projects/calendarserver/changeset/4193
Author:   cdaboo at apple.com
Date:     2009-05-06 09:48:41 -0700 (Wed, 06 May 2009)
Log Message:
-----------
Test for 403 error when PUT'ing an invalid recurrence-id.

Modified Paths:
--------------
    CalDAVTester/trunk/Resource/implicit/cancels/recurring-remove-some/2.ics
    CalDAVTester/trunk/scripts/tests/errors.xml

Added Paths:
-----------
    CalDAVTester/trunk/Resource/errors/40.ics

Added: CalDAVTester/trunk/Resource/errors/40.ics
===================================================================
--- CalDAVTester/trunk/Resource/errors/40.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/errors/40.ics	2009-05-06 16:48:41 UTC (rev 4193)
@@ -0,0 +1,53 @@
+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:20060102T100000
+DURATION:PT1H
+RRULE:FREQ=WEEKLY
+SUMMARY:event 39
+DESCRIPTION:Too many attendees
+UID:54E181BC7CCC373042B28842-40 at ninevah.local
+END:VEVENT
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=US/Eastern:20060109T150000
+DURATION:PT1H
+RECURRENCE-ID;TZID=US/Eastern:20060109T100000
+SUMMARY:event 39
+DESCRIPTION:Too many attendees
+UID:54E181BC7CCC373042B28842-40 at ninevah.local
+END:VEVENT
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=US/Eastern:20060116T150000
+DURATION:PT1H
+RECURRENCE-ID;TZID=US/Eastern:20060116T160000
+SUMMARY:event 39
+DESCRIPTION:Too many attendees
+UID:54E181BC7CCC373042B28842-40 at ninevah.local
+END:VEVENT
+END:VCALENDAR

Modified: CalDAVTester/trunk/Resource/implicit/cancels/recurring-remove-some/2.ics
===================================================================
--- CalDAVTester/trunk/Resource/implicit/cancels/recurring-remove-some/2.ics	2009-05-06 16:25:12 UTC (rev 4192)
+++ CalDAVTester/trunk/Resource/implicit/cancels/recurring-remove-some/2.ics	2009-05-06 16:48:41 UTC (rev 4193)
@@ -45,15 +45,4 @@
 ATTENDEE;CN=$username1:;PARTSTAT=ACCEPTED:$cuaddr1:
 ATTENDEE;CN=$username2:;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr2:
 END:VEVENT
-BEGIN:VEVENT
-DTSTAMP:20051222T205953Z
-CREATED:20060101T150000Z
-DTSTART;TZID=US/Eastern:20060104T100000
-DURATION:PT1H
-SUMMARY:event 8
-UID:event8 at ninevah.local
-RECURRENCE-ID;TZID=US/Eastern:20060104T100000
-ORGANIZER;CN=$username1::$cuaddr1:
-ATTENDEE;CN=$username1:;PARTSTAT=ACCEPTED:$cuaddr1:
-END:VEVENT
 END:VCALENDAR

Modified: CalDAVTester/trunk/scripts/tests/errors.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/errors.xml	2009-05-06 16:25:12 UTC (rev 4192)
+++ CalDAVTester/trunk/scripts/tests/errors.xml	2009-05-06 16:48:41 UTC (rev 4193)
@@ -417,6 +417,24 @@
 				</verify>
 			</request>
 		</test>
+		<test name='17'>
+			<description>PUT with invalid recurrence id</description>
+			<request print-response='no'>
+				<method>PUT</method>
+				<ruri>$calendarpath1:/3.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/errors/40.ics</filepath>
+				</data>
+				<verify>
+					<callback>prepostcondition</callback>
+					<arg>
+						<name>error</name>
+						<value>urn:ietf:params:xml:ns:caldavvalid-calendar-data</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 	
 	<test-suite name='COPY' ignore='no'>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090506/e862b3f4/attachment.html>


More information about the calendarserver-changes mailing list