From 122f4d43bb406219734a9bebace9725d92e69807 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 9 Nov 2006 00:47:14 +1300 Subject: [PATCH] More regression tests, checking cross-calendar permissions. --- .../016-Mulberry-MKCALENDAR-3.result | 6 ++++ .../016-Mulberry-MKCALENDAR-3.test | 5 +++ .../017-Mulberry-MKCALENDAR-4.result | 7 ++++ .../017-Mulberry-MKCALENDAR-4.test | 5 +++ .../018-Mulberry-PUT-4.result | 7 ++++ .../regression-suite/018-Mulberry-PUT-4.test | 7 ++++ ...A5EA1F0F2691A03E917E85F9F255448-0.ics.data | 33 +++++++++++++++++++ .../regression-suite/102-Evo-REPORT-1.result | 13 ++++++-- .../regression-suite/105-Evo-REPORT-1.result | 13 ++++++-- 9 files changed, 92 insertions(+), 4 deletions(-) create mode 100644 testing/tests/regression-suite/016-Mulberry-MKCALENDAR-3.result create mode 100644 testing/tests/regression-suite/016-Mulberry-MKCALENDAR-3.test create mode 100644 testing/tests/regression-suite/017-Mulberry-MKCALENDAR-4.result create mode 100644 testing/tests/regression-suite/017-Mulberry-MKCALENDAR-4.test create mode 100644 testing/tests/regression-suite/018-Mulberry-PUT-4.result create mode 100644 testing/tests/regression-suite/018-Mulberry-PUT-4.test create mode 100644 testing/tests/regression-suite/0A5EA1F0F2691A03E917E85F9F255448-0.ics.data diff --git a/testing/tests/regression-suite/016-Mulberry-MKCALENDAR-3.result b/testing/tests/regression-suite/016-Mulberry-MKCALENDAR-3.result new file mode 100644 index 00000000..ae68b5a6 --- /dev/null +++ b/testing/tests/regression-suite/016-Mulberry-MKCALENDAR-3.result @@ -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 + diff --git a/testing/tests/regression-suite/016-Mulberry-MKCALENDAR-3.test b/testing/tests/regression-suite/016-Mulberry-MKCALENDAR-3.test new file mode 100644 index 00000000..598530e8 --- /dev/null +++ b/testing/tests/regression-suite/016-Mulberry-MKCALENDAR-3.test @@ -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 diff --git a/testing/tests/regression-suite/017-Mulberry-MKCALENDAR-4.result b/testing/tests/regression-suite/017-Mulberry-MKCALENDAR-4.result new file mode 100644 index 00000000..ddf9bc0b --- /dev/null +++ b/testing/tests/regression-suite/017-Mulberry-MKCALENDAR-4.result @@ -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. \ No newline at end of file diff --git a/testing/tests/regression-suite/017-Mulberry-MKCALENDAR-4.test b/testing/tests/regression-suite/017-Mulberry-MKCALENDAR-4.test new file mode 100644 index 00000000..d87bcad8 --- /dev/null +++ b/testing/tests/regression-suite/017-Mulberry-MKCALENDAR-4.test @@ -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 diff --git a/testing/tests/regression-suite/018-Mulberry-PUT-4.result b/testing/tests/regression-suite/018-Mulberry-PUT-4.result new file mode 100644 index 00000000..f0467689 --- /dev/null +++ b/testing/tests/regression-suite/018-Mulberry-PUT-4.result @@ -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 + diff --git a/testing/tests/regression-suite/018-Mulberry-PUT-4.test b/testing/tests/regression-suite/018-Mulberry-PUT-4.test new file mode 100644 index 00000000..234884ff --- /dev/null +++ b/testing/tests/regression-suite/018-Mulberry-PUT-4.test @@ -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 diff --git a/testing/tests/regression-suite/0A5EA1F0F2691A03E917E85F9F255448-0.ics.data b/testing/tests/regression-suite/0A5EA1F0F2691A03E917E85F9F255448-0.ics.data new file mode 100644 index 00000000..7e424e6d --- /dev/null +++ b/testing/tests/regression-suite/0A5EA1F0F2691A03E917E85F9F255448-0.ics.data @@ -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 diff --git a/testing/tests/regression-suite/102-Evo-REPORT-1.result b/testing/tests/regression-suite/102-Evo-REPORT-1.result index 9f120952..076f7ac4 100644 --- a/testing/tests/regression-suite/102-Evo-REPORT-1.result +++ b/testing/tests/regression-suite/102-Evo-REPORT-1.result @@ -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 @@ -25,4 +25,13 @@ Content-Type: text/xml;charset=UTF-8 HTTP/1.1 200 OK + + http://mycaldav/caldav.php/resource2/home/0A5EA1F0F2691A03E917E85F9F255448-0.ics + + + "75a75e1c7c4546074aab7645b5323738" + + HTTP/1.1 200 OK + + diff --git a/testing/tests/regression-suite/105-Evo-REPORT-1.result b/testing/tests/regression-suite/105-Evo-REPORT-1.result index 031bf2a3..03bdf71f 100644 --- a/testing/tests/regression-suite/105-Evo-REPORT-1.result +++ b/testing/tests/regression-suite/105-Evo-REPORT-1.result @@ -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 @@ -25,6 +25,15 @@ Content-Type: text/xml;charset=UTF-8 HTTP/1.1 200 OK + + http://mycaldav/caldav.php/resource2/home/0A5EA1F0F2691A03E917E85F9F255448-0.ics + + + "75a75e1c7c4546074aab7645b5323738" + + HTTP/1.1 200 OK + + http://mycaldav/caldav.php/user1/home/20061101T073004Z.ics