mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +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
813 B
Plaintext
34 lines
813 B
Plaintext
#
|
|
# PROPFIND on a collection which we can only access via a ticket
|
|
# this should fail, because we don't supply the ticket
|
|
#
|
|
TYPE=PROPFIND
|
|
AUTH=user5:user5
|
|
|
|
# Get the ticket we created earlier in 948...
|
|
GETSQL=ticket
|
|
SELECT ticket_id FROM access_ticket
|
|
WHERE target_collection_id = 10 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: 0
|
|
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<propfind xmlns="DAV:"
|
|
xmlns:T="http://www.xythos.com/namespaces/StorageServer">
|
|
<prop>
|
|
<current-user-privilege-set/>
|
|
<T:ticketdiscovery/>
|
|
</prop>
|
|
</propfind>
|
|
ENDDATA
|
|
|
|
REPLACE=!<T:id>\S{8}</T:id>!<T:id>Good Ticket ID</T:id>!
|
|
|
|
URL=http://regression.host/caldav.php/user1/home/
|