mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-18 01:31:21 +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.
40 lines
930 B
Plaintext
40 lines
930 B
Plaintext
#
|
|
# MKCALENDAR test for iCal
|
|
#
|
|
TYPE=MKCALENDAR
|
|
HEADER=Content-Type: text/xml
|
|
HEAD
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<x0:mkcalendar xmlns:x0="urn:ietf:params:xml:ns:caldav" xmlns:x1="DAV:" xmlns:x2="http://apple.com/ns/ical/">
|
|
<x1:set>
|
|
<x1:prop>
|
|
<x1:displayname>Untitled</x1:displayname>
|
|
<x2:calendar-color>#391B71A0</x2:calendar-color>
|
|
<x0:supported-calendar-component-set>
|
|
<x0:comp name="VTODO"/>
|
|
</x0:supported-calendar-component-set>
|
|
</x1:prop>
|
|
</x1:set>
|
|
</x0:mkcalendar>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/VTODO-EFD9-4F0F-9BDC-5335E04D47E0/
|
|
|
|
|
|
QUERY
|
|
SELECT user_no, parent_container, dav_displayname,
|
|
is_calendar, public_events_only
|
|
FROM collection
|
|
WHERE dav_name = '/user1/VTODO-EFD9-4F0F-9BDC-5335E04D47E0/';
|
|
ENDQUERY
|
|
|
|
QUERY
|
|
SELECT property_name, property_value, changed_by
|
|
FROM property
|
|
WHERE dav_name = '/user1/VTODO-EFD9-4F0F-9BDC-5335E04D47E0/';
|
|
ENDQUERY
|
|
|