davical/testing/tests/scheduling/3001-POST-CANCEL.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

63 lines
1.7 KiB
Plaintext

#
# Testing for how iCal does a POST for free/busy
#
TYPE=POST
HEADER=X-DAViCal-Flush-Cache: true
HEADER=User-Agent: DAVKit/4.0.3 (732); CalendarStore/4.0.4 (997); iCal/4.0.4 (1395); Mac OS X/10.6.5 (10H574)
HEADER=Recipient: mailto:user2@example.net
HEADER=Content-Type: text/calendar
HEADER=Originator: mailto:user1@example.net
HEADER=Content-Type: text/calendar
# REPLACE=#<creationdate>\d{8}T\d{6}</creationdate>#<creationdate>YYYYMMDDThhmmss</creationdate>#
# REPLACE=/^DTSTAMP:\d{4}[01]\d[0123]\dT[012]\d[0-5]\d[0-6]\dZ\r?$/DTSTAMP:yyyymmddThhmmssZ/
# QUERY
# ENDQUERY
BEGINDATA
BEGIN:VCALENDAR
CALSCALE:GREGORIAN
VERSION:2.0
METHOD:CANCEL
PRODID:-//Apple Inc.//iCal 4.0.4//EN
BEGIN:VTIMEZONE
TZID:Europe/Paris
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
DTSTART:19810329T020000
TZNAME:GMT+02:00
TZOFFSETTO:+0200
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
DTSTART:19961027T030000
TZNAME:GMT+01:00
TZOFFSETTO:+0100
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
ATTENDEE;CN="user2@example.net";CUTYPE=INDIVIDUAL;EMAIL="user2@example
.net";PARTSTAT=DECLINED;ROLE=REQ-PARTICIPANT:mailto:user2@example
.net
ATTENDEE;CN="User One";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:mailto:
user1@example.net
DTEND;TZID=Europe/Paris:20101214T030000
TRANSP:OPAQUE
ORGANIZER;CN="User One":mailto:user1@example.net
UID:EE496371-F00D-4550-8E05-13782C5B7A5C
DTSTAMP:20101213T001258Z
STATUS:CANCELLED
SEQUENCE:6
SUMMARY:adding event to test invitee with wireshark
DTSTART;TZID=Europe/Paris:20101214T020000
CREATED:20101212T235850Z
END:VEVENT
END:VCALENDAR
ENDDATA
URL=http://regression.host/caldav.php/user1/.out/