Add regression to test deletion of items from another person's writable

calendar.
This commit is contained in:
Andrew McMillan 2006-11-22 07:30:54 +13:00
parent b4cfd93fd7
commit b90381b4fa
4 changed files with 26 additions and 0 deletions

View 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

View 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

View File

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

View File

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