More Chandler emulation regression tests.

This commit is contained in:
Andrew McMillan 2006-11-20 22:12:10 +13:00
parent b7bb25926a
commit bee8476223
6 changed files with 79 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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