mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-25 15:10:13 +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.
32 lines
637 B
Plaintext
32 lines
637 B
Plaintext
#
|
|
# PROPFIND on addressbook resource
|
|
# Depth 1 this time, and looking for getetag
|
|
#
|
|
TYPE=PROPFIND
|
|
HEADER=User-Agent: DAViCalTester/public
|
|
HEADER=Content-Type: text/xml
|
|
HEADER=Depth: 1
|
|
# HEAD
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<propfind xmlns="DAV:">
|
|
<prop>
|
|
<getetag/>
|
|
<getlastmodified/>
|
|
</prop>
|
|
</propfind>
|
|
ENDDATA
|
|
|
|
REPLACE=/<get.tag>"[0-9a-f]{32}"<.get.tag>/<get?tag>"deadbeefcafef00ddeadbeefcafefeed"<.get?tag>/
|
|
|
|
URL=http://regression.host/caldav.php/user1/addressbook/
|
|
|
|
QUERY
|
|
SELECT count(1)
|
|
FROM collection LEFT JOIN caldav_data USING(collection_id)
|
|
WHERE collection.dav_name = '/user1/addressbook/'
|
|
ENDQUERY
|
|
|