[CalendarServer-changes] [5676] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 3 12:48:56 PDT 2010
Revision: 5676
http://trac.macosforge.org/projects/calendarserver/changeset/5676
Author: cdaboo at apple.com
Date: 2010-06-03 12:48:53 -0700 (Thu, 03 Jun 2010)
Log Message:
-----------
Test that PUT of local Organizer event fails when organizer does not have a copy.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/CalDAV/implicitimip.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/CalDAV/implicit/imip/7.ics
Added: CalDAVTester/trunk/Resource/CalDAV/implicit/imip/7.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/implicit/imip/7.ics (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/implicit/imip/7.ics 2010-06-03 19:48:53 UTC (rev 5676)
@@ -0,0 +1,34 @@
+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
+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/implicitimip.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/implicitimip.xml 2010-06-03 19:31:24 UTC (rev 5675)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/implicitimip.xml 2010-06-03 19:48:53 UTC (rev 5676)
@@ -143,6 +143,60 @@
</test>
</test-suite>
+ <test-suite name='Attempt to store local organized event with SCHEDULE-AGENT=SERVER' ignore='no'>
+ <test name='1'>
+ <description>Attendee stores organized event</description>
+ <request user="$userid2:" pswd="$pswd2:" print-response='no'>
+ <method>PUT</method>
+ <ruri>$calendarpath2:/1.ics</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/CalDAV/implicit/imip/7.ics</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>403</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>Attendee checks data</description>
+ <request print-response='no'>
+ <method>GET</method>
+ <ruri>$calendarpath1:/1.ics</ruri>
+ <verify>
+ <callback>statusCode</callback>
+ <arg>
+ <name>status</name>
+ <value>404</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='3'>
+ <description>Clean-up</description>
+ <request user="$userid1:" pswd="$pswd1:">
+ <method>DELETEALL</method>
+ <ruri>$calendarpath1:/</ruri>
+ </request>
+ <request user="$userid1:" pswd="$pswd1:">
+ <method>DELETEALL</method>
+ <ruri>$inboxpath1:/</ruri>
+ </request>
+ <request user="$userid2:" pswd="$pswd2:">
+ <method>DELETEALL</method>
+ <ruri>$calendarpath2:/</ruri>
+ </request>
+ <request user="$userid2:" pswd="$pswd2:">
+ <method>DELETEALL</method>
+ <ruri>$inboxpath2:/</ruri>
+ </request>
+ </test>
+ </test-suite>
+
<end/>
</caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100603/a9531e4a/attachment-0001.html>
More information about the calendarserver-changes
mailing list