davical/testing/tests/regression-suite/2007-REPORT-expanded-nz-holidays-2011.test
Andrew Ruthven 7c47658bee Make the curl and SQL requests when we see them
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.
2024-04-01 22:57:10 +13:00

44 lines
951 B
Plaintext

#
# Test expanded report for NZ public holidays for 2011
#
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="20101231T110000Z" end="20111231T110000Z"/>
</calendar-data>
</D:prop>
<filter>
<comp-filter name="VCALENDAR">
<comp-filter name="VEVENT">
<time-range start="20101231T110000Z" end="20111231T110000Z"/>
</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 (rrule IS NOT NULL
OR (dtstart >= '20101231T110000Z' AND dtstart < '20111231T110000Z')
)
ENDQUERY