mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-18 01:31:21 +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.
25 lines
812 B
Plaintext
25 lines
812 B
Plaintext
#
|
|
# We now DELETE the ATTENDEE's copy of the actual event.
|
|
# - This should send a CANCEL reply and update the manager's
|
|
# event copy with the PARTSTAT=DECLINED
|
|
#
|
|
TYPE=DELETE
|
|
|
|
HEADER=User-Agent: 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
|
|
|
|
URL=http://regression.host/user1/home/E1A13F04-iCal-schedule.ics
|
|
|
|
#
|
|
# Query to confirm we got rid of it. There should be two now:
|
|
# - An event in the manager's calendar, with a PARTSTART=DECLINED for user 1
|
|
# - An iTIP message in the manager's inbox.
|
|
QUERY
|
|
SELECT calendar_item.dav_name,
|
|
regexp_replace(caldav_data,'DTSTAMP:[0-9T]{15}Z','DTSTAMP:looks good') AS vcalendar
|
|
FROM calendar_item JOIN caldav_data USING(dav_id, dav_name)
|
|
WHERE uid = 'E1A13F04-iCal-schedule'
|
|
ORDER BY dav_id
|
|
ENDQUERY
|
|
|