#
# Check for support of PROPPATCH method
#
# Try (and succeed) to set the collection to be a calendar.
#
TYPE=PROPPATCH
URL=http://regression.host/caldav.php/user1/home/
HEADER=User-agent: SpecTest PROPPATCH
HEADER=Content-type: text/xml
HEAD

BEGINDATA
<?xml version="1.0" encoding="utf-8" ?> 
<propertyupdate xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> 
  <set> 
    <prop> 
      <resourcetype> 
        <collection/>
        <calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
      </resourcetype> 
      <displayname>User 1's Calendaranza</displayname> 
      <C:schedule-calendar-transp>
       <C:opaque/>
      </C:schedule-calendar-transp>
    </prop> 
  </set> 
</propertyupdate>
ENDDATA

QUERY
SELECT dav_displayname, is_addressbook, is_calendar, resourcetypes,
       modified > (current_timestamp - '5 minutes'::interval) AS changed_last_5m,
       schedule_transp
  FROM collection WHERE dav_name = '/user1/home/';
ENDQUERY
