[CalendarServer-changes] [10143] CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/ tests

source_changes at macosforge.org source_changes at macosforge.org
Mon Dec 10 11:15:30 PST 2012


Revision: 10143
          http://trac.calendarserver.org//changeset/10143
Author:   cdaboo at apple.com
Date:     2012-12-10 11:15:30 -0800 (Mon, 10 Dec 2012)
Log Message:
-----------
Tests for PROPFINDs on non-existent resources.

Modified Paths:
--------------
    CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/tests/CalDAV/propfind.xml
    CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/tests/CardDAV/propfind.xml

Modified: CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/tests/CalDAV/propfind.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/tests/CalDAV/propfind.xml	2012-12-10 19:08:16 UTC (rev 10142)
+++ CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/tests/CalDAV/propfind.xml	2012-12-10 19:15:30 UTC (rev 10143)
@@ -189,6 +189,72 @@
 				</verify>
 			</request>
 		</test>
+		<test name='5'>
+			<description>PROPFIND of non-existent calendar depth=1</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$calendarhome1:/foobar/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/propfinds/1.txt</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>404</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='6'>
+			<description>PROPFIND of non-existent calendar child depth=1</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$calendarhome1:/foobar/foo.ics</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/propfinds/1.txt</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>404</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='7'>
+			<description>PROPFIND of non-existent calendar child collection depth=1</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$calendarhome1:/foobar/example/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CalDAV/propfinds/1.txt</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>404</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 	
 	

Modified: CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/tests/CardDAV/propfind.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/tests/CardDAV/propfind.xml	2012-12-10 19:08:16 UTC (rev 10142)
+++ CalDAVTester/branches/users/cdaboo/managed-attachments/scripts/tests/CardDAV/propfind.xml	2012-12-10 19:15:30 UTC (rev 10143)
@@ -107,6 +107,72 @@
 				</verify>
 			</request>
 		</test>
+		<test name='5'>
+			<description>PROPFIND of non-existent addressbook depth=1</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$addressbookhome1:/foobar/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CardDAV/vpropfinds/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>404</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='6'>
+			<description>PROPFIND of non-existent addressbook child depth=1</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$addressbookhome1:/foobar/foo.ics</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CardDAV/vpropfinds/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>404</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='7'>
+			<description>PROPFIND of non-existent addressbook child collection depth=1</description>
+			<request>
+				<method>PROPFIND</method>
+				<ruri>$addressbookhome1:/foobar/example/</ruri>
+				<header>
+					<name>Depth</name>
+					<value>1</value>
+				</header>
+				<data>
+					<content-type>text/xml; charset=utf-8</content-type>
+					<filepath>Resource/CardDAV/vpropfinds/1.xml</filepath>
+				</data>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>404</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
 	</test-suite>
 	
 	<test-suite name='prop names'>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20121210/46dc3348/attachment.html>


More information about the calendarserver-changes mailing list