davical/testing/tests/scheduling/3022-POST-availability.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

38 lines
1010 B
Plaintext

#
# Testing for how iCal does a POST for free/busy
#
TYPE=POST
HEADER=X-DAViCal-Flush-Cache: true
HEADER=DAVKit/4.0.3 (732.2); CalendarStore/4.0.4 (997.7); iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)
HEADER=Originator: mailto:manager1@example.net
HEADER=Recipient: mailto:manager1@example.net, mailto:user1@example.net
HEADER=Content-Type: text/calendar
AUTH=manager1:manager1
BEGINDATA
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
VERSION:2.0
METHOD:REQUEST
PRODID:-//Apple Inc.//iCal 4.0.4//EN
BEGIN:VFREEBUSY
UID:01B40176-4934-46AE-9C0A-19ECC41200E6
DTEND:20111025T110000Z
ATTENDEE:mailto:manager1@example.net
ATTENDEE:mailto:user1@example.net
DTSTART:20111024T110000Z
X-CALENDARSERVER-MASK-UID:E1A13F04-iCal-schedule
DTSTAMP:20111019T090043Z
ORGANIZER:mailto:manager1@example.net
SUMMARY:Availability for mailto:manager1@example.net and mailto:user1@ex
ample.net
END:VFREEBUSY
END:VCALENDAR
ENDDATA
REPLACE=/DTSTAMP:\d{8}T\d{6}Z/DTSTAMP:yyyymmddThhmmssZ/
URL=http://regression.host/caldav.php/manager1/.out/