New regression test for caldav-proxy.

This commit is contained in:
Andrew McMillan 2009-06-14 21:25:32 +12:00
parent f06a01c14d
commit c90cf10f44
2 changed files with 162 additions and 0 deletions

View File

@ -0,0 +1,134 @@
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
ETag: "abdb73b0ef74364a7c0a761e83521940"
Content-Length: 3553
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:A="http://calendarserver.org/ns/" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/manager1/</href>
<propstat>
<prop>
<A:getctag>"cc0d9a04234ddc58af945d7ee545cb53"</A:getctag>
<displayname>Manager 1</displayname>
<resourcetype>
<principal/>
<collection/>
</resourcetype>
<group-member-set/>
<group-membership>
<href>/caldav.php/teamclient1/</href>
<href>/caldav.php/user1/calendar-proxy-read/</href>
<href>/caldav.php/assistant1/calendar-proxy-read/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<A:calendar-proxy-read-for/>
<A:calendar-proxy-write-for/>
<C:calendar-description/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/manager1/home/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
<C:calendar/>
<C:schedule-calendar/>
</resourcetype>
<displayname>manager1 home</displayname>
<A:getctag>"c240642ddef994358c96da82c0361a58"</A:getctag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<group-member-set/>
<group-membership/>
<A:calendar-proxy-read-for/>
<A:calendar-proxy-write-for/>
<C:calendar-description/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/manager1/calendar-proxy-read/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
<principal/>
<A:calendar-proxy-read/>
</resourcetype>
<A:calendar-proxy-read-for>
<href>/caldav.php/user1/</href>
<href>/caldav.php/assistant1/</href>
</A:calendar-proxy-read-for>
<group-member-set>
<href>/caldav.php/user1/</href>
</group-member-set>
<group-membership>
<href>/caldav.php/teamclient1/</href>
<href>/caldav.php/user1/calendar-proxy-read/</href>
<href>/caldav.php/assistant1/calendar-proxy-read/</href>
</group-membership>
<displayname>/manager1/calendar-proxy-read/</displayname>
<A:getctag>"d6996992ae401eb02ed8fed0bfb22895"</A:getctag>
<group-member-set>
<href>/caldav.php/user1/</href>
</group-member-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<A:calendar-proxy-write-for/>
<C:calendar-description/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/manager1/calendar-proxy-write/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
<principal/>
<A:calendar-proxy-write/>
</resourcetype>
<A:calendar-proxy-write-for/>
<group-member-set>
<href>/caldav.php/assistant1/</href>
</group-member-set>
<group-membership>
<href>/caldav.php/teamclient1/</href>
<href>/caldav.php/user1/calendar-proxy-read/</href>
<href>/caldav.php/assistant1/calendar-proxy-read/</href>
</group-membership>
<displayname>/manager1/calendar-proxy-write/</displayname>
<A:getctag>"9849062cdad5f238a4ac4a9829bcdbcf"</A:getctag>
<group-member-set>
<href>/caldav.php/assistant1/</href>
</group-member-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<A:calendar-proxy-read-for/>
<C:calendar-description/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,28 @@
#
# Testing with a process similar to iCal 10.5
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/manager1/
HEAD
AUTH=assistant1:assistant1
HEADER=User-Agent: DAVKit/3.0.4 (652); CalendarStore/3.0.5 (841); iCal/3.0.5 (1270); Mac OS X/10.5.5 (9F33)
HEADER=Content-Type: text/xml
HEADER=Depth: 1
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<x0:propfind xmlns:x1="http://calendarserver.org/ns/" xmlns:x0="DAV:" xmlns:x2="urn:ietf:params:xml:ns:caldav">
<x0:prop>
<x1:getctag/>
<x0:displayname/>
<x2:calendar-description/>
<x0:resourcetype/>
<x0:group-member-set/>
<x0:group-membership/>
<x1:calendar-proxy-read-for/>
<x1:calendar-proxy-write-for/>
</x0:prop>
</x0:propfind>
ENDDATA