[CalendarServer-changes] [2428] CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml

source_changes at macosforge.org source_changes at macosforge.org
Sun May 18 18:35:52 PDT 2008


Revision: 2428
          http://trac.macosforge.org/projects/calendarserver/changeset/2428
Author:   cdaboo at apple.com
Date:     2008-05-18 18:35:50 -0700 (Sun, 18 May 2008)

Log Message:
-----------
Add test for directory based read-only delegates for locations and resources.

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

Modified: CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml	2008-05-19 01:28:17 UTC (rev 2427)
+++ CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml	2008-05-19 01:35:50 UTC (rev 2428)
@@ -696,6 +696,51 @@
 				</verify>
 			</request>
 		</test>
+		<test name='28'>
+			<description>Verify read-only group memberships</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$rprincipal1:calendar-proxy-read/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/calendaruserproxy/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>okprops</name>
+						<value>DAV:group-member-set$&lt;href&gt;$principaluri3:&lt;/href&gt;</value>
+						<value>DAV:group-membership$</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='29'>
+			<description>Verify group memberships</description>
+			<request print-response="yes">
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$principal3:</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/calendaruserproxy/2.xml</filepath>
+				</data>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>contains</name>
+						<value>&lt;href&gt;$rprincipaluri1:calendar-proxy-read/&lt;/href&gt;</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 
 	<test-suite name='Principal report'>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080518/d690470e/attachment.htm 


More information about the calendarserver-changes mailing list