mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +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.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
#
|
|
# Attempt to put an event into a bound location, where
|
|
# the binding does confer write privileges
|
|
#
|
|
TYPE=PUT
|
|
|
|
HEADER=Content-Type: text/calendar; charset=utf-8
|
|
AUTH=user4:user4
|
|
HEAD
|
|
|
|
BEGINDATA
|
|
BEGIN:VCALENDAR
|
|
VERSION:2.0
|
|
PRODID:-//Apple Inc.//iCal 3.0//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:VTODO
|
|
PRIORITY:0
|
|
SEQUENCE:4
|
|
DTSTART;TZID=Pacific/Auckland:20040101T120000
|
|
UID:A51AC037-E6F9-4E03-872C-7DFE0B67D1FF
|
|
DTSTAMP:20100318T210557Z
|
|
SUMMARY:Release DAViCal 0.9.9
|
|
CREATED:20100318T210457Z
|
|
X-APPLE-SORT-ORDER:2147483647
|
|
DUE;VALUE=DATE:20100326
|
|
END:VTODO
|
|
END:VCALENDAR
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user4/base/user2/thiswillalsobegood.ics
|
|
|
|
QUERY
|
|
SELECT caldav_data.dav_name, caldav_data.dav_etag, dtstart, summary
|
|
FROM caldav_data JOIN calendar_item USING(dav_name)
|
|
WHERE caldav_data.dav_name ~ '/user2/.*thiswill'
|
|
ORDER BY dav_etag
|
|
ENDQUERY
|
|
|
|
|