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.
41 lines
855 B
Plaintext
41 lines
855 B
Plaintext
#
|
|
# Here we are binding against a collection containing further
|
|
# bindings, at the same level in the same collection.
|
|
#
|
|
# Before:
|
|
# /user4/base a collection containing two bindings and a collection
|
|
#
|
|
# After:
|
|
# /user4/boundbase is bound to /user4/base, so it should also appear
|
|
# to contain two bindings and a collection
|
|
#
|
|
TYPE=BIND
|
|
AUTH=user4:user4
|
|
|
|
HEADER=User-Agent: Ticket Spec Tests
|
|
HEADER=Content-Type: text/xml; charset="UTF-8"
|
|
HEAD
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<bind xmlns="DAV:">
|
|
<segment>boundbase</segment>
|
|
<href>/caldav.php/user4/base</href>
|
|
</bind>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user4/
|
|
|
|
QUERY
|
|
SELECT bind_id,
|
|
bound_source_id,
|
|
length(access_ticket_id),
|
|
parent_container,
|
|
dav_name,
|
|
dav_displayname
|
|
FROM dav_binding
|
|
ORDER BY bind_id
|
|
ENDQUERY
|
|
|