#
# Check for support of PROPPATCH method
#
# An attempt to remove the collection resourcetype should fail.
#
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:"> 
  <remove> 
    <prop> 
      <resourcetype> 
        <collection/>
      </resourcetype> 
    </prop> 
  </remove> 
</propertyupdate>
ENDDATA

QUERY
SELECT dav_displayname, is_calendar, resourcetypes,
       modified > (current_timestamp - '60 seconds'::interval) AS changed_last_60secs 
  FROM collection WHERE dav_name = '/user1/home/';
ENDQUERY
