davical/testing/tests/regression-suite/2402-RFC5545-Compliance-MONHTLY-CleanUp.test
Andrew Ruthven 7c47658bee Make the curl and SQL requests when we see them
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.
2024-04-01 22:57:10 +13:00

23 lines
805 B
Plaintext

#
# Remove the event that repeats monthly on the 31st.
#
TYPE=DELETE
HEADER=Content-Type: text/calendar
AUTH=user4:user4
HEAD
URL=http://regression.host/caldav.php/user4/home/RFC5545-Compliance-MONTHLY.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 LEFT JOIN calendar_item USING(dav_name) LEFT JOIN timezones ON (tz_id=tzid)
WHERE caldav_data.dav_name =
'/user4/home/RFC5545-Compliance-MONTHLY.ics';
ENDQUERY