mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
32 lines
821 B
Plaintext
32 lines
821 B
Plaintext
#
|
|
# Check for support of PROPPATCH method
|
|
#
|
|
# Try (and fail) to set the collection to be both an addressbook and 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:">
|
|
<set>
|
|
<prop>
|
|
<resourcetype>
|
|
<collection/>
|
|
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
|
<addressbook xmlns="urn:ietf:params:xml:ns:carddav"/>
|
|
</resourcetype>
|
|
</prop>
|
|
</set>
|
|
</propertyupdate>
|
|
ENDDATA
|
|
|
|
QUERY
|
|
SELECT dav_displayname, is_calendar, is_addressbook, resourcetypes,
|
|
modified > (current_timestamp - '5 minutes'::interval) AS changed_last_5m
|
|
FROM collection WHERE dav_name = '/user1/home/';
|
|
ENDQUERY
|