mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-02 16:20: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.
30 lines
851 B
Plaintext
30 lines
851 B
Plaintext
#
|
|
# PUT a calendar collection to user3 to test UTF-8 processing
|
|
#
|
|
TYPE=PUT
|
|
HEADER=User-Agent: RSCDS Testing/0.9.x
|
|
HEADER=Content-Type: text/calendar; charset=utf-8
|
|
AUTH=user3:user3
|
|
|
|
HEAD
|
|
|
|
DATA=utf8-test
|
|
|
|
URL=http://regression.host/caldav.php/user3/utf8/
|
|
|
|
QUERY
|
|
SELECT caldav_data.user_no, 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 "A1 CalDAV DATA"
|
|
FROM caldav_data JOIN calendar_item USING(dav_name) JOIN timezones ON (tz_id=tzid)
|
|
WHERE caldav_data.dav_name ~ '^/user3/utf8/'
|
|
ENDQUERY
|
|
|
|
QUERY
|
|
SELECT count(*)
|
|
FROM caldav_data JOIN calendar_item USING(dav_name)
|
|
WHERE caldav_data.dav_name ~ '^/user3/utf8/'
|
|
ENDQUERY
|