[CalendarServer-changes] [5465] CalDAVTester/trunk/scripts

source_changes at macosforge.org source_changes at macosforge.org
Fri Apr 9 13:53:26 PDT 2010


Revision: 5465
          http://trac.macosforge.org/projects/calendarserver/changeset/5465
Author:   cdaboo at apple.com
Date:     2010-04-09 13:53:24 -0700 (Fri, 09 Apr 2010)
Log Message:
-----------
Tests for .well-known uri support.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/server/serverinfo-template.xml
    CalDAVTester/trunk/scripts/server/serverinfo.xml

Added Paths:
-----------
    CalDAVTester/trunk/scripts/tests/CardDAV/well-known.xml

Modified: CalDAVTester/trunk/scripts/server/serverinfo-template.xml
===================================================================
--- CalDAVTester/trunk/scripts/server/serverinfo-template.xml	2010-04-09 20:52:05 UTC (rev 5464)
+++ CalDAVTester/trunk/scripts/server/serverinfo-template.xml	2010-04-09 20:53:24 UTC (rev 5465)
@@ -44,7 +44,7 @@
 		<feature>expand-property</feature>				<!-- Expand property REPORT -->
 		<feature>quota</feature>						<!-- WebDAV QUOTA -->
 		<feature>sync-report</feature>					<!-- WebDAV collection sync REPORT -->
-		<!-- <feature>well-known</feature> -->			<!-- well-known feature -->
+		<feature>well-known</feature>					<!-- well-known feature -->
 
 		<!-- CalDAV specific extension -->
 		<feature>caldav</feature>					    <!-- Basic CalDAV feature enabler -->

Modified: CalDAVTester/trunk/scripts/server/serverinfo.xml
===================================================================
--- CalDAVTester/trunk/scripts/server/serverinfo.xml	2010-04-09 20:52:05 UTC (rev 5464)
+++ CalDAVTester/trunk/scripts/server/serverinfo.xml	2010-04-09 20:53:24 UTC (rev 5465)
@@ -44,7 +44,7 @@
 		<feature>expand-property</feature>				<!-- Expand property REPORT -->
 		<feature>quota</feature>						<!-- WebDAV QUOTA -->
 		<feature>sync-report</feature>					<!-- WebDAV collection sync REPORT -->
-		<!-- <feature>well-known</feature> -->			<!-- well-known feature -->
+		<feature>well-known</feature>					<!-- well-known feature -->
 
 		<!-- CalDAV specific extension -->
 		<feature>caldav</feature>					    <!-- Basic CalDAV feature enabler -->

Added: CalDAVTester/trunk/scripts/tests/CardDAV/well-known.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CardDAV/well-known.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/CardDAV/well-known.xml	2010-04-09 20:53:24 UTC (rev 5465)
@@ -0,0 +1,179 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2009 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 the well-known collection</description>
+
+	<require-feature>
+		<feature>carddav</feature>
+		<feature>well-known</feature>
+	</require-feature>
+
+	<start/>
+	
+	<test-suite name='Simple GET tests'>
+		<test name='1'>
+			<description>Simple GET on top-level authenticated</description>
+			<request>
+				<method>GET</method>
+				<ruri>/.well-known/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Simple GET on top-level unauthenticated</description>
+			<request auth='no'>
+				<method>GET</method>
+				<ruri>/.well-known/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='3'>
+			<description>Simple GET on carddav authenticated</description>
+			<request>
+				<method>GET</method>
+				<ruri>/.well-known/carddav/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>301</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Location$$host:/</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Simple GET on carddav unauthenticated</description>
+			<request auth='no'>
+				<method>GET</method>
+				<ruri>/.well-known/carddav/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>301</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Location$$host:/</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<test-suite name='Simple PROPFIND tests'>
+		<test name='1'>
+			<description>Simple PROPFIND on top-level authenticated</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>/.well-known/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Simple PROPFIND on top-level unauthenticated</description>
+			<request auth='no'>
+				<method>PROPFIND</method>
+				<ruri>/.well-known/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='3'>
+			<description>Simple PROPFIND on carddav authenticated</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>/.well-known/carddav/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>301</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Location$$host:/</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Simple PROPFIND on carddav unauthenticated</description>
+			<request auth='no'>
+				<method>PROPFIND</method>
+				<ruri>/.well-known/carddav/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>301</value>
+					</arg>
+				</verify>
+				<verify>
+					<callback>header</callback>
+					<arg>
+						<name>header</name>
+						<value>Location$$host:/</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/20100409/5788e062/attachment.html>


More information about the calendarserver-changes mailing list