davical/testing/tests/regression-suite/842-Spec-PROPPATCH-3.test
2008-10-25 20:37:51 +13:00

30 lines
659 B
Plaintext

#
# Check for support of PROPPATCH method
#
# An attempt to remove the collection resourcetype should fail.
#
TYPE=PROPPATCH
URL=http://mycaldav/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,
modified > (current_timestamp - '60 seconds'::interval) AS changed_last_60secs
FROM collection WHERE dav_name = '/user1/home/';
ENDQUERY