[CalendarServer-changes] [2517] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Fri May 30 10:52:52 PDT 2008
Revision: 2517
http://trac.macosforge.org/projects/calendarserver/changeset/2517
Author: cdaboo at apple.com
Date: 2008-05-30 10:52:50 -0700 (Fri, 30 May 2008)
Log Message:
-----------
Start work on some tests that emulate typical behavior of the iCal client.
Added Paths:
-----------
CalDAVTester/trunk/Resource/ical-client/
CalDAVTester/trunk/Resource/ical-client/1.xml
CalDAVTester/trunk/scripts/tests/ical-client.xml
Added: CalDAVTester/trunk/Resource/ical-client/1.xml
===================================================================
--- CalDAVTester/trunk/Resource/ical-client/1.xml (rev 0)
+++ CalDAVTester/trunk/Resource/ical-client/1.xml 2008-05-30 17:52:50 UTC (rev 2517)
@@ -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/scripts/tests/ical-client.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/ical-client.xml (rev 0)
+++ CalDAVTester/trunk/scripts/tests/ical-client.xml 2008-05-30 17:52:50 UTC (rev 2517)
@@ -0,0 +1,77 @@
+<?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>Emulate the common behaviors of the iCal client</description>
+
+ <start/>
+
+ <test-suite name='Account setup'>
+ <test name='1'>
+ <description>PROPFIND principal - no authentication</description>
+ <request auth="no">
+ <method>PROPFIND</method>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$principal1:</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/ical-client/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>
+ <header>
+ <name>Depth</name>
+ <value>0</value>
+ </header>
+ <ruri>$principal1:</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/ical-client/1.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/20080530/55ee2b1f/attachment.htm
More information about the calendarserver-changes
mailing list