mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-02 06:14:17 +00:00
30 lines
680 B
Plaintext
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
|