[CalendarServer-changes] [3217] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 23 12:54:51 PDT 2008


Revision: 3217
          http://trac.macosforge.org/projects/calendarserver/changeset/3217
Author:   cdaboo at apple.com
Date:     2008-10-23 12:54:51 -0700 (Thu, 23 Oct 2008)
Log Message:
-----------
Tests for new caldav scheduling spec privileges.

Added Paths:
-----------
    CalDAVTester/trunk/Resource/implicit/acls/
    CalDAVTester/trunk/Resource/implicit/acls/1.xml
    CalDAVTester/trunk/Resource/implicit/acls/2.xml
    CalDAVTester/trunk/scripts/tests/implicitacls.xml

Added: CalDAVTester/trunk/Resource/implicit/acls/1.xml
===================================================================
--- CalDAVTester/trunk/Resource/implicit/acls/1.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/acls/1.xml	2008-10-23 19:54:51 UTC (rev 3217)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:acl/>
+</D:prop>
+</D:propfind>

Added: CalDAVTester/trunk/Resource/implicit/acls/2.xml
===================================================================
--- CalDAVTester/trunk/Resource/implicit/acls/2.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/implicit/acls/2.xml	2008-10-23 19:54:51 UTC (rev 3217)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:propfind xmlns:D="DAV:">
+<D:prop>
+<D:supported-privilege-set/>
+</D:prop>
+</D:propfind>

Added: CalDAVTester/trunk/scripts/tests/implicitacls.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/implicitacls.xml	                        (rev 0)
+++ CalDAVTester/trunk/scripts/tests/implicitacls.xml	2008-10-23 19:54:51 UTC (rev 3217)
@@ -0,0 +1,126 @@
+<?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.
+ -->
+
+<caldavtest>
+	<description>Test new ACLs in CalDAV scheduling</description>
+
+	<start/>
+	
+	<test-suite name='Default Inbox/Outbox privileges' ignore='no'>
+		<test name='1'>
+			<description>Look for CALDAV:schedule-send on Outbox</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$pathprefix1:/outbox/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/acls/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>okprops</name>
+						<value><![CDATA[DAV:acl$.*<schedule-send xmlns="urn:ietf:params:xml:ns:caldav"/>.*]]></value>
+						<value><![CDATA[DAV:acl!.*<schedule-deliver xmlns="urn:ietf:params:xml:ns:caldav"/>.*]]></value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Look for CALDAV:schedule-send on Outbox</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$pathprefix1:/inbox/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/acls/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>okprops</name>
+						<value><![CDATA[DAV:acl$.*<schedule-deliver xmlns="urn:ietf:params:xml:ns:caldav"/>.*]]></value>
+						<value><![CDATA[DAV:acl!.*<schedule-send xmlns="urn:ietf:params:xml:ns:caldav"/>.*]]></value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
+	
+	<test-suite name='Inbox/Outbox supported-privilege-set' ignore='no'>
+		<test name='1'>
+			<description>Look for CALDAV:schedule-send on Outbox</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$pathprefix1:/outbox/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/acls/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>okprops</name>
+						<value><![CDATA[DAV:acl$.*<schedule-send xmlns="urn:ietf:params:xml:ns:caldav"/>.*]]></value>
+						<value><![CDATA[DAV:acl!.*<schedule-deliver xmlns="urn:ietf:params:xml:ns:caldav"/>.*]]></value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Look for CALDAV:schedule-send on Outbox</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$pathprefix1:/inbox/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/implicit/acls/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindValues</callback>
+					<arg>
+						<name>okprops</name>
+						<value><![CDATA[DAV:supported-privilege-set$.*<schedule-deliver xmlns="urn:ietf:params:xml:ns:caldav"/>.*]]></value>
+						<value><![CDATA[DAV:supported-privilege-set!.*<schedule-send xmlns="urn:ietf:params:xml:ns:caldav"/>.*]]></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/20081023/74a46aff/attachment.html>


More information about the calendarserver-changes mailing list