[CalendarServer-changes] [5840] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Jul 2 09:41:24 PDT 2010


Revision: 5840
          http://trac.macosforge.org/projects/calendarserver/changeset/5840
Author:   glyph at apple.com
Date:     2010-07-02 09:41:24 -0700 (Fri, 02 Jul 2010)
Log Message:
-----------
First add an iCalendar resource which points at the dropbox, in order to provide the information necessary to associate the attachment with its calendar object.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/tests/CalDAV/dropbox.xml

Added Paths:
-----------
    CalDAVTester/trunk/Resource/CalDAV/dropbox/1.ics

Added: CalDAVTester/trunk/Resource/CalDAV/dropbox/1.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/dropbox/1.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/dropbox/1.ics	2010-07-02 16:41:24 UTC (rev 5840)
@@ -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
+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:
+ATTACH;VALUE=URI:$host:$dropboxpath1:/ABCEFG/caldavd.plist
+X-APPLE-DROPBOX:$dropboxpath1:/ABCEFG
+END:VEVENT
+END:VCALENDAR

Modified: CalDAVTester/trunk/scripts/tests/CalDAV/dropbox.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/dropbox.xml	2010-07-02 16:39:59 UTC (rev 5839)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/dropbox.xml	2010-07-02 16:41:24 UTC (rev 5840)
@@ -2,9 +2,8 @@
 
 <!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
 
-<!--
+	<!--
  Copyright (c) 2006-2010 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
@@ -16,7 +15,7 @@
  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 drop box features</description>
@@ -26,8 +25,18 @@
 		<feature>dropbox</feature>
 	</require-feature>
 
-	<start/>
-	
+	<start>
+		<request print-response='yes' user="$userid1:" pswd="$pswd1:"
+			end-delete='yes'>
+			<method>PUT</method>
+			<ruri>$calendarpath1:/1.ics</ruri>
+			<data>
+				<content-type>text/calendar; charset=utf-8</content-type>
+				<filepath>Resource/CalDAV/dropbox/1.ics</filepath>
+			</data>
+		</request>
+	</start>
+
 	<test-suite name='Principal properties'>
 		<test name='1'>
 			<description>Look for properties</description>
@@ -79,7 +88,7 @@
 	<test-suite name='Drop Box Collection Create'>
 		<test name='1'>
 			<description>Create drop box</description>
-			<request end-delete='yes'>
+			<request end-delete='yes' user="$userid1:" pswd="$pswd1:">
 				<method>MKCOL</method>
 				<ruri>$dropboxpath1:/ABCEFG/</ruri>
 				<verify>
@@ -131,7 +140,7 @@
 		</test>
 		<test name='2'>
 			<description>Verify that user01 can read it</description>
-			<request>
+			<request user='$userid1:' pswd='$pswd1:'>
 				<method>GET</method>
 				<ruri>$dropboxpath1:/ABCEFG/test.xml</ruri>
 				<verify>
@@ -292,7 +301,7 @@
 			</request>
 		</test>
 	</test-suite>
-	
+
 	<end/>
 
 </caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100702/378bc859/attachment.html>


More information about the calendarserver-changes mailing list