[CalendarServer-changes] [3190] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Sat Oct 18 18:12:24 PDT 2008


Revision: 3190
          http://trac.macosforge.org/projects/calendarserver/changeset/3190
Author:   cdaboo at apple.com
Date:     2008-10-18 18:12:24 -0700 (Sat, 18 Oct 2008)
Log Message:
-----------
Test for preservation of parameters on Content-Type headers.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/tests/put.xml

Added Paths:
-----------
    CalDAVTester/trunk/Resource/recurrenceput/10.xml
    CalDAVTester/trunk/Resource/recurrenceput/9.ics

Added: CalDAVTester/trunk/Resource/recurrenceput/10.xml
===================================================================
--- CalDAVTester/trunk/Resource/recurrenceput/10.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/recurrenceput/10.xml	2008-10-19 01:12:24 UTC (rev 3190)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:getcontenttype/>
+</D:prop>
+</D:propfind>

Added: CalDAVTester/trunk/Resource/recurrenceput/9.ics
===================================================================
--- CalDAVTester/trunk/Resource/recurrenceput/9.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/recurrenceput/9.ics	2008-10-19 01:12:24 UTC (rev 3190)
@@ -0,0 +1,31 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Cyrusoft International\, Inc.//Mulberry v4.0//EN
+VERSION:2.0
+X-WR-CALNAME:CalDAV tests
+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:20060202T205536Z
+DTSTART;TZID=US/Eastern:20060101T120000
+DURATION:PT1H
+SUMMARY:event 1
+UID:event1 at Cyrus-Daboo.local
+END:VEVENT
+END:VCALENDAR

Modified: CalDAVTester/trunk/scripts/tests/put.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/put.xml	2008-10-19 01:11:29 UTC (rev 3189)
+++ CalDAVTester/trunk/scripts/tests/put.xml	2008-10-19 01:12:24 UTC (rev 3190)
@@ -514,6 +514,111 @@
 		</test>
 	</test-suite>
 
+	<test-suite name='PUT with Content-Type parameters'>
+		<test name='1' ignore='no'>
+			<description>PUT</description>
+			<request>
+				<method>PUT</method>
+				<ruri>1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/recurrenceput/9.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='2' ignore='no'>
+			<description>GET</description>
+			<request>
+				<method>GET</method>
+				<ruri>1.ics</ruri>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Content-Type$text/calendar;charset=utf-8</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='3' ignore='no'>
+			<description>PROPFIND</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>1.ics</ruri>
+				<data>
+					<content-type>application/xml; charset=utf-8</content-type>
+					<filepath>Resource/recurrenceput/10.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:getcontenttype$text/calendar;charset=utf-8</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4' ignore='no'>
+			<description>MKCOL</description>
+			<request end-delete="yes">
+				<method>MKCOL</method>
+				<ruri>$pathprefix:/collection/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='5' ignore='no'>
+			<description>PUT</description>
+			<request>
+				<method>PUT</method>
+				<ruri>$pathprefix:/collection/1234</ruri>
+				<data>
+					<content-type>text/calendar; x-mac-auto-archive=yes</content-type>
+					<filepath>Resource/recurrenceput/9.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='6' ignore='no'>
+			<description>GET</description>
+			<request>
+				<method>GET</method>
+				<ruri>$pathprefix:/collection/1234</ruri>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Content-Type$text/calendar;x-mac-auto-archive=yes</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='7' ignore='no'>
+			<description>PROPFIND</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$pathprefix:/collection/1234</ruri>
+				<data>
+					<content-type>application/xml; charset=utf-8</content-type>
+					<filepath>Resource/recurrenceput/10.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:getcontenttype$text/calendar;x-mac-auto-archive=yes</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/20081018/72d2c5ae/attachment.html 


More information about the calendarserver-changes mailing list