More regression tests, checking cross-calendar permissions.

This commit is contained in:
Andrew McMillan 2006-11-09 00:47:14 +13:00
parent 0e6b1fe0bf
commit 122f4d43bb
9 changed files with 92 additions and 4 deletions

View File

@ -0,0 +1,6 @@
HTTP/1.1 200 Created
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
Content-Length: 0
Content-Type: text/html; charset=UTF-8

View File

@ -0,0 +1,5 @@
#
# Make a calendar for someone else who we are allowed to write to
TYPE=MKCALENDAR
URL=http://mycaldav/caldav.php/resource2/home/
HEAD

View File

@ -0,0 +1,7 @@
HTTP/1.1 403 Forbidden
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
Content-Length: 36
Content-Type: text/plain; charset=UTF-8
You may not create a calendar there.

View File

@ -0,0 +1,5 @@
#
# Make a calendar for someone else who we are *NOT* allowed to write to
TYPE=MKCALENDAR
URL=http://mycaldav/caldav.php/admin/home/
HEAD

View File

@ -0,0 +1,7 @@
HTTP/1.1 201 Created
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "75a75e1c7c4546074aab7645b5323738"
Content-length: 0
Content-Type: text/html; charset=UTF-8

View File

@ -0,0 +1,7 @@
#
# We now have a calendar so we can PUT an event into it...
TYPE=PUT
URL=http://mycaldav/caldav.php/resource2/home/0A5EA1F0F2691A03E917E85F9F255448-0.ics
HEADER=Content-Type: text/calendar; charset=utf-8
HEAD
DATA=0A5EA1F0F2691A03E917E85F9F255448-0.ics

View File

@ -0,0 +1,33 @@
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//mulberrymail.com//Mulberry v4.0//EN
VERSION:2.0
BEGIN:VTIMEZONE
LAST-MODIFIED:20040110T032845Z
TZID:New Zealand Standard Time
X-LIC-LOCATION:Pacific/Auckland
BEGIN:DAYLIGHT
DTSTART:20000404T020000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
TZNAME:NZDT
TZOFFSETFROM:+1200
TZOFFSETTO:+1300
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:20001026T020000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10
TZNAME:NZST
TZOFFSETFROM:+1300
TZOFFSETTO:+1200
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20061108T113035Z
DTSTART;TZID=New Zealand Standard Time:20061030T100000
DURATION:PT1H
LAST-MODIFIED:20061108T113044Z
SEQUENCE:1
SUMMARY:Booking resource 2
UID:C8344958F0CC35344E063A04@D76FAF7B10D9E8D2D41F779C
END:VEVENT
END:VCALENDAR

View File

@ -1,8 +1,8 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "999029ee508d00d69a8251bc727d6e52"
Content-Length: 600
ETag: "2f3549ea9f16d378e166f2945a12cc59"
Content-Length: 863
Content-Type: text/xml;charset=UTF-8
<?xml version="1.0" encoding="UTF-8" ?>
@ -25,4 +25,13 @@ Content-Type: text/xml;charset=UTF-8
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>http://mycaldav/caldav.php/resource2/home/0A5EA1F0F2691A03E917E85F9F255448-0.ics</href>
<propstat>
<prop>
<getetag>"75a75e1c7c4546074aab7645b5323738"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -1,8 +1,8 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "aec354a7e336855131053ef08ca190b8"
Content-Length: 841
ETag: "253b4eea9667741215d44f5836286543"
Content-Length: 1104
Content-Type: text/xml;charset=UTF-8
<?xml version="1.0" encoding="UTF-8" ?>
@ -25,6 +25,15 @@ Content-Type: text/xml;charset=UTF-8
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>http://mycaldav/caldav.php/resource2/home/0A5EA1F0F2691A03E917E85F9F255448-0.ics</href>
<propstat>
<prop>
<getetag>"75a75e1c7c4546074aab7645b5323738"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>http://mycaldav/caldav.php/user1/home/20061101T073004Z.ics</href>
<propstat>