mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-22 02:04:19 +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.
33 lines
801 B
Plaintext
33 lines
801 B
Plaintext
#
|
|
# Check for support of PROPPATCH method
|
|
#
|
|
# An attempt to set an arbitrary property on a principal
|
|
#
|
|
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:DC="http://dotcal.com/principal-properties">
|
|
<set>
|
|
<prop>
|
|
<DC:country>New Zealand</DC:country>
|
|
<DC:countrycode>NZ</DC:countrycode>
|
|
<displayname>User Number One PROPPATCH'd in</displayname>
|
|
</prop>
|
|
</set>
|
|
</propertyupdate>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/
|
|
|
|
QUERY
|
|
SELECT fullname, displayname FROM dav_principal WHERE dav_name = '/user1/';
|
|
ENDQUERY
|
|
|
|
QUERY
|
|
SELECT dav_name, property_name, property_value, changed_by FROM property WHERE dav_name = '/user1/';
|
|
ENDQUERY
|