mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-28 18:16:05 +00:00
Test failure to remove a lock due to wrong lock token.
This commit is contained in:
parent
688d540cc5
commit
fa865570a0
28
testing/tests/regression-suite/838-Spec-LOCK.result
Normal file
28
testing/tests/regression-suite/838-Spec-LOCK.result
Normal file
@ -0,0 +1,28 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy
|
||||
Lock-Token: <opaquelocktoken:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx>
|
||||
Content-Length: 460
|
||||
Content-Type: text/xml; charset="utf-8"
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<prop xmlns="DAV:">
|
||||
<lockdiscovery>
|
||||
<activelock>
|
||||
<locktype>
|
||||
<write/>
|
||||
</locktype>
|
||||
<lockscope>
|
||||
<exclusive/>
|
||||
</lockscope>
|
||||
<depth>0</depth>
|
||||
<owner>
|
||||
<href>http://andrew.mcmillan.net.nz/node/5/</href>
|
||||
</owner>
|
||||
<timeout>Second-8640000</timeout>
|
||||
<locktoken>
|
||||
<href>opaquelocktoken:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</href>
|
||||
</locktoken>
|
||||
</activelock>
|
||||
</lockdiscovery>
|
||||
</prop>
|
||||
24
testing/tests/regression-suite/838-Spec-LOCK.test
Normal file
24
testing/tests/regression-suite/838-Spec-LOCK.test
Normal file
@ -0,0 +1,24 @@
|
||||
#
|
||||
# Test specification compliance for LOCK request
|
||||
#
|
||||
TYPE=LOCK
|
||||
URL=http://regression.host/caldav.php/user1/home/i1278618276.ics
|
||||
HEADER=Depth: 0
|
||||
HEADER=Timeout: Infinite,Second-4100000000
|
||||
HEADER=Content-type: text/xml; charset="utf-8"
|
||||
HEAD
|
||||
|
||||
#
|
||||
# Include the data in-line
|
||||
#
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<D:lockinfo xmlns:D='DAV:'>
|
||||
<D:lockscope><D:exclusive/></D:lockscope>
|
||||
<D:locktype><D:write/></D:locktype>
|
||||
<D:owner>
|
||||
<D:href>http://andrew.mcmillan.net.nz/node/5/</D:href>
|
||||
</D:owner>
|
||||
</D:lockinfo>
|
||||
ENDDATA
|
||||
|
||||
13
testing/tests/regression-suite/839-Spec-UNLOCK-1.result
Normal file
13
testing/tests/regression-suite/839-Spec-UNLOCK-1.result
Normal file
@ -0,0 +1,13 @@
|
||||
HTTP/1.1 207 Multi-Status
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy
|
||||
Content-Length: 198
|
||||
Content-Type: text/xml; charset="utf-8"
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<multistatus xmlns="DAV:">
|
||||
<response>
|
||||
<href>/user1/home/i1278618276.ics</href>
|
||||
<status>HTTP/1.1 423 Resource Locked</status>
|
||||
</response>
|
||||
</multistatus>
|
||||
14
testing/tests/regression-suite/839-Spec-UNLOCK-1.test
Normal file
14
testing/tests/regression-suite/839-Spec-UNLOCK-1.test
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# Test specification compliance for LOCK/UNLOCK request
|
||||
# - This should fail because we provide an invalid lock token
|
||||
#
|
||||
TYPE=UNLOCK
|
||||
URL=http://regression.host/caldav.php/user1/home/i1278618276.ics
|
||||
|
||||
HEADER=Content-type: text/xml; charset="utf-8"
|
||||
HEADER=Lock-Token: <opaquelocktoken:cafefeed-c001-b055-ea75-deadbeef4a11>
|
||||
HEAD
|
||||
|
||||
#
|
||||
# There is no data for an UNLOCK request
|
||||
#
|
||||
Loading…
x
Reference in New Issue
Block a user