mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-18 01:31:21 +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.
27 lines
754 B
Plaintext
27 lines
754 B
Plaintext
#
|
|
# PUT arbitrary text into a collection (in this case an addressbook)
|
|
#
|
|
TYPE=PUT
|
|
|
|
HEADER=User-Agent: DAViCalTester/public
|
|
HEADER=Content-Type: text/plain; charset=utf-8
|
|
HEAD
|
|
|
|
BEGINDATA
|
|
Once upon a time there was an old, old man who lived with a great
|
|
white wolf. As is often the habit with men, he had not always been
|
|
quite as old as he was now. Beren had not always been this white,
|
|
either, he thought, lying across the porch and looking out at all
|
|
the youthful energy visible in the springtime forest.
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/addressbook/strumar_and_beren.txt
|
|
|
|
QUERY
|
|
SELECT caldav_data.dav_name, caldav_data.dav_etag
|
|
FROM caldav_data
|
|
WHERE caldav_data.dav_name ~ '/user1/addressbook/strumar_and_beren.txt'
|
|
ENDQUERY
|
|
|
|
|