[CalendarServer-changes] [1060] CalDAVTester/trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 18 11:59:04 PST 2007


Revision: 1060
          http://trac.macosforge.org/projects/calendarserver/changeset/1060
Author:   cdaboo at apple.com
Date:     2007-01-18 11:59:04 -0800 (Thu, 18 Jan 2007)

Log Message:
-----------
Add a test to check for calendar user address URL normalization errors (trailing / vs non-trailing / in principals).

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/server/serverinfo.xml
    CalDAVTester/trunk/scripts/tests/schedulepost.xml

Added Paths:
-----------
    CalDAVTester/trunk/Resource/schedule/19.ics

Added: CalDAVTester/trunk/Resource/schedule/19.ics
===================================================================
--- CalDAVTester/trunk/Resource/schedule/19.ics	                        (rev 0)
+++ CalDAVTester/trunk/Resource/schedule/19.ics	2007-01-18 19:59:04 UTC (rev 1060)
@@ -0,0 +1,14 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Cyrusoft International\, Inc.//Mulberry v4.0//EN
+VERSION:2.0
+METHOD:REQUEST
+BEGIN:VFREEBUSY
+UID:20060110T231240Z-4011c71-187-6f73-fb
+ORGANIZER;CN=User 01:$principalnoslash:
+ATTENDEE;CN=User 02:$principal2noslash:
+DTSTART:20060101T000000Z
+DTSTAMP:20060309T185105Z
+DTEND:20060102T000000Z
+END:VFREEBUSY
+END:VCALENDAR

Modified: CalDAVTester/trunk/scripts/server/serverinfo.xml
===================================================================
--- CalDAVTester/trunk/scripts/server/serverinfo.xml	2007-01-18 19:26:46 UTC (rev 1059)
+++ CalDAVTester/trunk/scripts/server/serverinfo.xml	2007-01-18 19:59:04 UTC (rev 1060)
@@ -89,6 +89,10 @@
 			<key>$principal:</key>
 			<value>/principals/users/user01/</value>
 		</substitution>
+		<substitution>
+			<key>$principalnoslash:</key>
+			<value>/principals/users/user01</value>
+		</substitution>
 		<!-- relative path to first user calendar home-->
 		<substitution>
 			<key>$pathprefix:</key>
@@ -120,6 +124,10 @@
 			<key>$principal2:</key>
 			<value>/principals/users/user02/</value>
 		</substitution>
+		<substitution>
+			<key>$principal2noslash:</key>
+			<value>/principals/users/user02</value>
+		</substitution>
 		<!-- relative path to second user calendar home-->
 		<substitution>
 			<key>$pathprefix2:</key>

Modified: CalDAVTester/trunk/scripts/tests/schedulepost.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/schedulepost.xml	2007-01-18 19:26:46 UTC (rev 1059)
+++ CalDAVTester/trunk/scripts/tests/schedulepost.xml	2007-01-18 19:59:04 UTC (rev 1060)
@@ -720,6 +720,35 @@
 				</verify>
 			</request>
 		</test>
+		<test name='3'>
+			<description>POST free busy - check ATTENDEE presence</description>
+			<request print-response='no'>
+				<method>POST</method>
+				<header>
+					<name>Originator</name>
+					<value>$principalnoslash:</value>
+				</header>
+				<header>
+					<name>Recipient</name>
+					<value>$principal2noslash:</value>
+				</header>
+				<ruri>$pathprefix:/outbox/</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/schedule/19.ics</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+				</verify>
+				<verify>
+					<callback>dataString</callback>
+					<arg>
+						<name>contains</name>
+						<value>ATTENDEE;CN=User 02:/principals/users/user02</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 	
 	<end/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070118/52bd91b5/attachment.html


More information about the calendarserver-changes mailing list