[CalendarServer-changes] [3407] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Sun Nov 23 20:26:35 PST 2008


Revision: 3407
          http://trac.macosforge.org/projects/calendarserver/changeset/3407
Author:   cdaboo at apple.com
Date:     2008-11-23 20:26:35 -0800 (Sun, 23 Nov 2008)
Log Message:
-----------
Test option to control what types of "record" can be an Organizer of an event.

Added Paths:
-----------
    CalDAVTester/trunk/Resource/implicit/errors/
    CalDAVTester/trunk/Resource/implicit/errors/1.ics
    CalDAVTester/trunk/scripts/tests/impliciterrors.xml

Added: CalDAVTester/trunk/Resource/implicit/errors/1.ics
===================================================================
--- CalDAVTester/trunk/Resource/implicit/errors/1.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/errors/1.ics	2008-11-24 04:26:35 UTC (rev 3407)
@@ -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=User 01:$rcuaddralt1:
+ATTENDEE;CN=User 01;PARTSTAT=ACCEPTED:$rcuaddralt1:
+ATTENDEE;CN=User 02;RSVP=TRUE;PARTSTAT=NEEDS-ACTION:$cuaddr2:
+END:VEVENT
+END:VCALENDAR

Added: CalDAVTester/trunk/scripts/tests/impliciterrors.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/impliciterrors.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/impliciterrors.xml	2008-11-24 04:26:35 UTC (rev 3407)
@@ -0,0 +1,49 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2007 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 errors</description>
+
+	<start/>
+	
+	<test-suite name='Allowed Organizers' ignore='no'>
+		<test name='1'>
+			<description>Organizer (resource) invites Attendee</description>
+			<request print-response='no'>
+				<method>PUT</method>
+				<ruri>$rcalendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/implicit/errors/1.ics</filepath>
+				</data>
+				<verify>
+					<callback>prepostcondition</callback>
+					<arg>
+						<name>error</name>
+						<value>urn:ietf:params:xml:ns:caldavorganizer-allowed</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/20081123/7535ee09/attachment-0001.html>


More information about the calendarserver-changes mailing list