davical/testing/tests/binding/0999-MKTICKET.result
Andrew Ruthven 7c47658bee Make the curl and SQL requests when we see them
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.
2024-04-01 22:57:10 +13:00

40 lines
1016 B
Plaintext

HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
Ticket:Good Ticket ID
ETag: "Some good etag"
Content-Length: 524
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<prop xmlns="DAV:" xmlns:T="http://www.xythos.com/namespaces/StorageServer">
<T:ticketdiscovery>
<T:ticketinfo>
<T:id>Good Ticket ID</T:id>
<owner>
<href>/caldav.php/user2/</href>
</owner>
<privilege>
<read/>
<read-current-user-privilege-set/>
<write/>
<write-properties/>
<write-content/>
<bind/>
<unbind/>
</privilege>
<T:timeout>Second-3600</T:timeout>
<T:visits>infinity</T:visits>
</T:ticketinfo>
</T:ticketdiscovery>
</prop>
SQL Query 1 Result:
dav_owner_id: >1003<
privileges: >000000000001001011100111<
target_collection: >161<
target_resource_i: >NULL<
timeout: >01:00:00<