davical/testing/tests/regression-suite/0806-Mulberry-DELETE-1.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

25 lines
569 B
Plaintext

#
# Attempt to DELETE an event from a location that is locked.
# - but this time supply the token so it succeeds
#
TYPE=DELETE
# Get the lock token from the earlier lock
GETSQL=locktoken
SELECT opaquelocktoken FROM locks WHERE dav_name = '/user1/home/i1278618276.ics'
ENDSQL
HEADER=Content-Type: text/calendar; charset=utf-8
HEADER=Lock-Token: <opaquelocktoken:##locktoken##>
HEAD
URL=http://regression.host/caldav.php/user1/home/i1278618276.ics
QUERY
SELECT dav_id, dav_name, dav_etag
FROM caldav_data
WHERE dav_name = '/user1/home/i1278618276.ics'
ENDQUERY