Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / regression-suite / 0949-MKTICKET.test
blobe207de380c5407d59f38837f9591c29b81e8960e
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 # Test error response on no XML
12 BEGINDATA
13 ENDDATA
15 QUERY
16 SELECT dav_owner_id,
17        date_trunc( 'minute', (expires - current_timestamp + '30 seconds')::interval(0)) AS timeout,
18        privileges,
19        target_collection_id,
20        target_resource_id
21   FROM access_ticket
22 ENDQUERY
24 REPLACE=!<T:id>\S{8}</T:id>!<T:id>Good Ticket ID</T:id>!