davical/testing/tests/regression-suite/2709c-FREEBUSY-Event.test
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

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:99970820T000000Z/\d+T\d+Z,FREEBUSY:99970820T000000Z/xx,
REPLACE=,^FREEBUSY:(?!99970820T000000Z)\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="99970820T000000Z" />
</C:free-busy-query>
ENDDATA
URL=http://regression.host/caldav.php/user1/past-and-future/