mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Testing DELETE fails / succeeds on a locked object.
This commit is contained in:
parent
e237b33516
commit
0f120f0e00
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Attempt to DELETE an event from a location that is locked.
|
||||
#
|
||||
TYPE=DELETE
|
||||
URL=http://mycaldav/caldav.php/user1/home/i1278618276.ics
|
||||
HEADER=Content-Type: text/calendar; charset=utf-8
|
||||
HEAD
|
||||
|
||||
17
testing/tests/regression-suite/806-Mulberry-DELETE-1.test
Normal file
17
testing/tests/regression-suite/806-Mulberry-DELETE-1.test
Normal file
@ -0,0 +1,17 @@
|
||||
#
|
||||
# Attempt to DELETE an event from a location that is locked.
|
||||
# - but this time supply the token so it succeeds
|
||||
#
|
||||
TYPE=DELETE
|
||||
URL=http://mycaldav/caldav.php/user1/home/i1278618276.ics
|
||||
|
||||
# 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user