Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / regression-suite / 0958-PROPFIND.test
blob97bd00c17c3310f8aec8789eb6e416618c291eb6
2 # PROPFIND on a collection which we can only access via a ticket
3 #     also retrieving the tickets on that resource.
4 #     using the /public.php/ URL with no authentication
6 TYPE=PROPFIND
7 URL=http://regression.host/public.php/user2/home/
8 NOAUTH
10 # Get the ticket we created earlier in 948...
11 GETSQL=ticket
12 SELECT ticket_id FROM access_ticket
13                 WHERE target_collection_id = 161 AND target_resource_id is null;
14 ENDSQL
16 HEADER=User-Agent: Ticket Spec Tests
17 HEADER=Content-Type: text/xml; charset="UTF-8"
18 HEADER=Ticket: ##ticket##
19 HEADER=Depth: 1
22 BEGINDATA
23 <?xml version="1.0" encoding="utf-8"?>
24 <propfind xmlns="DAV:">
25  <prop>
26   <getetag/>
27  </prop>
28 </propfind>
29 ENDDATA
31 REPLACE=!<TKT:id>\S{8}</TKT:id>!<TKT:id>Good Ticket ID</TKT:id>!
32 REPLACE=!<TKT:timeout>Seconds-3\d+</TKT:timeout>!<TKT:timeout>Seconds-3600</TKT:timeout>!