Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / binding / 1200-BIND-to-BIND.test
blob18b70c2d1e73c4e39b326ad400920931bbb0af35
2 # Here we are binding against a collection which is itself a binding
3 # bindings, at the same level in the same collection.
5 # Before:
6 #  /user4/boundbase a binding to a collection containing two bindings
7 #                   and a real collection
9 # After:
10 #  /user4/bind2bind is bound to /user4/boundbase, so it should also
11 #                 appear to contain two bindings and a collection
13 TYPE=BIND
14 URL=http://regression.host/caldav.php/user4/
15 AUTH=user4:user4
17 HEADER=User-Agent: Ticket Spec Tests
18 HEADER=Content-Type: text/xml; charset="UTF-8"
19 HEAD
22 BEGINDATA
23 <?xml version="1.0" encoding="utf-8"?>
24 <bind xmlns="DAV:">
25    <segment>bind2bind</segment>
26    <href>/caldav.php/user4/boundbase/</href>
27 </bind>
28 ENDDATA
30 QUERY
31 SELECT bind_id,
32        bound_source_id,
33        length(access_ticket_id),
34        parent_container,
35        dav_name,
36        dav_displayname
37   FROM dav_binding
38  ORDER BY bind_id
39 ENDQUERY