From 7925bf8cf217573aee3233937299298bafc3eb56 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 25 Oct 2008 20:38:48 +1300 Subject: [PATCH] New test for PUT of a collection so we have something to schedule against. --- .../000-Setup-PUT-collection.result | 8 +++ .../000-Setup-PUT-collection.test | 70 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 testing/tests/regression-suite/000-Setup-PUT-collection.result create mode 100644 testing/tests/regression-suite/000-Setup-PUT-collection.test diff --git a/testing/tests/regression-suite/000-Setup-PUT-collection.result b/testing/tests/regression-suite/000-Setup-PUT-collection.result new file mode 100644 index 00000000..ec833044 --- /dev/null +++ b/testing/tests/regression-suite/000-Setup-PUT-collection.result @@ -0,0 +1,8 @@ +HTTP/1.1 100 Continue + +HTTP/1.1 200 OK +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule +Content-Length: 0 +Content-Type: text/plain; charset="utf-8" + diff --git a/testing/tests/regression-suite/000-Setup-PUT-collection.test b/testing/tests/regression-suite/000-Setup-PUT-collection.test new file mode 100644 index 00000000..683f97ff --- /dev/null +++ b/testing/tests/regression-suite/000-Setup-PUT-collection.test @@ -0,0 +1,70 @@ +# +# PUT a calendar collection to user2 so we have some starting events +# +# There is no CalDAV defined behaviour for this. +# +TYPE=PUT +URL=http://mycaldav/caldav.php/user2/home/ +HEADER=User-Agent: RSCDS Testing/0.7.x +HEADER=Content-Type: text/calendar; charset=utf-8 +AUTH=user2:user2 + +HEAD + +BEGINDATA +BEGIN:VCALENDAR +PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN +VERSION:2.0 +BEGIN:VTIMEZONE +TZID:Pacific/Auckland +X-LIC-LOCATION:Pacific/Auckland +BEGIN:DAYLIGHT +TZOFFSETFROM:+1200 +TZOFFSETTO:+1300 +TZNAME:NZDT +DTSTART:19700927T020000 +RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=9 +END:DAYLIGHT +BEGIN:STANDARD +TZOFFSETFROM:+1300 +TZOFFSETTO:+1200 +TZNAME:NZST +DTSTART:19700405T030000 +RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=4 +END:STANDARD +END:VTIMEZONE +BEGIN:VEVENT +CREATED:20081023T054958Z +LAST-MODIFIED:20081023T055044Z +DTSTAMP:20081023T054958Z +UID:33169d69-2969-4a96-a3e1-2e312b7614e6 +SUMMARY:Daily Action Meeting +RRULE:FREQ=DAILY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR +DTSTART;TZID=Pacific/Auckland:20081020T110000 +DTEND;TZID=Pacific/Auckland:20081020T113000 +X-MOZ-GENERATION:2 +END:VEVENT +BEGIN:VEVENT +CREATED:20081023T054934Z +LAST-MODIFIED:20081023T055059Z +DTSTAMP:20081023T054934Z +UID:047871e3-6b70-4178-9af8-0ceb50f7b092 +SUMMARY:Weekly Project Meeting +RRULE:FREQ=WEEKLY;INTERVAL=1 +DTSTART;TZID=Pacific/Auckland:20081020T090000 +DTEND;TZID=Pacific/Auckland:20081020T100000 +X-MOZ-GENERATION:2 +END:VEVENT +BEGIN:VEVENT +CREATED:20081023T055115Z +LAST-MODIFIED:20081023T055139Z +DTSTAMP:20081023T055115Z +UID:9429a973-2b13-4b1a-be09-948d75425c45 +SUMMARY:Weekly catch-up +RRULE:FREQ=WEEKLY;INTERVAL=1 +DTSTART;TZID=Pacific/Auckland:20081024T140000 +DTEND;TZID=Pacific/Auckland:20081024T150000 +X-MOZ-GENERATION:2 +END:VEVENT +END:VCALENDAR +ENDDATA