mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-18 01:31:21 +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.
41 lines
938 B
Plaintext
41 lines
938 B
Plaintext
#
|
|
# Testing with a GroupDAV style request for a PROPFIND on the root with a Depth 1
|
|
#
|
|
TYPE=PROPFIND
|
|
HEAD
|
|
|
|
AUTH=user1:user1
|
|
|
|
HEADER=Content-Type: text/xml
|
|
HEADER=Depth: 1
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<propfind xmlns="DAV:"
|
|
xmlns:I="urn:ietf:params:xml:ns:caldav"
|
|
xmlns:C="urn:ietf:params:xml:ns:carddav"
|
|
xmlns:G="http://groupdav.org/"
|
|
xmlns:A="http://calendarserver.org/ns/"
|
|
>
|
|
<prop>
|
|
<displayname/>
|
|
<resourcetype/>
|
|
<getetag/>
|
|
<getcontenttype/>
|
|
<current-user-privilege-set/>
|
|
<G:component-set/>
|
|
<I:supported-calendar-component-set/>
|
|
<I:supported-calendar-data/>
|
|
<I:calendar-description/>
|
|
<C:supported-address-data/>
|
|
<C:addressbook-description/>
|
|
<A:getctag/>
|
|
</prop>
|
|
</propfind>
|
|
ENDDATA
|
|
|
|
REPLACE=/ETag: "\S+"/ETag: "some valid etag"/
|
|
REPLACE=!C:getctag>\S+</C:getctag!C:getctag>some valid etag</C:getctag!
|
|
|
|
URL=http://regression.host/caldav.php/
|