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

21 lines
692 B
Plaintext

#
# MOVE an event from one location to another
#
TYPE=MOVE
HEADER=User-Agent: RFC4918 Spec Tests
HEADER=Destination: /caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
HEAD
URL=http://regression.host/caldav.php/user1/anotherone/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics
QUERY
SELECT caldav_data.dav_name AS data_name, calendar_item.dav_name AS item_name,
caldav_data.user_no AS cd_user_no,
calendar_item.user_no AS ci_user_no,
caldav_data.collection_id AS cd_collection,
calendar_item.collection_id AS ci_collection
FROM caldav_data JOIN calendar_item USING(dav_id)
WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics';
ENDQUERY