[CalendarServer-changes] [2225] CalDAVTester/trunk/scripts/tests/directory.xml

source_changes at macosforge.org source_changes at macosforge.org
Sun Mar 16 10:45:45 PDT 2008


Revision: 2225
          http://trac.macosforge.org/projects/calendarserver/changeset/2225
Author:   cdaboo at apple.com
Date:     2008-03-16 10:45:45 -0700 (Sun, 16 Mar 2008)

Log Message:
-----------
Test GETs on various common directories.

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

Added: CalDAVTester/trunk/scripts/tests/directory.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/directory.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/directory.xml	2008-03-16 17:45:45 UTC (rev 2225)
@@ -0,0 +1,171 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2007 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.
+
+ DRI: Cyrus Daboo, cdaboo at apple.com
+ -->
+
+<caldavtest>
+	<description>Test GET on collections to ensure proper directory listing</description>
+
+	<start/>
+	
+	<test-suite name='GET on collections'>
+		<test name='1'>
+			<description>GET on root collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>GET on principals collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/principals/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='3'>
+			<description>GET on user principals collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/principals/users/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>GET on group principals collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/principals/groups/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='5'>
+			<description>GET on locations principals collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/principals/locations/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='6'>
+			<description>GET on resources principals collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/principals/resources/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='7'>
+			<description>GET on __uids__ principals collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/principals/__uids__/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>403</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='8'>
+			<description>GET on calendars collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/calendars/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='9'>
+			<description>GET on user calendars collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/calendars/users/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='10'>
+			<description>GET on group calendars collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/calendars/groups/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='11'>
+			<description>GET on locations calendars collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/calendars/locations/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='12'>
+			<description>GET on resources calendars collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/calendars/resources/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='13'>
+			<description>GET on __uids__ calendars collection</description>
+			<request>
+				<method>GET</method>
+				<ruri>/calendars/__uids__/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>403</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/20080316/ca47e128/attachment-0001.html


More information about the calendarserver-changes mailing list