mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-30 16:00:25 +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.
28 lines
894 B
Plaintext
28 lines
894 B
Plaintext
#
|
|
# Free/Busy should show two busy periods one that starts at the timestamp
|
|
# and another a week later. I haven't added logic to the script which
|
|
# generates this file to work out what those other dates are, so as long
|
|
# as we have two busy periods, we'll call that done.
|
|
#
|
|
TYPE=REPORT
|
|
AUTH=user1:user1
|
|
HEADER=Content-Type: text/xml; charset="UTF-8"
|
|
HEADER=Depth: 0
|
|
HEAD
|
|
|
|
REPLACE=/^Content-Length: [0-9]+/Content-Length: xx/
|
|
REPLACE=/^DTSTAMP:\d+T\d+Z/DTSTAMP:xx/
|
|
REPLACE=/^DTEND:\d+T\d+Z/DTEND:xx/
|
|
REPLACE=,^FREEBUSY:00010102T000000Z/\d+T\d+Z,FREEBUSY:00010102T000000Z/xx,
|
|
REPLACE=,^FREEBUSY:(?!00010102T000000Z)\d+T\d+Z/\d+T\d+Z,FREEBUSY:xx/xx,
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
<C:free-busy-query xmlns:C="urn:ietf:params:xml:ns:caldav">
|
|
<C:time-range start="00010102T000000Z" />
|
|
</C:free-busy-query>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/user1/past-and-future/
|
|
|