Test for PUT failling / succeeding versus the lock.

This commit is contained in:
Andrew McMillan 2006-12-08 16:00:25 +13:00
parent 903df2857b
commit 7d3686524f
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#
# Attempt to put this Mulberry event into a location that is locked.
TYPE=PUT
URL=http://mycaldav/caldav.php/user1/home/i1278618276.ics
HEADER=Content-Type: text/calendar; charset=utf-8
HEAD
DATA=F56B49B10FC923D20FE2DC92D6580340-0.ics

View File

@ -0,0 +1,18 @@
#
# Attempt to put this Mulberry event into a location that is locked.
# - but this time supply the token so it succeeds
#
TYPE=PUT
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
DATA=F56B49B10FC923D20FE2DC92D6580340-0.ics