A basic regression test for the expand-property report.

This commit is contained in:
Andrew McMillan 2009-11-14 17:52:54 +13:00
parent cfa9b42c1d
commit 1d939a7d46
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,47 @@
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
ETag: "d2647e4027425f0fe49ad06b992e27e4"
Content-Length: 943
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/user1/home/</href>
<propstat>
<prop>
<group-membership>
<response>
<href>/caldav.php/resmgr1/</href>
<propstat>
<prop>
<getcontenttype>httpd/unix-directory</getcontenttype>
<resourcetype>
<collection/>
<principal/>
</resourcetype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/teamclient1/</href>
<propstat>
<prop>
<getcontenttype>httpd/unix-directory</getcontenttype>
<resourcetype>
<collection/>
<principal/>
</resourcetype>
</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,21 @@
#
# expand-property REPORT
#
TYPE=REPORT
URL=http://regression.host/caldav.php/user1/home/
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" namespace="DAV:">
<property name="getcontenttype"/>
<property name="resourcetype"/>
</property>
</expand-property>
ENDDATA