We are now emulating the MKCOL and DELETE(collection) which Chandler is

doing, correctly.  This presumably means we should re test with Chandler
from this point...
This commit is contained in:
Andrew McMillan 2006-12-06 21:54:12 +13:00
parent 75443b08f4
commit 15ab1df291
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,6 @@
HTTP/1.1 201 Created
Date: Dow, 01 Jan 2000 00:00:00 GMT
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
10 --- /user1/home/ --- /user1/home/.ce7ad224-8288-11db-ec28-b49a13ab0e46.tmp/ --- 72205b235fa2a3dfd18535c0793b89b2 --- .ce7ad224-8288-11db-ec28-b49a13ab0e46.tmp --- 0

View File

@ -0,0 +1,17 @@
#
# Test the MKCOL which Chandler does at this point in it's
# search for understanding
#
TYPE=MKCOL
URL=http://mycaldav/caldav.php/user1/home/.ce7ad224-8288-11db-ec28-b49a13ab0e46.tmp/
HEADER=Chandler/0.7alpha4 (Linux)
HEAD
#
# Query to confirm we got it
QUERY
SELECT user_no, parent_container, dav_name, dav_etag, dav_displayname, is_calendar
FROM collection
WHERE dav_name = '/user1/home/.ce7ad224-8288-11db-ec28-b49a13ab0e46.tmp/'
ENDQUERY

View File

@ -0,0 +1,6 @@
HTTP/1.1 204 No Content
Date: Dow, 01 Jan 2000 00:00:00 GMT
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
Count of matching calendars (should be 0) --- 0

View File

@ -0,0 +1,18 @@
#
# Test the DELETE of the collection which Chandler does at
# this point in it's search for understanding
#
TYPE=DELETE
URL=http://mycaldav/caldav.php/user1/home/.ce7ad224-8288-11db-ec28-b49a13ab0e46.tmp/
HEADER=Chandler/0.7alpha4 (Linux)
HEAD
#
# Query to confirm we got rid of it
QUERY
SELECT 'Count of matching calendars (should be 0)', count(1)
FROM collection
WHERE dav_name = '/user1/home/.ce7ad224-8288-11db-ec28-b49a13ab0e46.tmp/'
ENDQUERY