mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-19 14:10:14 +00:00
This allows us to have more complex test files where an action is taken, then we test something, then another action is taken, etc. Changes to test files are required so that URL is defined after all the required settings are set. Changes to the result files are either whitespace changes due to above logic changes, or printing out a SQL Result header before each result. I figured it was useful.
34 lines
842 B
Plaintext
34 lines
842 B
Plaintext
#
|
|
# PROPFIND on a collection which we can only access via a ticket
|
|
# also retrieving the tickets on that resource.
|
|
# using the /public.php/ URL with no authentication
|
|
#
|
|
TYPE=PROPFIND
|
|
NOAUTH
|
|
|
|
# Get the ticket we created earlier in 948...
|
|
GETSQL=ticket
|
|
SELECT ticket_id FROM access_ticket
|
|
WHERE target_collection_id = 161 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: 1
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<propfind xmlns="DAV:">
|
|
<prop>
|
|
<getetag/>
|
|
</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>!
|
|
|
|
URL=http://regression.host/public.php/user2/home/
|