davical/testing/tests/regression-suite/0952-PROPFIND.test

34 lines
904 B
Plaintext

#
# PROPFIND on a collection which we can only access via a ticket
# also retrieving the tickets on that resource.
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/user1/home/
AUTH=user5:user5
# Get the ticket we created earlier in 948...
GETSQL=ticket
SELECT ticket_id FROM access_ticket
WHERE target_collection_id = 160 AND target_resource_id is null;
ENDSQL
HEADER=User-Agent: Ticket Spec Tests
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Ticket: ##ticket##
HEADER=Depth: 0
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<propfind xmlns="DAV:"
xmlns:T="http://www.xythos.com/namespaces/StorageServer">
<prop>
<current-user-privilege-set/>
<T:ticketdiscovery/>
</prop>
</propfind>
ENDDATA
REPLACE=!<TKT:id>\S{8}</TKT:id>!<TKT:id>Good Ticket ID</TKT:id>!
REPLACE=!<TKT:timeout>Seconds-3\d+</TKT:timeout>!<TKT:timeout>Seconds-3600</TKT:timeout>!