mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-17 01:20:24 +00:00
This allows us to have more complex test files where an action is taken, then we test something, then another action is taken, etc. Changes to test files are required so that URL is defined after all the required settings are set. Changes to the result files are either whitespace changes due to above logic changes, or printing out a SQL Result header before each result. I figured it was useful.
57 lines
1.6 KiB
Plaintext
57 lines
1.6 KiB
Plaintext
#
|
|
# PUT an event with a non-standard timezone
|
|
#
|
|
# There is no CalDAV defined behaviour for this.
|
|
#
|
|
TYPE=PUT
|
|
HEADER=User-Agent: DAViCal Testing/0.9.x
|
|
HEADER=Content-Type: text/calendar; charset=utf-8
|
|
|
|
HEAD
|
|
|
|
BEGINDATA
|
|
BEGIN:VCALENDAR
|
|
CALSCALE:GREGORIAN
|
|
PRODID:-//Ximian//NONSGML Evolution Calendar//EN
|
|
VERSION:2.0
|
|
BEGIN:VTIMEZONE
|
|
TZID:(UTC-05:00) Eastern Time (US & Canada)
|
|
BEGIN:STANDARD
|
|
DTSTART:16010101T020000
|
|
TZOFFSETFROM:-0400
|
|
TZOFFSETTO:-0500
|
|
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=11
|
|
END:STANDARD
|
|
BEGIN:DAYLIGHT
|
|
DTSTART:16010101T020000
|
|
TZOFFSETFROM:-0500
|
|
TZOFFSETTO:-0400
|
|
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=2SU;BYMONTH=3
|
|
END:DAYLIGHT
|
|
END:VTIMEZONE
|
|
BEGIN:VEVENT
|
|
UID:PUT-eastern-time
|
|
DTSTAMP:20101009T214524Z
|
|
SUMMARY;LANGUAGE=en-US:Psychic's Anonymous Meeting
|
|
DTSTART;TZID="(UTC-05:00) Eastern Time (US & Canada)":20110912T110000
|
|
DTEND;TZID="(UTC-05:00) Eastern Time (US & Canada)":20110912T113000
|
|
LOCATION:You will know when you arrive
|
|
CREATED:20101010T014639
|
|
LAST-MODIFIED:20101010T014639
|
|
END:VEVENT
|
|
END:VCALENDAR
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/home/PUT-eastern-time.ics
|
|
|
|
QUERY
|
|
SELECT caldav_data.user_no, caldav_data.dav_etag, caldav_type, logged_user,
|
|
uid, dtstamp, dtstart at time zone olson_name as dtstart, dtend at time zone olson_name as dtend, due, summary, location,
|
|
description, priority, class, transp, rrule, url,
|
|
percent_complete, tz_id, status,
|
|
caldav_data AS " CalDAV Data", calendar_item.last_modified
|
|
FROM caldav_data JOIN calendar_item USING(dav_name) JOIN timezones ON (tz_id=tzid)
|
|
WHERE caldav_data.dav_name =
|
|
'/user1/home/PUT-eastern-time.ics'
|
|
ENDQUERY
|