mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33: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.
36 lines
712 B
Plaintext
36 lines
712 B
Plaintext
#
|
|
# Extended MKCOL test - create an addressbook
|
|
#
|
|
TYPE=MKCOL
|
|
HEADER=User-Agent: DAViCalTester/public
|
|
HEADER=Content-Type: text/xml
|
|
HEAD
|
|
|
|
AUTH=user2:user2
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<mkcol xmlns="DAV:" xmlns:CARD="urn:ietf:params:xml:ns:carddav">
|
|
<set>
|
|
<prop>
|
|
<resourcetype>
|
|
<collection/>
|
|
<CARD:addressbook/>
|
|
</resourcetype>
|
|
<displayname>User 2's Addresses</displayname>
|
|
</prop>
|
|
</set>
|
|
</mkcol>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user2/addressbook/
|
|
|
|
QUERY
|
|
SELECT user_no, parent_container, dav_displayname,
|
|
is_calendar, public_events_only, is_addressbook,
|
|
resourcetypes
|
|
FROM collection
|
|
WHERE dav_name = '/user2/addressbook/';
|
|
ENDQUERY
|
|
|