[CalendarServer-changes] [5508] CalDAVTester/trunk/scripts/tests/CalDAV/errors.xml

source_changes at macosforge.org source_changes at macosforge.org
Thu Apr 22 15:17:21 PDT 2010


Revision: 5508
          http://trac.macosforge.org/projects/calendarserver/changeset/5508
Author:   sagen at apple.com
Date:     2010-04-22 15:17:18 -0700 (Thu, 22 Apr 2010)
Log Message:
-----------
Adds test for returing an 401 instead of a 403 when the username is unknown.

Modified Paths:
--------------
    CalDAVTester/trunk/scripts/tests/CalDAV/errors.xml

Modified: CalDAVTester/trunk/scripts/tests/CalDAV/errors.xml
===================================================================
--- CalDAVTester/trunk/scripts/tests/CalDAV/errors.xml	2010-04-22 18:28:01 UTC (rev 5507)
+++ CalDAVTester/trunk/scripts/tests/CalDAV/errors.xml	2010-04-22 22:17:18 UTC (rev 5508)
@@ -1376,6 +1376,36 @@
 		</test>
 	</test-suite>
 
+	<test-suite name='Unauthenticated versus Forbidden' ignore='no'>
+		<test name='1'>
+			<description>Existing user with incorrect password</description>
+			<request user="$userid1:" pswd="bogus" print-response='no'>
+				<method>GET</method>
+				<ruri>$calendarpath1:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>401</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+		<test name='2'>
+			<description>Non-Existing user</description>
+			<request user="bogus" pswd="bogus" print-response='no'>
+				<method>GET</method>
+				<ruri>$calendarpath1:/</ruri>
+				<verify>
+					<callback>statusCode</callback>
+					<arg>
+						<name>status</name>
+						<value>401</value>
+					</arg>
+				</verify>
+			</request>
+		</test>
+	</test-suite>
 	<end/>
 	
 </caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100422/c0ca2cdd/attachment.html>


More information about the calendarserver-changes mailing list