Revision
1532
Author
cdaboo@apple.com
Date
2007-05-17 09:50:58 -0700 (Thu, 17 May 2007)

Log Message

Add a test for an invalid urn:uuid address in scheduling that was causing a 500 error.

Modified Paths

Diff

Modified: CalDAVTester/trunk/scripts/tests/errors.xml (1531 => 1532)


--- CalDAVTester/trunk/scripts/tests/errors.xml	2007-05-17 16:50:20 UTC (rev 1531)
+++ CalDAVTester/trunk/scripts/tests/errors.xml	2007-05-17 16:50:58 UTC (rev 1532)
@@ -1100,6 +1100,34 @@
 		</test>
 	</test-suite>
 
+	<test-suite name='Invalid urn: calendar user address' ignore='no'>
+		<test name='1'>
+			<description>POST free busy</description>
+			<request print-response='no'>
+				<method>POST</method>
+				<header>
+					<name>Originator</name>
+					<value>urn:uuid:bogus-uuid</value>
+				</header>
+				<header>
+					<name>Recipient</name>
+					<value>$cuaddr2:, $cuaddr3:</value>
+				</header>
+				<ruri>$pathprefix:/$outbox:/</ruri>
+				<data>
+					<content-type>text/calendar; charset=utf-8</content-type>
+					<filepath>Resource/schedule/6.txt</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>403</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
 	<end/>
 	
 </caldavtest>