[CalendarServer-changes] [5488] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Sat Apr 17 12:13:13 PDT 2010


Revision: 5488
          http://trac.macosforge.org/projects/calendarserver/changeset/5488
Author:   cdaboo at apple.com
Date:     2010-04-17 12:13:08 -0700 (Sat, 17 Apr 2010)
Log Message:
-----------
Some client modeled behaviors.

Added Paths:
-----------
    CalDAVTester/trunk/Resource/clients/
    CalDAVTester/trunk/Resource/clients/iCal-3/
    CalDAVTester/trunk/Resource/clients/iCal-3/1.xml
    CalDAVTester/trunk/Resource/clients/iCal-3/2.xml
    CalDAVTester/trunk/Resource/clients/iCal-3/3.xml
    CalDAVTester/trunk/Resource/clients/iCal-4/
    CalDAVTester/trunk/Resource/clients/iCal-4/1.xml
    CalDAVTester/trunk/Resource/clients/iCal-4/2.xml
    CalDAVTester/trunk/Resource/clients/iCal-4/3.xml
    CalDAVTester/trunk/Resource/clients/iCal-4/4.xml
    CalDAVTester/trunk/scripts/clients/
    CalDAVTester/trunk/scripts/clients/ical-3.xml
    CalDAVTester/trunk/scripts/clients/ical-4.xml

Added: CalDAVTester/trunk/Resource/clients/iCal-3/1.xml
===================================================================
--- CalDAVTester/trunk/Resource/clients/iCal-3/1.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/clients/iCal-3/1.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x0:propfind xmlns:x2="http://calendarserver.org/ns/" xmlns:x1="urn:ietf:params:xml:ns:caldav" xmlns:x0="DAV:">
+ <x0:prop>
+  <x1:calendar-home-set/>
+  <x1:calendar-user-address-set/>
+  <x1:schedule-inbox-URL/>
+  <x1:schedule-outbox-URL/>
+  <x2:dropbox-home-URL/>
+  <x2:notifications-URL/>
+  <x0:displayname/>
+ </x0:prop>
+</x0:propfind>

Added: CalDAVTester/trunk/Resource/clients/iCal-3/2.xml
===================================================================
--- CalDAVTester/trunk/Resource/clients/iCal-3/2.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/clients/iCal-3/2.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x0:propfind xmlns:x1="http://calendarserver.org/ns/" xmlns:x0="DAV:" xmlns:x3="http://apple.com/ns/ical/" xmlns:x2="urn:ietf:params:xml:ns:caldav">
+ <x0:prop>
+  <x1:getctag/>
+  <x0:displayname/>
+  <x2:calendar-description/>
+  <x3:calendar-color/>
+  <x3:calendar-order/>
+  <x0:resourcetype/>
+  <x2:calendar-free-busy-set/>
+ </x0:prop>
+</x0:propfind>

Added: CalDAVTester/trunk/Resource/clients/iCal-3/3.xml
===================================================================
--- CalDAVTester/trunk/Resource/clients/iCal-3/3.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/clients/iCal-3/3.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x0:propfind xmlns:x0="DAV:">
+ <x0:prop>
+  <x0:getetag/>
+  <x0:resourcetype/>
+ </x0:prop>
+</x0:propfind>

Added: CalDAVTester/trunk/Resource/clients/iCal-4/1.xml
===================================================================
--- CalDAVTester/trunk/Resource/clients/iCal-4/1.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/clients/iCal-4/1.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x0:propfind xmlns:x1="urn:ietf:params:xml:ns:caldav" xmlns:x0="DAV:" xmlns:x2="http://calendarserver.org/ns/">
+ <x0:prop>
+  <x0:principal-collection-set/>
+  <x1:calendar-home-set/>
+  <x1:calendar-user-address-set/>
+  <x1:schedule-inbox-URL/>
+  <x1:schedule-outbox-URL/>
+  <x2:dropbox-home-URL/>
+  <x2:xmpp-uri/>
+  <x0:displayname/>
+  <x0:principal-URL/>
+  <x0:supported-report-set/>
+ </x0:prop>
+</x0:propfind>

