davical/testing/tests/regression-suite/0880-Freebusy-POST.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

33 lines
917 B
Plaintext

#
# Testing for Spec compliance. POST on outbox for
# free/busy information
#
TYPE=POST
HEADER=User-Agent: draft-schedule-05 Spec Tests
HEADER=Content-Type: text/calendar
REPLACE=#<creationdate>\d{8}T\d{6}</creationdate>#<creationdate>YYYYMMDDThhmmss</creationdate>#
BEGINDATA
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
METHOD:REQUEST
BEGIN:VFREEBUSY
DTSTAMP:20081019T202752Z
ORGANIZER:mailto:user1@example.net
DTSTART:20081021T110000Z
DTEND:20081106T110000Z
UID:1e680b0e-ee15-4d63-844f-3e48aa92791f
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:
mailto:user1@example.net
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:
mailto:user2@example.net
END:VFREEBUSY
END:VCALENDAR
ENDDATA
REPLACE=/^DTSTAMP:\d{4}[01]\d[0123]\dT[012]\d[0-5]\d[0-6]\dZ\r?$/DTSTAMP:yyyymmddThhmmssZ/
URL=http://regression.host/caldav.php/user1/.out/