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.
24 lines
580 B
Plaintext
24 lines
580 B
Plaintext
#
|
|
# Check for support of REPORT sync-collection with no sync-token
|
|
#
|
|
TYPE=REPORT
|
|
HEADER=User-agent: sync-collection initial REPORT
|
|
HEADER=Content-type: text/xml
|
|
HEAD
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
<D:sync-collection xmlns:D="DAV:">
|
|
<D:sync-token/>
|
|
<D:prop>
|
|
<D:getetag/>
|
|
<D:getcontenttype/>
|
|
</D:prop>
|
|
</D:sync-collection>
|
|
ENDDATA
|
|
|
|
REPLACE=/<get.tag>"[0-9a-f]{32}"<.get.tag>/<get?tag>"deadbeefcafef00ddeadbeefcafefeed"<.get?tag>/
|
|
REPLACE=/^ETag: "[0-9a-f]+"\s$/ETag: "a fine looking etag"/
|
|
|
|
URL=http://regression.host/caldav.php/user1/addressbook/
|