mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-29 15:51:27 +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.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
#
|
|
# We now DELETE the ORGANIZER's copy of the actual event.
|
|
# - This should send a CANCEL reply and remove each attendee's
|
|
# copy of the event
|
|
#
|
|
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
|
|
|
|
AUTH=manager1:manager1
|
|
|
|
# Before we run, this time we'll assume everyone has read their inbox
|
|
# and all existing iTIP messages are deleted.
|
|
DOSQL
|
|
DELETE FROM caldav_data WHERE dav_name ~ E'/\\.in/.*E1A13F04-iCal-schedule\\.ics'
|
|
ENDDOSQL
|
|
|
|
URL=http://regression.host/manager1/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 managers's inbox.
|
|
# FIXME: this is not what .result looks like...
|
|
QUERY
|
|
SELECT calendar_item.dav_name,
|
|
caldav_data.caldav_data
|
|
FROM calendar_item JOIN caldav_data USING(dav_id, dav_name)
|
|
WHERE uid = 'E1A13F04-iCal-schedule'
|
|
ORDER BY dav_id
|
|
ENDQUERY
|
|
|