[CalendarServer-changes] [11762] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 30 10:17:20 PDT 2013


Revision: 11762
          http://trac.calendarserver.org//changeset/11762
Author:   cdaboo at apple.com
Date:     2013-09-30 10:17:20 -0700 (Mon, 30 Sep 2013)
Log Message:
-----------
Add tests for some proposed extensions to VTODO data.

Added Paths:
-----------
    CalDAVTester/trunk/Resource/CalDAV/vtodos/
    CalDAVTester/trunk/Resource/CalDAV/vtodos/1.ics
    CalDAVTester/trunk/Resource/CalDAV/vtodos/2.ics
    CalDAVTester/trunk/Resource/CalDAV/vtodos/3.ics
    CalDAVTester/trunk/Resource/CalDAV/vtodos/4.ics
    CalDAVTester/trunk/Resource/CalDAV/vtodos/5.ics
    CalDAVTester/trunk/scripts/tests/CalDAV/vtodos.xml

Added: CalDAVTester/trunk/Resource/CalDAV/vtodos/1.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/vtodos/1.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/vtodos/1.ics	2013-09-30 17:17:20 UTC (rev 11762)
@@ -0,0 +1,15 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTODO
+DTSTAMP:20060313T145240Z
+STATUS;REASON={com.example}delivery-failed;SUBSTATE=ERROR;MODIFIED=20130212T120000Z;GROUP=G1:FAILED
+STRUCTURED-LOCATION;GROUP=G1:My Office
+COMMENT;MODIFIED=20130226T110451Z;GROUP=G1:My office is cold
+COMMENT;MODIFIED=20130226T100451Z;GROUP=G1:They turned the heat up
+COMMENT;MODIFIED=20130226T090451Z;GROUP=G1:Now I am too hot!
+SUMMARY:Test Task #1
+UID:3025AA3E-FCA6-439A-88AC-4204DE9F122E
+END:VTODO
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/CalDAV/vtodos/2.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/vtodos/2.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/vtodos/2.ics	2013-09-30 17:17:20 UTC (rev 11762)
@@ -0,0 +1,13 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTODO
+DTSTAMP:20060313T145240Z
+STATUS;REASON={com.example}delivery-failed;SUBSTATE=ERROR;MODIFIED=20130212T120000Z;GROUP=G1:FAILED
+ORGANIZER:mailto:x1 at example.com
+ATTENDEE;PARTSTAT=FAILED;MODIFIED=20130212T120000Z;GROUP=G1;REASON={com.example}van-break-down:mailto:x2 at example.com
+SUMMARY:Test Task #2
+UID:D05A8E0C-2EDD-48D1-9628-4C81CB4E8B39
+END:VTODO
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/CalDAV/vtodos/3.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/vtodos/3.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/vtodos/3.ics	2013-09-30 17:17:20 UTC (rev 11762)
@@ -0,0 +1,13 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTODO
+DTSTAMP:20060313T145240Z
+STATUS;REASON={com.example}delivery-scheduled;MODIFIED=20130212T120000Z;GROUP=G1:IN-PROCESS
+SUMMARY:Test Task #3
+UID:D260EAC1-7708-494F-AACD-9AAE374580FC
+RELATED-TO;RELTYPE=FINISHTOSTART;GAP=PT1H:6FC2433C-4EE2-4807-9BE8-FBF1B7B3F431
+RELATED-ID:{com.example.task-definition}delivery
+END:VTODO
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/CalDAV/vtodos/4.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/vtodos/4.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/vtodos/4.ics	2013-09-30 17:17:20 UTC (rev 11762)
@@ -0,0 +1,13 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTODO
+DTSTAMP:20060313T145240Z
+STATUS;REASON={com.example}delivery-scheduled;MODIFIED=20130212T120000Z;GROUP=G1:IN-PROCESS
+SUMMARY:Test Task #4
+UID:6FC2433C-4EE2-4807-9BE8-FBF1B7B3F431
+RELATED-TO;RELTYPE=DEPENDS-ON:D260EAC1-7708-494F-AACD-9AAE374580FC
+RELATED-ID:{com.example.task-definition}delivery
+END:VTODO
+END:VCALENDAR

Added: CalDAVTester/trunk/Resource/CalDAV/vtodos/5.ics
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/vtodos/5.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/vtodos/5.ics	2013-09-30 17:17:20 UTC (rev 11762)
@@ -0,0 +1,13 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Example Inc.//Example Calendar//EN
+VERSION:2.0
+BEGIN:VTODO
+DTSTAMP:20060313T145240Z
+STATUS;REASON={com.example}delivery-success;MODIFIED=20130212T120000Z;GROUP=G1:COMPLETE
+SUMMARY:Test Task #5
+UID:561244C9-7352-463E-9EAD-B0D8BBA18390
+LINK;LINK-TYPE={com.example}signature-image:http://images.example.com/mikes-signature.png
+LINK;LINK-TYPE={com.example}signer-image:http://images.example.com/mikes-headshot.png
+END:VTODO
+END:VCALENDAR

Added: CalDAVTester/trunk/scripts/tests/CalDAV/vtodos.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/vtodos.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/vtodos.xml	2013-09-30 17:17:20 UTC (rev 11762)
@@ -0,0 +1,53 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 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>Tests a bunch of VTODO data</description>
+
+	<require-feature>
+		<feature>caldav</feature>
+	</require-feature>
+
+	<start/>
+	
+	<test-suite name='PUT'>
+		<test name='1'>
+			<description>PUT calendar data</description>
+			<request iterate-data="yes">
+				<method>PUT</method>
+				<ruri>$taskspath1:/**</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/vtodos</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>2xx</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/20130930/41052725/attachment-0001.html>


More information about the calendarserver-changes mailing list