A few more tests for a few more things.

This commit is contained in:
Andrew McMillan 2009-11-17 18:59:58 +13:00
parent 2737557070
commit 84dd24a177
4 changed files with 130 additions and 0 deletions

View File

@ -0,0 +1,67 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, PUT, HEAD, MKCOL, MKCALENDAR, PROPPATCH
ETag: "d5cc117a7382cebe6ed7ca36b21af7e6"
Content-Length: 1535
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/user1/</href>
<propstat>
<prop>
<group-membership>
<response>
<href>/caldav.php/resmgr1/</href>
<propstat>
<prop>
<displayname>Resource Managers</displayname>
<C:calendar-home-set>
<response>
<href>/caldav.php/resmgr1/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
<principal/>
</resourcetype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</C:calendar-home-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/teamclient1/</href>
<propstat>
<prop>
<displayname>Team for Client1</displayname>
<C:calendar-home-set>
<response>
<href>/caldav.php/teamclient1/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
<principal/>
</resourcetype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</C:calendar-home-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,23 @@
#
# expand-property REPORT
#
TYPE=REPORT
URL=http://regression.host/caldav.php/user1/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<expand-property xmlns="DAV:">
<property name="group-membership">
<property name="displayname"/>
<property name="calendar-home-set" namespace="urn:ietf:params:xml:ns:caldav">
<property name="resourcetype"/>
</property>
</property>
</expand-property>
ENDDATA

View File

@ -0,0 +1,18 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, PUT, HEAD, MKCOL, MKCALENDAR, PROPPATCH
ETag: "0c775c871b7748cdf156461686ccb5eb"
Content-Length: 215
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/user1/</href>
<propstat>
<prop/>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,22 @@
#
# PROPFIND with badly formed request should usefully error
#
# The <D:property-search> tag should enclose the <D:prop>
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/user1/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<D:principal-property-search xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:property-search/>
<D:prop>
<C:calendar-home-set/>
</D:prop>
</D:principal-property-search>
ENDDATA