davical/testing/tests/carddav/2050-PUT-carddavclient.test
Andrew Ruthven 7c47658bee Make the curl and SQL requests when we see them
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.
2024-04-01 22:57:10 +13:00

60 lines
1.4 KiB
Plaintext

#
# Put the VCARDs used for carddavclient's interop/AddressbookQueryTest
# into user5's addressbook
#
TYPE=PUT
HEADER=Accept: text/xml,application/xml
HEADER=Content-Type: text/vcard
AUTH=user5:user5
# HEAD
BEGINDATA
BEGIN:VCARD
VERSION:4.0
PRODID:-//Sabre//Sabre VObject 4.3.3//EN
UID:sabre-vobject-131cdf91-5460-423b-a836-e420e5affe13
FN:CardDavClient Test212420682
N:Test212420682;CardDavClient;;;
NICKNAME:Jonny0
EMAIL;TYPE=HOME:john6doe@example.com
EMAIL;TYPE=WORK:doe6@example.com
X-CUSTOMPROP;X-CUSTOMPARAM=WORK:foobar
END:VCARD
BEGIN:VCARD
VERSION:4.0
PRODID:-//Sabre//Sabre VObject 4.3.3//EN
UID:sabre-vobject-8121cd7a-8251-4b74-a952-ca91fdc21e36
FN:CardDavClient Test913043917
N:Test913043917;CardDavClient;;;
NICKNAME:Jonny1
EMAIL:maxmu@abcd.com
X-CUSTOMPROP;X-CUSTOMPARAM=HOME,WORK:foobar
END:VCARD
BEGIN:VCARD
VERSION:4.0
PRODID:-//Sabre//Sabre VObject 4.3.3//EN
UID:sabre-vobject-41956788-1273-449e-bfb7-716850c91ec6
FN:CardDavClient Test879489908
N:Test879489908;CardDavClient;;;
NICKNAME:Jonny2
TEL;TYPE=HOME:12345
TEL:555
END:VCARD
BEGIN:VCARD
VERSION:4.0
PRODID:-//Sabre//Sabre VObject 4.3.3//EN
UID:sabre-vobject-34cd55a8-330f-47cd-8b69-6fbd16a0880b
FN:CardDavClient Test1520108081
N:Test1520108081;CardDavClient;;;
NICKNAME:Jonny3
item1.EMAIL:foo@ex.com
item1.X-ABLABEL:CustomLabel
IMPP;X-SERVICE-TYPE=Jabber;TYPE=HOME:xmpp:foo@example.com
END:VCARD
ENDDATA
URL=http://regression.host/caldav.php/user5/addresses/