davical/testing/tests/carddav/2040-PUT-addressbook.test
Florian Schlichting 44ff0b3286 update tests for changed etags, unstable REV/UID or sort order, improved property parsing
Changed line wrapping in awl is one major reason for etag changes.

With this commit, all tests in regression-suite, binding and carddav
pass for me, using the configuration outlined in README.regression_tests
2017-09-21 00:39:30 +02:00

55 lines
1.0 KiB
Plaintext

#
# PUT three VCARD records into an addressbook
#
TYPE=PUT
URL=http://regression.host/caldav.php/user1/addresses/
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
BEGIN:VCARD
VERSION:2.1
N:Weasley;George
FN:George Weasley
EMAIL;PREF;INTERNET:gweasley@example.org
REV:20030909T234634Z
END:VCARD
BEGIN:VCARD
VERSION:2.1
N:Weasley;Fred
FN:Fred Weasley
EMAIL;PREF;INTERNET:fweasley@example.org
REV:20030909T234507Z
END:VCARD
ENDDATA
QUERY
SELECT COUNT(caldav_data.dav_name)
FROM caldav_data
WHERE caldav_data.dav_name ~ '/user1/addresses/'
ENDQUERY
QUERY
SELECT fn
FROM caldav_data JOIN addressbook_resource USING(dav_id)
WHERE caldav_data.dav_name ~ '/user1/addresses/'
ORDER BY fn
ENDQUERY