mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-27 15:31:32 +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.
73 lines
2.0 KiB
Plaintext
73 lines
2.0 KiB
Plaintext
#
|
|
# PUT an event with several attendees - so we can delete the organizer
|
|
# copy in the next request.
|
|
#
|
|
# After this we should see 7 events: 1 manager, 3 attendees, 3 attendee iTIP
|
|
#
|
|
TYPE=PUT
|
|
HEADER=Content-Type: text/calendar
|
|
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)
|
|
HEAD
|
|
|
|
AUTH=manager1:manager1
|
|
|
|
BEGINDATA
|
|
BEGIN:VCALENDAR
|
|
VERSION:2.0
|
|
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
|
CALSCALE:GREGORIAN
|
|
BEGIN:VTIMEZONE
|
|
TZID:Pacific/Auckland
|
|
BEGIN:DAYLIGHT
|
|
TZOFFSETFROM:+1200
|
|
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
|
DTSTART:20070930T020000
|
|
TZNAME:GMT+13:00
|
|
TZOFFSETTO:+1300
|
|
END:DAYLIGHT
|
|
BEGIN:STANDARD
|
|
TZOFFSETFROM:+1300
|
|
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
|
DTSTART:20080406T030000
|
|
TZNAME:GMT+12:00
|
|
TZOFFSETTO:+1200
|
|
END:STANDARD
|
|
END:VTIMEZONE
|
|
BEGIN:VEVENT
|
|
CREATED:20111018T195845Z
|
|
UID:E1A13F04-iCal-schedule
|
|
DTEND;TZID=Pacific/Auckland:20111019T140000
|
|
ATTENDEE;CN="Manager 1";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:mailto:manag
|
|
er1@example.net
|
|
ATTENDEE;CN="user1@example.net";CUTYPE=INDIVIDUAL;EMAIL="user1@example.n
|
|
et";PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:user1@ex
|
|
ample.net
|
|
ATTENDEE;CN="user2@example.net";CUTYPE=INDIVIDUAL;EMAIL="user2@example.n
|
|
et";PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:user2@ex
|
|
ample.net
|
|
ATTENDEE;CN="user3@example.net";CUTYPE=INDIVIDUAL;EMAIL="user3@example.n
|
|
et";PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:user3@ex
|
|
ample.net
|
|
TRANSP:OPAQUE
|
|
SUMMARY:Meeting with User1
|
|
DTSTART;TZID=Pacific/Auckland:20111019T130000
|
|
DTSTAMP:20111024T035702Z
|
|
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
|
SEQUENCE:7
|
|
END:VEVENT
|
|
END:VCALENDAR
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/manager1/home/E1A13F04-iCal-schedule.ics
|
|
|
|
|
|
QUERY
|
|
SELECT caldav_data.user_no, caldav_data.dav_name,
|
|
caldav_type, logged_user, caldav_data.caldav_data AS "vcalendar",
|
|
summary
|
|
FROM caldav_data JOIN calendar_item USING(dav_name) LEFT JOIN timezones ON (tz_id=tzid)
|
|
WHERE calendar_item.uid = 'E1A13F04-iCal-schedule'
|
|
ORDER BY caldav_data.dav_id
|
|
ENDQUERY
|
|
|