Skip to content
Permalink
Browse files

Tweak test for CalendarServer's re-org of how reports privileges are …

…checked.

git-svn-id: https://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk@1455 e27351fd-9f3e-4f54-a53b-843176b1656c
  • Loading branch information...
cyrusdaboo committed Apr 5, 2007
1 parent 7388b1a commit 658fa0854acbda9dc2b306b89973f809207c131f
Showing with 19 additions and 0 deletions.
  1. +19 −0 lib-patches/Twisted/twisted.web2.dav.test.test_acl.patch
@@ -82,3 +82,22 @@ Index: twisted/web2/dav/test/test_acl.py
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):

0 comments on commit 658fa08

Please sign in to comment.
You can’t perform that action at this time.