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

source_changes at macosforge.org source_changes at macosforge.org
Wed Jun 27 12:04:17 PDT 2007


Revision: 1624
          http://trac.macosforge.org/projects/calendarserver/changeset/1624
Author:   cdaboo at apple.com
Date:     2007-06-27 12:04:16 -0700 (Wed, 27 Jun 2007)

Log Message:
-----------
Tests for location/resource auto-delegates.

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

Modified: CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml	2007-06-27 18:58:45 UTC (rev 1623)
+++ CalDAVTester/trunk/scripts/tests/calendaruserproxy.xml	2007-06-27 19:04:16 UTC (rev 1624)
@@ -21,7 +21,7 @@
  -->
 
 <caldavtest>
-	<description>Test drop box features</description>
+	<description>Test proxy user features</description>
 
 	<start>
 		<request end-delete="yes">
@@ -612,6 +612,69 @@
 				</verify>
 			</request>
 		</test>
+		<test name='25'>
+			<description>Verify no change to locked membership</description>
+			<request user="$useradmin:" pswd="$pswdadmin:" print-response="no">
+				<method>PROPPATCH</method>
+				<ruri>$rprincipal1:calendar-proxy-write/</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/calendaruserproxy/3.xml</filepath>
+				</data>
+				<verify>
+					<callback>propfindItems</callback>
+					<arg>
+						<name>badprops</name>
+						<value>DAV:group-member-set</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='26'>
+			<description>Verify group memberships</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$rprincipal1:calendar-proxy-write/</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;$principal:&lt;/href&gt;</value>
+						<value>DAV:group-membership$</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='27'>
+			<description>Verify group memberships</description>
+			<request print-response="no">
+				<method>PROPFIND</method>
+				<header>
+					<name>Depth</name>
+					<value>0</value>
+				</header>
+				<ruri>$principal:</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;$rprincipal1:calendar-proxy-write/&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/20070627/7bcb25e6/attachment.html


More information about the calendarserver-changes mailing list