mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-20 06:09:32 +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.
32 lines
599 B
Plaintext
32 lines
599 B
Plaintext
#
|
|
# MKCALENDAR test for caldav4j
|
|
#
|
|
TYPE=MKCALENDAR
|
|
HEADER=Content-Type: text/xml
|
|
HEAD
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0"?>
|
|
<C:mkcalendar
|
|
xmlns:C="urn:ietf:params:xml:ns:caldav">
|
|
<D:set xmlns:D="DAV:">
|
|
<D:prop>
|
|
<C:calendar-description
|
|
xml:lang="en">My sample calendar
|
|
description</C:calendar-description>
|
|
</D:prop>
|
|
</D:set>
|
|
</C:mkcalendar>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/collection/
|
|
|
|
QUERY
|
|
SELECT user_no, parent_container, dav_displayname,
|
|
is_calendar, public_events_only
|
|
FROM collection
|
|
WHERE dav_name = '/user1/collection/';
|
|
ENDQUERY
|
|
|