[CalendarServer-changes] [13623] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Jun 10 07:19:49 PDT 2014


Revision: 13623
          http://trac.calendarserver.org//changeset/13623
Author:   cdaboo at apple.com
Date:     2014-06-10 07:19:49 -0700 (Tue, 10 Jun 2014)
Log Message:
-----------
Test that non-standard missing timezone PUT is rejected.

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

Added Paths:
-----------
    CalDAVTester/trunk/Resource/CalDAV/errors/49.ics

Added: CalDAVTester/trunk/Resource/CalDAV/errors/49.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/errors/49.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/errors/49.ics	2014-06-10 14:19:49 UTC (rev 13623)
@@ -0,0 +1,13 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VEVENT
+DTSTAMP:20051222T205953Z
+CREATED:20060101T150000Z
+DTSTART;TZID=Bogus:$now.year.1:0101T100000
+DURATION:PT1H
+SUMMARY:event 1
+UID:54E181BC7CCC373042B28842 at ninevah.local
+END:VEVENT
+END:VCALENDAR

Modified: CalDAVTester/trunk/scripts/tests/CalDAV/errors.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/errors.xml	2014-06-09 20:40:39 UTC (rev 13622)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/errors.xml	2014-06-10 14:19:49 UTC (rev 13623)
@@ -610,6 +610,27 @@
 				</verify>
 			</request>
 		</test>
+		<test name='24'>
+			<require-feature>
+				<feature>timezones-by-reference</feature>
+			</require-feature>
+			<description>PUT with missing timezone</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/CalDAV/errors/49.ics</filepath>
+				</data>
+				<verify>
+					<callback>prepostcondition</callback>
+					<arg>
+						<name>error</name>
+						<value>{urn:ietf:params:xml:ns:caldav}valid-timezone</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 	
 	<test-suite name='COPY'>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140610/2bed14a5/attachment.html>


More information about the calendarserver-changes mailing list