[CalendarServer-changes] [1455]
CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.test.
test_acl.patch
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 5 14:21:47 PDT 2007
Revision: 1455
http://trac.macosforge.org/projects/calendarserver/changeset/1455
Author: cdaboo at apple.com
Date: 2007-04-05 14:21:47 -0700 (Thu, 05 Apr 2007)
Log Message:
-----------
Tweak test for CalendarServer's re-org of how reports privileges are checked.
Modified Paths:
--------------
CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch
Modified: CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch
===================================================================
--- CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch 2007-04-05 21:13:24 UTC (rev 1454)
+++ CalendarServer/trunk/lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch 2007-04-05 21:21:47 UTC (rev 1455)
@@ -82,3 +82,22 @@
for name, acl in (
("none" , self.grant()),
("read" , self.grant(davxml.Read())),
+@@ -363,7 +378,7 @@
+ elif method == "REPORT":
+ # BAD_REQUEST in the allowed case, because we're not actually
+ # including the required XML in the request body.
+- ok = responsecode.BAD_REQUEST
++ ok = responsecode.MULTI_STATUS
+ else:
+ raise AssertionError("We shouldn't be here. (method = %r)" % (method,))
+
+@@ -377,6 +392,9 @@
+ path = os.path.join(self.docroot, name)
+
+ request = SimpleRequest(self.site, method, "/" + name)
++ if method == "REPORT":
++ request.stream = MemoryStream(davxml.PrincipalPropertySearch().toxml())
++
+ _add_auth_header(request)
+
+ def test(response, code=code, path=path):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070405/d2cc6db1/attachment.html
More information about the calendarserver-changes
mailing list