[CalendarServer-changes] [877] CalDAVTester/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Wed Dec 20 23:02:10 PST 2006
Revision: 877
http://trac.macosforge.org/projects/calendarserver/changeset/877
Author: cdaboo at apple.com
Date: 2006-12-20 23:02:09 -0800 (Wed, 20 Dec 2006)
Log Message:
-----------
Tests for calendar user proxies.
Added Paths:
-----------
CalDAVTester/trunk/Resource/calendaruserproxy/
CalDAVTester/trunk/Resource/calendaruserproxy/1.xml
CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml
Added: CalDAVTester/trunk/Resource/calendaruserproxy/1.xml
===================================================================
--- CalDAVTester/trunk/Resource/calendaruserproxy/1.xml (rev 0)
+++ CalDAVTester/trunk/Resource/calendaruserproxy/1.xml 2006-12-21 07:02:09 UTC (rev 877)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:resourcetype/>
+</D:prop>
+</D:propfind>
Added: CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml (rev 0)
+++ CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml 2006-12-21 07:02:09 UTC (rev 877)
@@ -0,0 +1,89 @@
+<?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 drop box features</description>
+
+ <start/>
+
+ <test-suite name='Principal resources'>
+ <test name='1'>
+ <description>Look for proxy principals</description>
+ <request print-response="no">
+ <method>PROPFIND</method>
+ <ruri>$principal:/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/calendaruserproxy/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>multistatusItems</callback>
+ <arg>
+ <name>okhrefs</name>
+ <value></value>
+ <value>calendar-proxy-read/</value>
+ <value>calendar-proxy-write/</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='2'>
+ <description>Check resource type of read-only proxy principal</description>
+ <request>
+ <method>PROPFIND</method>
+ <ruri>$principal:/calendar-proxy-read/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/calendaruserproxy/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:resourcetype$<principal/><collection/><calendar-proxy-read xmlns="http://org.calendarserver/ns/"/></value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ <test name='3'>
+ <description>Check resource type of read-write proxy principal</description>
+ <request>
+ <method>PROPFIND</method>
+ <ruri>$principal:/calendar-proxy-write/</ruri>
+ <data>
+ <content-type>text/xml; charset=utf-8</content-type>
+ <filepath>Resource/calendaruserproxy/1.xml</filepath>
+ </data>
+ <verify>
+ <callback>propfindItems</callback>
+ <arg>
+ <name>okprops</name>
+ <value>DAV:resourcetype$<principal/><collection/><calendar-proxy-write xmlns="http://org.calendarserver/ns/"/></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/20061220/76f0573e/attachment.html
More information about the calendarserver-changes
mailing list