[CalendarServer-changes] [4190] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue May 5 17:41:17 PDT 2009


Revision: 4190
          http://trac.macosforge.org/projects/calendarserver/changeset/4190
Author:   sagen at apple.com
Date:     2009-05-05 17:41:17 -0700 (Tue, 05 May 2009)
Log Message:
-----------
Added CalDAVTester check for invalid CUA passed to principal-property-search report

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

Added Paths:
-----------
    CalDAVTester/trunk/Resource/aclreports/34.xml

Added: CalDAVTester/trunk/Resource/aclreports/34.xml
===================================================================
--- CalDAVTester/trunk/Resource/aclreports/34.xml	                        (rev 0)
+++ CalDAVTester/trunk/Resource/aclreports/34.xml	2009-05-06 00:41:17 UTC (rev 4190)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<D:principal-property-search xmlns:D="DAV:" xmlns:c="http://calendarserver.org/ns/" xmlns:cd="urn:ietf:params:xml:ns:caldav" test="anyof" type="INDIVIDUAL">
+ <D:apply-to-principal-collection-set/>
+ <D:property-search>
+   <D:prop>
+     <cd:calendar-user-address-set/>
+   </D:prop>
+   <D:match match-type="starts-with">invalid</D:match>
+ </D:property-search>
+ <D:prop>
+   <D:displayname/>
+ </D:prop>
+</D:principal-property-search>

Modified: CalDAVTester/trunk/scripts/tests/aclreports.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/aclreports.xml	2009-05-06 00:06:11 UTC (rev 4189)
+++ CalDAVTester/trunk/scripts/tests/aclreports.xml	2009-05-06 00:41:17 UTC (rev 4190)
@@ -777,6 +777,24 @@
 				</verify>
 			</request>
 		</test>
+		<test name='20' ignore='no'>
+			<description>Invalid CUA in calendar-user-address-set REPORT</description>
+			<request print-response='no' user='$useradmin:' pswd='$pswdadmin:'>
+				<method>REPORT</method>
+				<ruri>$calendarpath1:/1.ics</ruri>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/aclreports/34.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>400</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 	
 	<test-suite name='principal-search-property-set REPORT' ignore='no'>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20090505/abc94826/attachment.html>


More information about the calendarserver-changes mailing list