Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / regression-suite / 0956-PROPFIND.test
blob39f70649c84312262f970f7f6657796ea1736e2b
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/user1/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 = 160 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: 0
22 BEGINDATA
23 <?xml version="1.0" encoding="utf-8"?>
24 <propfind xmlns="DAV:"
25           xmlns:T="http://www.xythos.com/namespaces/StorageServer">
26  <prop>
27   <current-user-privilege-set/>
28   <T:ticketdiscovery/>
29  </prop>
30 </propfind>
31 ENDDATA
33 REPLACE=!<TKT:id>\S{8}</TKT:id>!<TKT:id>Good Ticket ID</TKT:id>!
34 REPLACE=!<TKT:timeout>Seconds-3\d+</TKT:timeout>!<TKT:timeout>Seconds-3600</TKT:timeout>!