mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-28 15:40:14 +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.
59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
#
|
|
# PUT an iCal style event into the database
|
|
#
|
|
TYPE=PUT
|
|
HEADER=Content-Type: text/calendar
|
|
HEADER=User-Agent: RFC2518 Spec Tests
|
|
HEAD
|
|
|
|
|
|
BEGINDATA
|
|
BEGIN:VCALENDAR
|
|
VERSION:2.0
|
|
PRODID:-//davical.org//NONSGML AWL Calendar//EN
|
|
CALSCALE:GREGORIAN
|
|
BEGIN:VTIMEZONE
|
|
TZID:Pacific/Auckland
|
|
BEGIN:STANDARD
|
|
TZOFFSETFROM:+1300
|
|
TZOFFSETTO:+1200
|
|
DTSTART:19900318T030000
|
|
RRULE:FREQ=YEARLY;UNTIL=20070317T140000Z;BYMONTH=3;BYDAY=3SU
|
|
TZNAME:NZST
|
|
END:STANDARD
|
|
BEGIN:DAYLIGHT
|
|
TZOFFSETFROM:+1200
|
|
TZOFFSETTO:+1300
|
|
DTSTART:19901007T020000
|
|
RRULE:FREQ=YEARLY;UNTIL=20060930T140000Z;BYMONTH=10;BYDAY=1SU
|
|
TZNAME:NZDT
|
|
END:DAYLIGHT
|
|
END:VTIMEZONE
|
|
BEGIN:VEVENT
|
|
DESCRIPTION:Have a party. All the best parties are monthly!
|
|
UID:DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74
|
|
DTSTAMP:20081024T220925Z
|
|
SUMMARY:Party all day!
|
|
CREATED:20081024T220749Z
|
|
DTSTART;TZID=Pacific/Auckland;VALUE=DATE:20081114
|
|
RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=2FR
|
|
END:VEVENT
|
|
END:VCALENDAR
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.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,
|
|
dtend - dtstart AS "~Duration"
|
|
FROM caldav_data JOIN calendar_item USING(dav_name) JOIN timezones ON (tz_id=tzid)
|
|
WHERE caldav_data.dav_name =
|
|
'/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics';
|
|
ENDQUERY
|
|
|