[CalendarServer-changes] [11325] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 7 09:43:52 PDT 2013


Revision: 11325
          http://trac.calendarserver.org//changeset/11325
Author:   cdaboo at apple.com
Date:     2013-06-07 09:43:52 -0700 (Fri, 07 Jun 2013)
Log Message:
-----------
Test that RRULE with RSCALE is rejected (for now).

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

Added: CalDAVTester/trunk/Resource/CalDAV/rscale/1.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/rscale/1.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/rscale/1.ics	2013-06-07 16:43:52 UTC (rev 11325)
@@ -0,0 +1,12 @@
+BEGIN:VCALENDAR
+VERSION:2.0
+PRODID:-//PYVOBJECT//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:put-1 at example.com
+DTSTART;VALUE=DATE:$now.year.1:0427
+DURATION:P1DT
+DTSTAMP:20051222T205953Z
+SUMMARY:event 1
+RRULE:RSCALE=CHINESE;FREQ=YEARLY
+END:VEVENT
+END:VCALENDAR

Added: CalDAVTester/trunk/scripts/tests/CalDAV/rscale.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/rscale.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/rscale.xml	2013-06-07 16:43:52 UTC (rev 11325)
@@ -0,0 +1,53 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2013 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 PUTs with RSCALE</description>
+
+	<require-feature>
+		<feature>caldav</feature>
+	</require-feature>
+
+	<start/>
+	
+	<test-suite name='PUT VEVENT' ignore='no'>
+		<test name='1' ignore='no'>
+			<description>PUT event with RSCALE</description>
+			<request end-delete='yes'>
+				<method>PUT</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/rscale/1.ics</filepath>
+				</data>
+				<verify>
+					<callback>prepostcondition</callback>
+					<arg>
+						<name>error</name>
+						<value>{urn:ietf:params:xml:ns:caldav}valid-calendar-data</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/20130607/2077c573/attachment-0001.html>


More information about the calendarserver-changes mailing list