Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / regression-suite / 0951-MKTICKET.test
blob02516bc345b7878ab609eb4f9fb29475461689b3
2 # MKTICKET request for a ticket on a collection we don't have rights to
4 TYPE=MKTICKET
5 URL=http://regression.host/caldav.php/user4/home/
6 HEADER=User-Agent: Ticket Spec Tests
7 HEADER=Content-Type: text/xml; charset="UTF-8"
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        date_trunc( 'minute', (expires - current_timestamp + '55 seconds')::interval(0)) AS timeout,
22        privileges,
23        target_collection_id,
24        target_resource_id
25   FROM access_ticket
26 ENDQUERY
28 REPLACE=!<T:id>\S{8}</T:id>!<T:id>Good Ticket ID</T:id>!