From bee84762233e27f2f4142d12ff6cee1d2eb37935 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 20 Nov 2006 22:12:10 +1300 Subject: [PATCH] More Chandler emulation regression tests. --- .../303-Chandler-PROPFIND-1.test | 1 + .../305-Chandler-PROPFIND-3.test | 13 ++++++++ .../regression-suite/306-Chandler-PUT-1.test | 10 ++++++ .../regression-suite/307-Chandler-PUT-2.test | 10 ++++++ ...2ae82-7870-11db-c6d6-f6927c144649.ics.data | 31 +++++++++++++++++++ ...1c0ee-7871-11db-c6d6-f6927c144649.ics.data | 14 +++++++++ 6 files changed, 79 insertions(+) create mode 100644 testing/tests/regression-suite/305-Chandler-PROPFIND-3.test create mode 100644 testing/tests/regression-suite/306-Chandler-PUT-1.test create mode 100644 testing/tests/regression-suite/307-Chandler-PUT-2.test create mode 100644 testing/tests/regression-suite/71e2ae82-7870-11db-c6d6-f6927c144649.ics.data create mode 100644 testing/tests/regression-suite/da81c0ee-7871-11db-c6d6-f6927c144649.ics.data diff --git a/testing/tests/regression-suite/303-Chandler-PROPFIND-1.test b/testing/tests/regression-suite/303-Chandler-PROPFIND-1.test index 6bef4981..dc51781d 100644 --- a/testing/tests/regression-suite/303-Chandler-PROPFIND-1.test +++ b/testing/tests/regression-suite/303-Chandler-PROPFIND-1.test @@ -1,6 +1,7 @@ # # Chandler expects to find the calendar. Here it confirms # that it actually is one. +# TYPE=PROPFIND URL=http://mycaldav/caldav.php/user1/home/ HEADER=Depth: 0 diff --git a/testing/tests/regression-suite/305-Chandler-PROPFIND-3.test b/testing/tests/regression-suite/305-Chandler-PROPFIND-3.test new file mode 100644 index 00000000..5fa075fc --- /dev/null +++ b/testing/tests/regression-suite/305-Chandler-PROPFIND-3.test @@ -0,0 +1,13 @@ +# +# When we get Chandler to do a "Sync All" it will do an OPTIONS request +# followed by three PROPFIND requests. The first PROPFIND request will +# be for "Depth: 0", but is otherwise identical to the other two. +# We've already tested the first, so now we'll do the second. +TYPE=PROPFIND +URL=http://mycaldav/caldav.php/user1/home/ +HEADER=Depth: 1 +HEADER=Content-Type: text/xml; charset=utf-8 +HEAD + +# The data from our first Chandler-like PROPFIND +DATA=303-Chandler-PROPFIND-1 diff --git a/testing/tests/regression-suite/306-Chandler-PUT-1.test b/testing/tests/regression-suite/306-Chandler-PUT-1.test new file mode 100644 index 00000000..dd9898ea --- /dev/null +++ b/testing/tests/regression-suite/306-Chandler-PUT-1.test @@ -0,0 +1,10 @@ +# +# PUT request like Chandler does it. +# +TYPE=PUT +URL=http://mycaldav/caldav.php/user1/home/71e2ae82-7870-11db-c6d6-f6927c144649.ics +HEADER=Content-Type: text/calendar +HEAD +# +# Somewhat atypical Chandler data since I insisted it use a timezone on this occasion +DATA=71e2ae82-7870-11db-c6d6-f6927c144649.ics \ No newline at end of file diff --git a/testing/tests/regression-suite/307-Chandler-PUT-2.test b/testing/tests/regression-suite/307-Chandler-PUT-2.test new file mode 100644 index 00000000..f391a6d5 --- /dev/null +++ b/testing/tests/regression-suite/307-Chandler-PUT-2.test @@ -0,0 +1,10 @@ +# +# PUT request like Chandler does it. +# +TYPE=PUT +URL=http://mycaldav/caldav.php/user1/home/da81c0ee-7871-11db-c6d6-f6927c144649.ics +HEADER=Content-Type: text/calendar +HEAD +# +# More typical Chandler data, without any timezone information. +DATA=da81c0ee-7871-11db-c6d6-f6927c144649.ics \ No newline at end of file diff --git a/testing/tests/regression-suite/71e2ae82-7870-11db-c6d6-f6927c144649.ics.data b/testing/tests/regression-suite/71e2ae82-7870-11db-c6d6-f6927c144649.ics.data new file mode 100644 index 00000000..3560139a --- /dev/null +++ b/testing/tests/regression-suite/71e2ae82-7870-11db-c6d6-f6927c144649.ics.data @@ -0,0 +1,31 @@ +BEGIN:VCALENDAR +VERSION:2.0 +PRODID:-//PYVOBJECT//NONSGML Version 1//EN +BEGIN:VTIMEZONE +TZID:Pacific/Auckland +BEGIN:STANDARD +DTSTART:20000319T030000 +RRULE:FREQ=YEARLY;BYDAY=3SU;BYMONTH=3 +TZNAME:Pacific/Auckland +TZOFFSETFROM:+1300 +TZOFFSETTO:+1200 +END:STANDARD +BEGIN:DAYLIGHT +DTSTART:20001001T020000 +RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=10 +TZNAME:Pacific/Auckland +TZOFFSETFROM:+1200 +TZOFFSETTO:+1300 +END:DAYLIGHT +END:VTIMEZONE +BEGIN:VEVENT +UID:71e2ae82-7870-11db-c6d6-f6927c144649 +DTSTART;TZID=Pacific/Auckland:20061103T160000 +DTEND;TZID=Pacific/Auckland:20061103T174500 +DESCRIPTION: +LOCATION:Level 3 +RRULE:FREQ=WEEKLY;INTERVAL=2;UNTIL=20071222T235900 +STATUS:CONFIRMED +SUMMARY:Beer O'Clock +END:VEVENT +END:VCALENDAR diff --git a/testing/tests/regression-suite/da81c0ee-7871-11db-c6d6-f6927c144649.ics.data b/testing/tests/regression-suite/da81c0ee-7871-11db-c6d6-f6927c144649.ics.data new file mode 100644 index 00000000..300a9f77 --- /dev/null +++ b/testing/tests/regression-suite/da81c0ee-7871-11db-c6d6-f6927c144649.ics.data @@ -0,0 +1,14 @@ +BEGIN:VCALENDAR +VERSION:2.0 +PRODID:-//PYVOBJECT//NONSGML Version 1//EN +BEGIN:VEVENT +UID:da81c0ee-7871-11db-c6d6-f6927c144649 +DTSTART:20061103T073000 +DTEND:20061103T093000 +DESCRIPTION: +LOCATION:Olivia's +RRULE:FREQ=MONTHLY +STATUS:CONFIRMED +SUMMARY:Morning Mgmt Mtg +END:VEVENT +END:VCALENDAR