document closed Debian bug
[davical.git] / testing / tests / regression-suite / 0948-MKTICKET.test
blob0e6b8184b48a11e7ab43d6e2ee31cb3983b7a18d
2 # MKTICKET request for a ticket on a collection
4 TYPE=MKTICKET
5 URL=http://regression.host/caldav.php/user1/home/
6 HEADER=User-Agent: Ticket Spec Tests
7 HEADER=Content-Type: text/xml; charset="UTF-8"
8 HEAD
10 BEGINDATA
11 <?xml version="1.0" encoding="utf-8" ?>
12 <D:ticketinfo xmlns:D="DAV:" >
13   <D:privilege><D:read/></D:privilege>
14   <D:timeout>Second-3600</D:timeout>
15   <D:visits>1</D:visits>
16 </D:ticketinfo>
17 ENDDATA
19 QUERY
20 SELECT dav_owner_id,
21        (expires - current_timestamp)::interval(0) AS timeout,
22        privileges,
23        target_collection_id,
24        target_resource_id
25   FROM access_ticket
26 ENDQUERY
28 REPLACE=!ETag: "\S+"!ETag: "Some good etag"!
29 REPLACE=!<T:id>\S{8}</T:id>!<T:id>Good Ticket ID</T:id>!
30 REPLACE=!Ticket: \S{8}!Ticket:Good Ticket ID!