[CalendarServer-changes] [4783] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Thu Nov 19 19:17:36 PST 2009
Revision: 4783
http://trac.macosforge.org/projects/calendarserver/changeset/4783
Author: cdaboo at apple.com
Date: 2009-11-19 19:17:16 -0800 (Thu, 19 Nov 2009)
Log Message:
-----------
Test to make sure SCHEDULE-STATUS error is set on non-scheduling attendee operations.
Modified Paths:
--------------
CalDAVTester/trunk/scripts/tests/errors.xml
Added Paths:
-----------
CalDAVTester/trunk/Resource/implicit/imip/
CalDAVTester/trunk/Resource/implicit/imip/1.ics
CalDAVTester/trunk/Resource/implicit/imip/2.ics
CalDAVTester/trunk/scripts/tests/implicitimip.xml
Added: CalDAVTester/trunk/Resource/implicit/imip/1.ics
===================================================================
--- CalDAVTester/trunk/Resource/implicit/imip/1.ics (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/imip/1.ics 2009-11-20 03:17:16 UTC (rev 4783)
@@ -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=Off Server:mailto:someone at example.org
+ATTENDEE;CN=Off Server;PARTSTAT=ACCEPTED:mailto:someone at example.org
+ATTENDEE;CN=$username1:;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr1:
+END:VEVENT
+END:VCALENDAR
Added: CalDAVTester/trunk/Resource/implicit/imip/2.ics
===================================================================
--- CalDAVTester/trunk/Resource/implicit/imip/2.ics (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/imip/2.ics 2009-11-20 03:17:16 UTC (rev 4783)
@@ -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=Off Server;SCHEDULE-STATUS=5.3:mailto:someone at example.org
+ATTENDEE;CN=Off Server;PARTSTAT=ACCEPTED:mailto:someone at example.org
+ATTENDEE;CN=$username1:;EMAIL=$email1:;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddrurn1:
+END:VEVENT
+END:VCALENDAR
Modified: CalDAVTester/trunk/scripts/tests/errors.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/errors.xml 2009-11-20 01:40:44 UTC (rev 4782)
+++ CalDAVTester/trunk/scripts/tests/errors.xml 2009-11-20 03:17:16 UTC (rev 4783)
@@ -441,6 +441,8 @@
</verify>
</request>
</test>
+ <!-- Disabled because we accept any Organizer now but mark the property as invalid
+ in the calendar data.
<test name='18'>
<description>PUT with bad organizer property</description>
<request print-response='no'>
@@ -459,6 +461,7 @@
</verify>
</request>
</test>
+ -->
</test-suite>
<test-suite name='COPY' ignore='no'>
Added: CalDAVTester/trunk/scripts/tests/implicitimip.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/implicitimip.xml (rev 0)
+++ CalDAVTester/trunk/scripts/tests/implicitimip.xml 2009-11-20 03:17:16 UTC (rev 4783)
@@ -0,0 +1,91 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2008 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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<caldavtest>
+ <description>Test implicit scheduling with dropbox</description>
+
+ <require-feature>
+ <feature>implicit-scheduling</feature>
+ </require-feature>
+
+ <start>
+ <request user="$userid1:" pswd="$pswd1:">
+ <method>GET</method>
+ <ruri>$calendarpath1:/</ruri>
+ </request>
+ <request user="$userid2:" pswd="$pswd2:">
+ <method>GET</method>
+ <ruri>$calendarpath2:/</ruri>
+ </request>
+ </start>
+
+ <test-suite name='Simple dropbox' ignore='no'>
+ <test name='1'>
+ <description>Attendee stores organized event</description>
+ <request print-response='no'>
+ <method>PUT</method>
+ <ruri>$calendarpath1:/1.ics</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/implicit/imip/1.ics</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ </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>calendarDataMatch</callback>
+ <arg>
+ <name>filepath</name>
+ <value>Resource/implicit/imip/2.ics</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/20091119/167b2e7a/attachment-0001.html>
More information about the calendarserver-changes
mailing list