Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / regression-suite / 0952-PROPFIND.test
blob066e029b37ea6d9d310bfa0354bdf0d70ecfd6c9
2 # PROPFIND on a collection which we can only access via a ticket
3 #     also retrieving the tickets on that resource.
5 TYPE=PROPFIND
6 URL=http://regression.host/caldav.php/user1/home/
7 AUTH=user5:user5
9 # Get the ticket we created earlier in 948...
10 GETSQL=ticket
11 SELECT ticket_id FROM access_ticket
12                 WHERE target_collection_id = 160 AND target_resource_id is null;
13 ENDSQL
15 HEADER=User-Agent: Ticket Spec Tests
16 HEADER=Content-Type: text/xml; charset="UTF-8"
17 HEADER=Ticket: ##ticket##
18 HEADER=Depth: 0
21 BEGINDATA
22 <?xml version="1.0" encoding="utf-8"?>
23 <propfind xmlns="DAV:"
24           xmlns:T="http://www.xythos.com/namespaces/StorageServer">
25  <prop>
26   <current-user-privilege-set/>
27   <T:ticketdiscovery/>
28  </prop>
29 </propfind>
30 ENDDATA
32 REPLACE=!<TKT:id>\S{8}</TKT:id>!<TKT:id>Good Ticket ID</TKT:id>!
33 REPLACE=!<TKT:timeout>Seconds-3\d+</TKT:timeout>!<TKT:timeout>Seconds-3600</TKT:timeout>!