Added: CalDAVTester/trunk/Resource/clients/iCal-4/2.xml
===================================================================
--- CalDAVTester/trunk/Resource/clients/iCal-4/2.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/clients/iCal-4/2.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x0:propfind xmlns:x0="DAV:" xmlns:x3="http://apple.com/ns/ical/" xmlns:x1="http://calendarserver.org/ns/" xmlns:x2="urn:ietf:params:xml:ns:caldav">
+ <x0:prop>
+  <x1:xmpp-server/>
+  <x1:xmpp-uri/>
+  <x1:getctag/>
+  <x0:displayname/>
+  <x2:calendar-description/>
+  <x3:calendar-color/>
+  <x3:calendar-order/>
+  <x2:supported-calendar-component-set/>
+  <x0:resourcetype/>
+  <x2:calendar-free-busy-set/>
+  <x2:schedule-calendar-transp/>
+  <x2:schedule-default-calendar-URL/>
+  <x0:quota-available-bytes/>
+  <x0:quota-used-bytes/>
+  <x2:calendar-timezone/>
+  <x0:current-user-privilege-set/>
+ </x0:prop>
+</x0:propfind>

Added: CalDAVTester/trunk/Resource/clients/iCal-4/3.xml
===================================================================
--- CalDAVTester/trunk/Resource/clients/iCal-4/3.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/clients/iCal-4/3.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<x0:propfind xmlns:x0="DAV:">
+ <x0:prop>
+  <x0:getetag/>
+  <x0:resourcetype/>
+ </x0:prop>
+</x0:propfind>

Added: CalDAVTester/trunk/Resource/clients/iCal-4/4.xml
===================================================================
--- CalDAVTester/trunk/Resource/clients/iCal-4/4.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/clients/iCal-4/4.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<x0:expand-property xmlns:x0="DAV:">
+  <x0:property name="calendar-proxy-write-for" namespace="http://calendarserver.org/ns/">
+    <x0:property name="displayname"/><x0:property name="principal-URL"/>
+    <x0:property name="calendar-user-address-set" namespace="urn:ietf:params:xml:ns:caldav"/>
+  </x0:property>
+  <x0:property name="calendar-proxy-read-for" namespace="http://calendarserver.org/ns/">
+    <x0:property name="displayname"/><x0:property name="principal-URL"/>
+    <x0:property name="calendar-user-address-set" namespace="urn:ietf:params:xml:ns:caldav"/>
+  </x0:property>
+</x0:expand-property>

Added: CalDAVTester/trunk/scripts/clients/ical-3.xml
===================================================================
--- CalDAVTester/trunk/scripts/clients/ical-3.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/clients/ical-3.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,125 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2008 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>Emulate the common behaviors of the iCal client</description>
+
+	<start/>
+	
+	<test-suite name='Account setup' ignore='yes'>
+		<test name='1' ignore='yes'>
+			<description>PROPFIND principal - no authentication</description>
+			<request auth="no">
+				<method>PROPFIND</method>
+				<ruri>$principal1:</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-3/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>401</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>PROPFIND principal - with authentication</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$principal1:</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-3/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>207</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<test-suite name='Polling' ignore='yes'>
+		<test name='1'>
+			<description>PROPFIND calendar home</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$pathprefix:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-3/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>207</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<test-suite name='Calendar change check' ignore='no'>
+		<test name='1'>
+			<description>PROPFIND calendar</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-3/3.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>207</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<end/>
+	
+</caldavtest>

Added: CalDAVTester/trunk/scripts/clients/ical-4.xml
===================================================================
--- CalDAVTester/trunk/scripts/clients/ical-4.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/clients/ical-4.xml	2010-04-17 19:13:08 UTC (rev 5488)
@@ -0,0 +1,150 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2008 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>Emulate the common behaviors of the iCal client</description>
+
+	<start/>
+	
+	<test-suite name='Account setup' ignore='yes'>
+		<test name='1' ignore='yes'>
+			<description>PROPFIND principal - no authentication</description>
+			<request auth="no">
+				<method>PROPFIND</method>
+				<ruri>$principal1:</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-4/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>401</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>PROPFIND principal - with authentication</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$principal1:</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-4/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>207</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<test-suite name='Polling' ignore='yes'>
+		<test name='1'>
+			<description>PROPFIND calendar home</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$pathprefix:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-4/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>207</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<test-suite name='Calendar change check' ignore='yes'>
+		<test name='1'>
+			<description>PROPFIND calendar</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<ruri>$calendarpath1:/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-4/3.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>207</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<test-suite name='Expand property report' ignore='no'>
+		<test name='1'>
+			<description>REPORT principal</description>
+			<request print-response="no">
+				<method>REPORT</method>
+				<ruri>$principal1:</ruri>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/clients/ical-4/4.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>207</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/20100417/cc0d5ecf/attachment-0001.html>


More information about the calendarserver-changes mailing list