[CalendarServer-changes] [5535] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Apr 27 12:52:06 PDT 2010


Revision: 5535
          http://trac.macosforge.org/projects/calendarserver/changeset/5535
Author:   cdaboo at apple.com
Date:     2010-04-27 12:52:04 -0700 (Tue, 27 Apr 2010)
Log Message:
-----------
Test to make sure write proxy can add dropbox attachments.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/tests/CalDAV/calendaruserproxy.xml

Added Paths:
-----------
    CalDAVTester/trunk/Resource/CalDAV/dropbox/10.xml

Added: CalDAVTester/trunk/Resource/CalDAV/dropbox/10.xml
===================================================================
--- CalDAVTester/trunk/Resource/CalDAV/dropbox/10.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/CalDAV/dropbox/10.xml	2010-04-27 19:52:04 UTC (rev 5535)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:acl xmlns:D="DAV:">
+	<D:ace>
+		<D:principal>
+			<D:href>$principaluri3:</D:href>
+		</D:principal>
+		<D:grant>
+			<D:privilege><D:read/></D:privilege>
+		</D:grant>
+	</D:ace>
+</D:acl>

Modified: CalDAVTester/trunk/scripts/tests/CalDAV/calendaruserproxy.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/calendaruserproxy.xml	2010-04-27 19:03:13 UTC (rev 5534)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/calendaruserproxy.xml	2010-04-27 19:52:04 UTC (rev 5535)
@@ -1271,6 +1271,131 @@
 		</test>
 	</test-suite>
 
+	<test-suite name='Drop Box Collection ACLs'>
+		<test name='1'>
+			<description>Add user02 as read-write proxy for user01</description>
+			<request print-response="no">
+				<method>PROPPATCH</method>
+				<ruri>$principal1:calendar-proxy-write/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/calendaruserproxy/3.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:group-member-set</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Create drop box</description>
+			<request user='$userid2:' pswd='$pswd2:'>
+				<method>MKCOL</method>
+				<ruri>$dropboxpath1:/ABCEFG/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>201</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='3'>
+			<description>Create drop box resource</description>
+			<request user='$userid2:' pswd='$pswd2:'>
+				<method>PUT</method>
+				<ruri>$dropboxpath1:/ABCEFG/test.xml</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/dropbox/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='4'>
+			<description>Verify that user01 can read it</description>
+			<request>
+				<method>GET</method>
+				<ruri>$dropboxpath1:/ABCEFG/test.xml</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='5'>
+			<description>Verify that user03 cannot read it</description>
+			<request user='$userid3:' pswd='$pswd3:'>
+				<method>GET</method>
+				<ruri>$dropboxpath1:/ABCEFG/test.xml</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>403</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='6'>
+			<description>Add user03 read privilege on collection</description>
+			<request user='$userid2:' pswd='$pswd2:' >
+				<method>ACL</method>
+				<ruri>$dropboxpath1:/ABCEFG/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/dropbox/10.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='7'>
+			<description>Verify that user03 can now read it</description>
+			<request user='$userid3:' pswd='$pswd3:'>
+				<method>GET</method>
+				<ruri>$dropboxpath1:/ABCEFG/test.xml</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='8'>
+			<description>Delete drop box</description>
+			<request user='$userid2:' pswd='$pswd2:'>
+				<method>DELETE</method>
+				<ruri>$dropboxpath1:/ABCEFG/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+			</request>
+		</test>
+		<test name='9'>
+			<description>Clear user02 as read-write proxy for user01</description>
+			<request print-response="no">
+				<method>PROPPATCH</method>
+				<ruri>$principal1:calendar-proxy-write/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/calendaruserproxy/4.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:group-member-set</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/20100427/e5018431/attachment.html>


More information about the calendarserver-changes mailing list