mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Add regression to test deletion of items from another person's writable
calendar.
This commit is contained in:
parent
b4cfd93fd7
commit
b90381b4fa
7
testing/tests/regression-suite/022-Mulberry-PUT-5.result
Normal file
7
testing/tests/regression-suite/022-Mulberry-PUT-5.result
Normal file
@ -0,0 +1,7 @@
|
||||
HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
ETag: "d41d8cd98f00b204e9800998ecf8427e"
|
||||
Content-length: 0
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
8
testing/tests/regression-suite/022-Mulberry-PUT-5.test
Normal file
8
testing/tests/regression-suite/022-Mulberry-PUT-5.test
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# PUT another event into the resource2 calendar so we can DELETE it
|
||||
#
|
||||
TYPE=PUT
|
||||
URL=http://mycaldav/caldav.php/resource2/home/6AACA56AB56E981A1E7D968EDD13A05C-0.ics
|
||||
HEADER=Content-Type: text/calendar; charset=utf-8
|
||||
HEAD
|
||||
DATA=6AACA56AB56E981A1E7D968EDD13A05C-0.ics
|
||||
@ -0,0 +1,6 @@
|
||||
HTTP/1.1 200 Deleted
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Server: Apache/2.2.3 (Debian) DAV/2
|
||||
Content-length: 0
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
#
|
||||
# Do a DELETE with a correct etag which will succeed.
|
||||
TYPE=DELETE
|
||||
URL=http://mycaldav/caldav.php/resource2/home/6AACA56AB56E981A1E7D968EDD13A05C-0.ics
|
||||
HEAD
|
||||
Loading…
x
Reference in New Issue
Block a user