#
# MKTICKET request for a ticket on a collection
#
TYPE=MKTICKET
HEADER=User-Agent: Ticket Spec Tests
HEADER=Content-Type: text/xml; charset="UTF-8"
HEAD
# Test error response on no XML
BEGINDATA
ENDDATA
URL=http://regression.host/caldav.php/user1/home/
QUERY
SELECT dav_owner_id,
date_trunc( 'minute', (expires - current_timestamp + '30 seconds')::interval(0)) AS timeout,
privileges,
target_collection_id,
target_resource_id
FROM access_ticket
ENDQUERY
REPLACE=!\S{8}!Good Ticket ID!