davical/testing/tests/binding/1000-BIND.test
Andrew McMillan 4178ab4254 Add caching of collection reads
Also a special header is added for telling DAViCal to flush the
cache during regression testing etc.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
2011-01-01 21:25:46 +13:00

41 lines
853 B
Plaintext

#
# BIND a collection into an additional location
# also applying a ticket during the bind
#
TYPE=BIND
URL=http://regression.host/caldav.php/user4/
AUTH=user4:user4
# Get the ticket we created earlier in 948...
GETSQL=ticket
SELECT ticket_id FROM access_ticket
WHERE target_collection_id = 11 AND target_resource_id is null;
ENDSQL
HEADER=X-DAViCal-Flush-Cache: true
HEADER=User-Agent: Ticket Spec Tests
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Ticket: ##ticket##
HEAD
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<bind xmlns="DAV:">
<segment>user2</segment>
<href>/caldav.php/user2/home</href>
</bind>
ENDDATA
QUERY
SELECT bind_id,
bound_source_id,
length(access_ticket_id),
dav_owner_id,
parent_container,
dav_name,
dav_displayname
FROM dav_binding
ENDQUERY