[CalendarServer-changes] [8891] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 16 11:01:22 PDT 2012
Revision: 8891
http://trac.macosforge.org/projects/calendarserver/changeset/8891
Author: cdaboo at apple.com
Date: 2012-03-16 11:01:22 -0700 (Fri, 16 Mar 2012)
Log Message:
-----------
Test to make sure organizer orphaned instance scheduling is rejected.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/CalDAV/impliciterrors.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/CalDAV/implicit/errors/organizer-orphaned-instance/
CalDAVTester/trunk/Resource/CalDAV/implicit/errors/organizer-orphaned-instance/1.ics
Added: CalDAVTester/trunk/Resource/CalDAV/implicit/errors/organizer-orphaned-instance/1.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/implicit/errors/organizer-orphaned-instance/1.ics (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/implicit/errors/organizer-orphaned-instance/1.ics 2012-03-16 18:01:22 UTC (rev 8891)
@@ -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
+RECURRENCE-ID;TZID=US/Eastern:20060101T100000
+DTSTART;TZID=US/Eastern:20060101T100000
+DURATION:PT1H
+SUMMARY:event 1
+UID:event1 at ninevah.local
+ORGANIZER;CN=$username1::$cuaddr1:
+ATTENDEE;CN=$username1:;PARTSTAT=ACCEPTED:$cuaddr1:
+ATTENDEE;CN=$username2:;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr2:
+END:VEVENT
+END:VCALENDAR
Modified: CalDAVTester/trunk/scripts/tests/CalDAV/impliciterrors.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/impliciterrors.xml 2012-03-16 18:00:21 UTC (rev 8890)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/impliciterrors.xml 2012-03-16 18:01:22 UTC (rev 8891)
@@ -3,7 +3,7 @@
<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
<!--
- Copyright (c) 2006-2009 Apple Inc. All rights reserved.
+ Copyright (c) 2006-2012 Apple Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -640,6 +640,41 @@
</test>
</test-suite>
+ <test-suite name='Invalid Organizer PUT of orphaned instance' ignore='no'>
+ <test name='1'>
+ <description>Organizer creates event</description>
+ <request print-response='no'>
+ <method>PUT</method>
+ <ruri>$calendarpath1:/123.ics</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/CalDAV/implicit/errors/organizer-orphaned-instance/1.ics</filepath>
+ </data>
+ <verify>
+ <callback>prepostcondition</callback>
+ <arg>
+ <name>error</name>
+ <value>{urn:ietf:params:xml:ns:caldav}organizer-allowed</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>No Organizer resource</description>
+ <request print-response='no'>
+ <method>GET</method>
+ <ruri>$calendarpath1:/123.ics</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>404</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
<end/>
</caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120316/b7926f73/attachment-0001.html>
More information about the calendarserver-changes
mailing list