mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-25 15:10:13 +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.
43 lines
939 B
Plaintext
43 lines
939 B
Plaintext
#
|
|
# Test REPORT access to a non-public calendar using a ticket.
|
|
#
|
|
TYPE=REPORT
|
|
AUTH=user5:user5
|
|
|
|
|
|
HEADER=User-Agent: DAViCalTester/public
|
|
HEADER=Content-Type: text/xml; charset="UTF-8"
|
|
HEAD
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<calendar-query xmlns:D="DAV:" xmlns="urn:ietf:params:xml:ns:caldav">
|
|
<D:prop>
|
|
<calendar-data>
|
|
<expand start="20100901T000000Z" end="20101231T000000Z"/>
|
|
</calendar-data>
|
|
</D:prop>
|
|
<filter>
|
|
<comp-filter name="VCALENDAR">
|
|
<comp-filter name="VEVENT">
|
|
<time-range start="20100901T000000Z" end="20101231T000000Z"/>
|
|
</comp-filter>
|
|
</comp-filter>
|
|
</filter>
|
|
</calendar-query>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user5/home/
|
|
|
|
QUERY
|
|
SELECT dav_name,
|
|
dtstart, dtstart AT TIME ZONE 'UTC' AS dtstart_utc,
|
|
rrule
|
|
FROM calendar_item
|
|
WHERE dav_name ~ '^/user5/home/'
|
|
AND rrule IS NOT NULL
|
|
AND dtstart < '20101201T000000Z'
|
|
ENDQUERY
|
|
|