davical/testing/tests/regression-suite/2004-REPORT-expanded-nz-holidays-2008.test
Andrew McMillan 7d135d39fa Correct handling of floating events & BYYEARDAY.
Also some minor refactoring.  Regression tests for all NZ holidays
from 2005 to 2011 (only the calculatable ones for 2005-2008).

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-04 16:46:57 +13:00

45 lines
1013 B
Plaintext

#
# Test expanded report for NZ public holidays for 2008
# Test REPORT access to a non-public calendar using a ticket.
#
TYPE=REPORT
URL=http://regression.host/caldav.php/user4/nz_holidays/
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="20071231T110000Z" end="20081231T110000Z"/>
</calendar-data>
</D:prop>
<filter>
<comp-filter name="VCALENDAR">
<comp-filter name="VEVENT">
<time-range start="20071231T110000Z" end="20081231T110000Z"/>
</comp-filter>
</comp-filter>
</filter>
</calendar-query>
ENDDATA
QUERY
SELECT dtstart,
rrule,
summary
FROM calendar_item
WHERE dav_name ~ '^/user4/nz_holidays/'
AND (rrule IS NOT NULL
OR (dtstart >= '20071231T110000Z' AND dtstart < '20081231T110000Z')
)
ENDQUERY