Testing DELETE fails / succeeds on a locked object.

This commit is contained in:
Andrew McMillan 2006-12-09 11:25:09 +13:00
parent e237b33516
commit 0f120f0e00
2 changed files with 25 additions and 0 deletions

View File

@ -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

View 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