[CalendarServer-changes] [359] CalDAVTester/trunk/scripts/tests/get.xml

source_changes at macosforge.org source_changes at macosforge.org
Fri Nov 3 13:33:44 PST 2006


Revision: 359
          http://trac.macosforge.org/projects/calendarserver/changeset/359
Author:   cdaboo at apple.com
Date:     2006-11-03 13:33:43 -0800 (Fri, 03 Nov 2006)

Log Message:
-----------
Test for GET on collections/calendars.

Added Paths:
-----------
    CalDAVTester/trunk/scripts/tests/get.xml

Added: CalDAVTester/trunk/scripts/tests/get.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/get.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/get.xml	2006-11-03 21:33:43 UTC (rev 359)
@@ -0,0 +1,124 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006 Apple Computer, 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.
+
+ DRI: Cyrus Daboo, cdaboo at apple.com
+ -->
+
+<caldavtest>
+	<description>Test GET on collections to ensure proper directory listing, calendar aggregation behavior</description>
+
+	<start>
+		<request end-delete="yes" print-response="yes">
+			<method>PUT</method>
+			<ruri>1.ics</ruri>
+			<data>
+				<content-type>text/calendar; charset=utf-8</content-type>
+				<filepath>Resource/delete/1.txt</filepath>
+			</data>
+		</request>
+		<request end-delete="yes">
+			<method>PUT</method>
+			<ruri>$pathprefix:/1todo.ics</ruri>
+			<data>
+				<content-type>text/calendar; charset=utf-8</content-type>
+				<filepath>Resource/todo/1.txt</filepath>
+			</data>
+		</request>
+	</start>
+	
+	<test-suite name='GET on resource'>
+		<test name='1'>
+			<description>GET from calendar collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>1.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>dataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/delete/1.txt</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Get from regular collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>$pathprefix:/1todo.ics</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>dataMatch</callback>
+					<arg>
+						<name>filepath</name>
+						<value>Resource/todo/1.txt</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<test-suite name='GET on collections'>
+		<test name='1'>
+			<description>GET on calendar collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>$calendarpath1:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>contains</name>
+						<value>BEGIN:VEVENT</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Get on regular collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>$pathprefix:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>contains</name>
+						<value>1todo.ics</value>
+						<value>calendar</value>
+						<value>inbox</value>
+						<value>outbox</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/20061103/6551f167/attachment.html


More information about the calendarserver-changes mailing list