Now working to a large degree with Chandler, so here are some regression

tests that indicate it.
This commit is contained in:
Andrew McMillan 2006-11-11 11:31:54 +13:00
parent d4ac3c7faf
commit ae97640aef
15 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1,8 @@
HTTP/1.1 401 Unauthorized
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
WWW-Authenticate: Basic realm="Really Simple CalDAV Store"
Content-Length: 40
Content-Type: text/html; charset=UTF-8
Please log in for access to this system.

View File

@ -0,0 +1,7 @@
#
# Do an initial OPTIONS request (unauthenticated)
TYPE=OPTIONS
URL=http://mycaldav/caldav.php/user1/home/
NOAUTH
HEAD

View File

@ -0,0 +1,6 @@
HTTP/1.1 401 Unauthorized
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
WWW-Authenticate: Basic realm="Really Simple CalDAV Store"
Content-Type: text/html; charset=UTF-8

View File

@ -0,0 +1,7 @@
#
# Do an initial HEAD request (unauthenticated)
TYPE=HEAD
URL=http://mycaldav/caldav.php/user1/home/
NOAUTH
HEAD

View File

@ -0,0 +1,8 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
Content-length: 0
Allow: OPTIONS, GET, PUT, DELETE, PROPFIND, REPORT, MKCALENDAR, MKCOL
DAV: 1, 2, access-control, calendar-access
Content-Type: text/plain; charset=UTF-8

View File

@ -0,0 +1,6 @@
#
# Do an initial OPTIONS request (authenticated)
TYPE=OPTIONS
URL=http://mycaldav/caldav.php/user1/home/
HEAD

View File

@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<ns0:propfind xmlns:ns0="DAV:"><ns0:prop><ns0:getetag /><ns0:resourcetype /><ns0:displayname /></ns0:prop></ns0:propfind>

View File

@ -0,0 +1,24 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "b33a256a3e7280f9abf2d398be2d3ecc"
Content-Length: 443
Content-Type: text/xml;charset=UTF-8
<?xml version="1.0" encoding="UTF-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/user1/home/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
</resourcetype>
<displayname>User1 home</displayname>
<getetag>"faf25336de0e470a54075c14cbcf5272"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,8 @@
#
# Chandler expects to find the calendar. Here it confirms
# that it actually is one.
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/user1/home/
HEADER=Depth: 0
HEADER=Content-Type: text/xml; charset=utf-8
HEAD

View File

@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<ns0:propfind xmlns:ns0="DAV:"><ns0:prop><ns0:current-user-privilege-set /><ns0:getetag /><ns0:resourcetype /><ns0:displayname /></ns0:prop></ns0:propfind>

View File

@ -0,0 +1,32 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "082ac70c0fd381e0f5ef0fa3443862a5"
Content-Length: 609
Content-Type: text/xml;charset=UTF-8
<?xml version="1.0" encoding="UTF-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/user1/home/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>
</resourcetype>
<displayname>User1 home</displayname>
<getetag>"faf25336de0e470a54075c14cbcf5272"</getetag>
<current-user-privilege-set>
<privilege>
<read/>
</privilege>
<privilege>
<write/>
</privilege>
</current-user-privilege-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,8 @@
#
# Chandler expects the calendar to be there. After confirming
# that it wants to find out what privileges are available.
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/user1/home/
HEADER=Depth: 0
HEADER=Content-Type: text/xml; charset=utf-8
HEAD

View File

@ -0,0 +1 @@
Write access test

View File

@ -0,0 +1,8 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
Content-length: 0
Allow: OPTIONS, GET, PUT, DELETE, PROPFIND, REPORT, MKCALENDAR, MKCOL
DAV: 1, 2, access-control, calendar-access
Content-Type: text/plain; charset=UTF-8

View File

@ -0,0 +1,6 @@
#
# Now do an OPTIONS request on ~/.chandler/
TYPE=OPTIONS
URL=http://mycaldav/caldav.php/user1/home/.chandler/
HEAD