davical/testing/tests/regression-suite/0310-Chandler-PUT-1.test
Andrew McMillan be71269331 Move test data into test.
Also added a DTSTAMP property to the data, which Chandler (at
least the very old version I was using when I did this testing
in the first place) omitted.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2010-12-27 18:22:30 +13:00

58 lines
1.5 KiB
Plaintext

#
# 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
BEGINDATA
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
DTSTAMP:20060511T043751Z
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
ENDDATA
QUERY
SELECT caldav_data.user_no, caldav_type, logged_user,
uid, dtstamp, dtstart at time zone tz_locn as dtstart,
dtend at time zone tz_locn as dtend, due, summary, location,
description, priority, class, transp, rrule, url,
percent_complete, tz_id, status,
last_modified,
caldav_data AS "A1 CalDAV DATA"
FROM caldav_data JOIN calendar_item USING(dav_name) LEFT JOIN time_zone USING (tz_id)
WHERE caldav_data.dav_name =
'/user1/home/71e2ae82-7870-11db-c6d6-f6927c144649.ics';
ENDQUERY