mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-01 16:11:20 +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.
45 lines
984 B
Plaintext
45 lines
984 B
Plaintext
#
|
|
# Test REPORT access to a non-public calendar using a ticket.
|
|
#
|
|
TYPE=REPORT
|
|
AUTH=user4:user4
|
|
|
|
|
|
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="20050531T120000Z" end="20050608T120000Z"/>
|
|
</calendar-data>
|
|
</D:prop>
|
|
<filter>
|
|
<comp-filter name="VCALENDAR">
|
|
<comp-filter name="VEVENT">
|
|
<time-range start="20050531T120000Z" end="20050608T120000Z"/>
|
|
</comp-filter>
|
|
</comp-filter>
|
|
</filter>
|
|
</calendar-query>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user4/nz_holidays/
|
|
|
|
QUERY
|
|
SELECT dtstart,
|
|
rrule,
|
|
summary
|
|
FROM calendar_item
|
|
WHERE dav_name ~ '^/user4/nz_holidays/'
|
|
AND summary ~* 'queen'
|
|
AND (rrule IS NOT NULL
|
|
OR (dtstart >= '20050531T120000Z' AND dtstart < '20050608T120000Z')
|
|
)
|
|
ENDQUERY
|
|
|