mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Test for PUT failling / succeeding versus the lock.
This commit is contained in:
parent
903df2857b
commit
7d3686524f
8
testing/tests/regression-suite/803-Mulberry-PUT-1.test
Normal file
8
testing/tests/regression-suite/803-Mulberry-PUT-1.test
Normal 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
|
||||
|
||||
18
testing/tests/regression-suite/804-Mulberry-PUT-1.test
Normal file
18
testing/tests/regression-suite/804-Mulberry-PUT-1.test
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user