mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-29 15:51:27 +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.
36 lines
827 B
Plaintext
36 lines
827 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>
|
|
</x1:prop>
|
|
</x1:set>
|
|
</x0:mkcalendar>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/
|
|
|
|
QUERY
|
|
SELECT user_no, parent_container, dav_displayname,
|
|
is_calendar, public_events_only
|
|
FROM collection
|
|
WHERE dav_name = '/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/';
|
|
ENDQUERY
|
|
|
|
QUERY
|
|
SELECT property_name, property_value, changed_by
|
|
FROM property
|
|
WHERE dav_name = '/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/';
|
|
ENDQUERY
|
|
|