mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-12 15:36: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.
35 lines
718 B
Plaintext
35 lines
718 B
Plaintext
#
|
|
# PUT a VCARD record into a non-existing addressbook
|
|
#
|
|
TYPE=PUT
|
|
|
|
HEADER=User-Agent: DAViCalTester/public
|
|
HEADER=Content-Type: text/vcard; charset=utf-8
|
|
HEAD
|
|
|
|
BEGINDATA
|
|
begin:vcard
|
|
fn:Donald Kelly
|
|
n:Kelly;Donald
|
|
org:Esposo Designs Ltd
|
|
adr:Newtown;;25 Rintoul St;Wellington;;;New Zealand
|
|
email;internet:donald@example.co.nz
|
|
title:Proprietor
|
|
tel;work:+64 4 347 4747
|
|
tel;cell:+64 2 1234-4321
|
|
x-mozilla-html:TRUE
|
|
url:www.example.co.nz
|
|
version:2.1
|
|
end:vcard
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/addressbook1/kelly.vcf
|
|
|
|
QUERY
|
|
SELECT caldav_data.dav_name, caldav_data.dav_etag, fn, n
|
|
FROM caldav_data JOIN addressbook_resource USING(dav_id)
|
|
WHERE caldav_data.dav_name ~ '/user1/addressbook1/'
|
|
ENDQUERY
|
|
|
|
|