mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +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
734 B
Plaintext
33 lines
734 B
Plaintext
#
|
|
# Test PROPPATCH to change the displayname on a bind
|
|
#
|
|
TYPE=PROPPATCH
|
|
AUTH=user4:user4
|
|
|
|
HEADER=User-Agent: DAViCalTester/public
|
|
HEADER=Content-Type: text/xml; charset="UTF-8"
|
|
HEAD
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<propertyupdate xmlns="DAV:" xmlns:DC="http://xmlns.dotcal.com/dotcal">
|
|
<set>
|
|
<prop>
|
|
<displayname>Updated Displayname with PROPPATCH</displayname>
|
|
<DC:icon_uri>http://eventful.com/favicon.ico</DC:icon_uri>
|
|
</prop>
|
|
</set>
|
|
</propertyupdate>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user4/user2/
|
|
|
|
QUERY
|
|
SELECT dav_displayname FROM dav_binding WHERE dav_name = '/user4/user2/'
|
|
ENDQUERY
|
|
|
|
QUERY
|
|
SELECT property_name, property_value FROM property WHERE dav_name = '/user4/user2/'
|
|
ENDQUERY
|