mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
This allows us to have more complex test files where an action is taken, then we test something, then another action is taken, etc. Changes to test files are required so that URL is defined after all the required settings are set. Changes to the result files are either whitespace changes due to above logic changes, or printing out a SQL Result header before each result. I figured it was useful.
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
#
|
|
# Check for support of PROPPATCH method
|
|
#
|
|
# Try to set some dead properties on the collection
|
|
#
|
|
TYPE=PROPPATCH
|
|
HEADER=User-agent: SpecTest PROPPATCH
|
|
HEADER=Content-type: text/xml
|
|
HEAD
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
<propertyupdate xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:B="urn:example:cats">
|
|
<set>
|
|
<prop>
|
|
<resourcetype>
|
|
<collection/>
|
|
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
|
|
</resourcetype>
|
|
<displayname>User 1's Calendaranza</displayname>
|
|
<C:schedule-calendar-transp>
|
|
<C:opaque/>
|
|
</C:schedule-calendar-transp>
|
|
<spotted-grebe xmlns="http://xmlns.comical.net/birds"/>
|
|
<C:cats>
|
|
<C:cat breed="persian">Coconut</C:cat>
|
|
<C:cat breed="tabby">Tigger</C:cat>
|
|
<C:cat breed="burmese">Simba</C:cat>
|
|
</C:cats>
|
|
</prop>
|
|
</set>
|
|
</propertyupdate>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/home/
|
|
|
|
QUERY
|
|
SELECT dav_displayname, is_addressbook, is_calendar, resourcetypes,
|
|
modified > (current_timestamp - '5 minutes'::interval) AS changed_last_5m,
|
|
schedule_transp
|
|
FROM collection WHERE dav_name = '/user1/home/';
|
|
ENDQUERY
|
|
|
|
QUERY
|
|
SELECT property_name, property_value, changed_by
|
|
FROM property WHERE dav_name = '/user1/home/'
|
|
ENDQUERY
|