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

