File: 1012-BIND.test

package info (click to toggle)
davical 1.1.12-2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,020 kB
  • sloc: php: 19,361; sql: 4,514; perl: 3,524; sh: 554; javascript: 162; makefile: 85
file content (38 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# 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 999...
GETSQL=ticket
SELECT ticket_id FROM access_ticket
                WHERE target_collection_id = 161 AND target_resource_id is null;
ENDSQL

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>user1</segment>
   <href>/caldav.php/user1/home</href>
</bind>
ENDDATA

QUERY
SELECT bind_id,
       bound_source_id,
       length(access_ticket_id) AS ticket_id_length,
       parent_container,
       dav_name,
       dav_displayname
  FROM dav_binding
ENDQUERY