Various other regression tests tracking how iCal does CalDAV.

This commit is contained in:
Andrew McMillan 2009-12-25 00:47:40 +13:00
parent 23a70abe83
commit cec67f17c5
8 changed files with 254 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, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy
ETag: "d5cc88f137d733e311ab4e4f73e88ed8"
Content-Length: 1357
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="http://calendarserver.org/ns/" xmlns:C1="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/manager1/calendar-proxy-read/</href>
<propstat>
<prop>
<C:getctag>"ccdfbfa2e7ee6c47d3ea8f134d415b89"</C:getctag>
<displayname>/manager1/calendar-proxy-read/</displayname>
<resourcetype>
<collection/>
<C:calendar-proxy-read/>
</resourcetype>
<group-membership>
<href>/caldav.php/assistant1/</href>
<href>/caldav.php/teamclient1/</href>
<href>/caldav.php/user1/</href>
<href>/caldav.php/user1/calendar-proxy-read/</href>
<href>/caldav.php/assistant1/calendar-proxy-read/</href>
<href>/caldav.php/resource1/calendar-proxy-read/</href>
<href>/caldav.php/resource2/calendar-proxy-read/</href>
</group-membership>
<C:calendar-proxy-read-for>
<href>/caldav.php/user1/</href>
<href>/caldav.php/assistant1/</href>
<href>/caldav.php/resource1/</href>
<href>/caldav.php/resource2/</href>
</C:calendar-proxy-read-for>
<C:calendar-proxy-write-for/>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:calendar-description/>
<group-member-set/>
</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/calendar-proxy-read/
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: 0
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

View File

@ -0,0 +1,30 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy
ETag: "a5e9b2d6ceab834c384219859234d38c"
Content-Length: 764
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>
<group-membership>
<href>/caldav.php/manager1/</href>
<href>/caldav.php/resource1/</href>
<href>/caldav.php/assistant1/</href>
<href>/caldav.php/resource2/</href>
<href>/caldav.php/resmgr1/</href>
<href>/caldav.php/teamclient1/</href>
<href>/caldav.php/manager1/calendar-proxy-read/</href>
<href>/caldav.php/assistant1/calendar-proxy-read/</href>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,19 @@
#
# Testing with a process similar to iCal 10.5
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/user1/
HEAD
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: 0
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<x0:propfind xmlns:x0="DAV:" >
<x0:prop>
<x0:group-membership/>
</x0:prop>
</x0:propfind>
ENDDATA

View File

@ -0,0 +1,46 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy
ETag: "1f0e016ecbd8566bc60b88a167178059"
Content-Length: 1071
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/resmgr1/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/resmgr1/calendar-proxy-read/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/resmgr1/calendar-proxy-write/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,19 @@
#
# Testing with a process similar to iCal 10.5
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/resmgr1/
HEAD
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:x0="DAV:" >
<x0:prop>
<x0:group-membership/>
</x0:prop>
</x0:propfind>
ENDDATA

View File

@ -0,0 +1,46 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy
ETag: "1f0e016ecbd8566bc60b88a167178059"
Content-Length: 1071
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/resmgr1/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/resmgr1/calendar-proxy-read/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/resmgr1/calendar-proxy-write/</href>
<propstat>
<prop>
<group-membership>
<href>/caldav.php/resource1/calendar-proxy-write/</href>
<href>/caldav.php/resource2/calendar-proxy-write/</href>
</group-membership>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,19 @@
#
# Testing with a process similar to iCal 10.5
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/resmgr1/
HEAD
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:x0="DAV:" >
<x0:prop>
<x0:group-membership/>
</x0:prop>
</x0:propfind>
ENDDATA