davical/testing/tests/regression-suite/0842-Spec-PROPPATCH-3.test
2010-04-29 11:21:05 +12:00

30 lines
680 B
Plaintext

#
# 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