[CalendarServer-changes] [885] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 21 19:38:59 PST 2006


Revision: 885
          http://trac.macosforge.org/projects/calendarserver/changeset/885
Author:   cdaboo at apple.com
Date:     2006-12-21 19:38:59 -0800 (Thu, 21 Dec 2006)

Log Message:
-----------
Start of VAVAILABILITY tests.

Added Paths:
-----------
    CalDAVTester/trunk/Resource/availability/
    CalDAVTester/trunk/Resource/availability/1.ics
    CalDAVTester/trunk/scripts/tests/availability.xml

Added: CalDAVTester/trunk/Resource/availability/1.ics
===================================================================
--- CalDAVTester/trunk/Resource/availability/1.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/availability/1.ics	2006-12-22 03:38:59 UTC (rev 885)
@@ -0,0 +1,36 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//example.com//iCalendar 2.0//EN
+VERSION:2.0
+BEGIN:VTIMEZONE
+LAST-MODIFIED:20040110T032845Z
+TZID:America/Montreal
+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:VAVAILABILITY
+ORGANIZER:mailto:bernard at example.com
+UID:20061005T133225Z-00001 at example.com
+DTSTAMP:20061005T133225Z
+DTSTART;TZID=America/Montreal:20061002T000000
+BEGIN:AVAILABLE
+UID:20061005T133225Z-00001-A at example.com
+SUMMARY:Monday to Friday from 9:00 to 17:00
+DTSTART;TZID=America/Montreal:20061002T090000
+DTEND;TZID=America/Montreal:20061002T170000
+RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+END:AVAILABLE
+END:VAVAILABILITY
+END:VCALENDAR

Added: CalDAVTester/trunk/scripts/tests/availability.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/availability.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/availability.xml	2006-12-22 03:38:59 UTC (rev 885)
@@ -0,0 +1,65 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006 Apple Computer, 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.
+
+ DRI: Cyrus Daboo, cdaboo at apple.com
+ -->
+
+<caldavtest>
+	<description>Test PUT method in CalDAV</description>
+
+	<start/>
+	
+	<test-suite name='PUT VAVAILABILITY'>
+		<test name='1' ignore='no'>
+			<description>PUT availability</description>
+			<request end-delete="yes">
+				<method>PUT</method>
+				<ruri>1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/availability/1.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>ETag$\"0dd19df90dcc91cf6c549ff7ca69ca3a\"</value>
+					</arg>
+				</verify>
+			</request>
+			<request>
+				<method>GET</method>
+				<ruri>1.ics</ruri>
+				<verify>
+					<callback>dataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/availability/1.ics</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/20061221/2f2ee33c/attachment.html


More information about the calendarserver-changes mailing list