From ae97640aef1fca6a61f4f0425bd0fa6adc3d2af6 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 11 Nov 2006 11:31:54 +1300 Subject: [PATCH] Now working to a large degree with Chandler, so here are some regression tests that indicate it. --- .../300-Chandler-OPTIONS-1.result | 8 +++++ .../300-Chandler-OPTIONS-1.test | 7 ++++ .../301-Chandler-HEAD-1.result | 6 ++++ .../regression-suite/301-Chandler-HEAD-1.test | 7 ++++ .../302-Chandler-OPTIONS-2.result | 8 +++++ .../302-Chandler-OPTIONS-2.test | 6 ++++ .../303-Chandler-PROPFIND-1.data | 2 ++ .../303-Chandler-PROPFIND-1.result | 24 ++++++++++++++ .../303-Chandler-PROPFIND-1.test | 8 +++++ .../304-Chandler-PROPFIND-2.data | 2 ++ .../304-Chandler-PROPFIND-2.result | 32 +++++++++++++++++++ .../304-Chandler-PROPFIND-2.test | 8 +++++ .../regression-suite/304-Chandler-TEST-1.data | 1 + .../305-Chandler-OPTIONS-3.result | 8 +++++ .../305-Chandler-OPTIONS-3.test | 6 ++++ 15 files changed, 133 insertions(+) create mode 100644 testing/tests/regression-suite/300-Chandler-OPTIONS-1.result create mode 100644 testing/tests/regression-suite/300-Chandler-OPTIONS-1.test create mode 100644 testing/tests/regression-suite/301-Chandler-HEAD-1.result create mode 100644 testing/tests/regression-suite/301-Chandler-HEAD-1.test create mode 100644 testing/tests/regression-suite/302-Chandler-OPTIONS-2.result create mode 100644 testing/tests/regression-suite/302-Chandler-OPTIONS-2.test create mode 100644 testing/tests/regression-suite/303-Chandler-PROPFIND-1.data create mode 100644 testing/tests/regression-suite/303-Chandler-PROPFIND-1.result create mode 100644 testing/tests/regression-suite/303-Chandler-PROPFIND-1.test create mode 100644 testing/tests/regression-suite/304-Chandler-PROPFIND-2.data create mode 100644 testing/tests/regression-suite/304-Chandler-PROPFIND-2.result create mode 100644 testing/tests/regression-suite/304-Chandler-PROPFIND-2.test create mode 100644 testing/tests/regression-suite/304-Chandler-TEST-1.data create mode 100644 testing/tests/regression-suite/305-Chandler-OPTIONS-3.result create mode 100644 testing/tests/regression-suite/305-Chandler-OPTIONS-3.test diff --git a/testing/tests/regression-suite/300-Chandler-OPTIONS-1.result b/testing/tests/regression-suite/300-Chandler-OPTIONS-1.result new file mode 100644 index 00000000..5a1ebc93 --- /dev/null +++ b/testing/tests/regression-suite/300-Chandler-OPTIONS-1.result @@ -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. \ No newline at end of file diff --git a/testing/tests/regression-suite/300-Chandler-OPTIONS-1.test b/testing/tests/regression-suite/300-Chandler-OPTIONS-1.test new file mode 100644 index 00000000..b6458276 --- /dev/null +++ b/testing/tests/regression-suite/300-Chandler-OPTIONS-1.test @@ -0,0 +1,7 @@ +# +# Do an initial OPTIONS request (unauthenticated) +TYPE=OPTIONS +URL=http://mycaldav/caldav.php/user1/home/ +NOAUTH + +HEAD diff --git a/testing/tests/regression-suite/301-Chandler-HEAD-1.result b/testing/tests/regression-suite/301-Chandler-HEAD-1.result new file mode 100644 index 00000000..16e57ff6 --- /dev/null +++ b/testing/tests/regression-suite/301-Chandler-HEAD-1.result @@ -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 + diff --git a/testing/tests/regression-suite/301-Chandler-HEAD-1.test b/testing/tests/regression-suite/301-Chandler-HEAD-1.test new file mode 100644 index 00000000..c8279a49 --- /dev/null +++ b/testing/tests/regression-suite/301-Chandler-HEAD-1.test @@ -0,0 +1,7 @@ +# +# Do an initial HEAD request (unauthenticated) +TYPE=HEAD +URL=http://mycaldav/caldav.php/user1/home/ +NOAUTH + +HEAD diff --git a/testing/tests/regression-suite/302-Chandler-OPTIONS-2.result b/testing/tests/regression-suite/302-Chandler-OPTIONS-2.result new file mode 100644 index 00000000..71204932 --- /dev/null +++ b/testing/tests/regression-suite/302-Chandler-OPTIONS-2.result @@ -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 + diff --git a/testing/tests/regression-suite/302-Chandler-OPTIONS-2.test b/testing/tests/regression-suite/302-Chandler-OPTIONS-2.test new file mode 100644 index 00000000..0840e93f --- /dev/null +++ b/testing/tests/regression-suite/302-Chandler-OPTIONS-2.test @@ -0,0 +1,6 @@ +# +# Do an initial OPTIONS request (authenticated) +TYPE=OPTIONS +URL=http://mycaldav/caldav.php/user1/home/ + +HEAD diff --git a/testing/tests/regression-suite/303-Chandler-PROPFIND-1.data b/testing/tests/regression-suite/303-Chandler-PROPFIND-1.data new file mode 100644 index 00000000..a86bedc8 --- /dev/null +++ b/testing/tests/regression-suite/303-Chandler-PROPFIND-1.data @@ -0,0 +1,2 @@ + + diff --git a/testing/tests/regression-suite/303-Chandler-PROPFIND-1.result b/testing/tests/regression-suite/303-Chandler-PROPFIND-1.result new file mode 100644 index 00000000..71375ded --- /dev/null +++ b/testing/tests/regression-suite/303-Chandler-PROPFIND-1.result @@ -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 + + + + + /caldav.php/user1/home/ + + + + + + + User1 home + "faf25336de0e470a54075c14cbcf5272" + + HTTP/1.1 200 OK + + + diff --git a/testing/tests/regression-suite/303-Chandler-PROPFIND-1.test b/testing/tests/regression-suite/303-Chandler-PROPFIND-1.test new file mode 100644 index 00000000..6bef4981 --- /dev/null +++ b/testing/tests/regression-suite/303-Chandler-PROPFIND-1.test @@ -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 diff --git a/testing/tests/regression-suite/304-Chandler-PROPFIND-2.data b/testing/tests/regression-suite/304-Chandler-PROPFIND-2.data new file mode 100644 index 00000000..0c0302aa --- /dev/null +++ b/testing/tests/regression-suite/304-Chandler-PROPFIND-2.data @@ -0,0 +1,2 @@ + + diff --git a/testing/tests/regression-suite/304-Chandler-PROPFIND-2.result b/testing/tests/regression-suite/304-Chandler-PROPFIND-2.result new file mode 100644 index 00000000..6b56f132 --- /dev/null +++ b/testing/tests/regression-suite/304-Chandler-PROPFIND-2.result @@ -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 + + + + + /caldav.php/user1/home/ + + + + + + + User1 home + "faf25336de0e470a54075c14cbcf5272" + + + + + + + + + + HTTP/1.1 200 OK + + + diff --git a/testing/tests/regression-suite/304-Chandler-PROPFIND-2.test b/testing/tests/regression-suite/304-Chandler-PROPFIND-2.test new file mode 100644 index 00000000..239b4fa6 --- /dev/null +++ b/testing/tests/regression-suite/304-Chandler-PROPFIND-2.test @@ -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 diff --git a/testing/tests/regression-suite/304-Chandler-TEST-1.data b/testing/tests/regression-suite/304-Chandler-TEST-1.data new file mode 100644 index 00000000..60c72dc1 --- /dev/null +++ b/testing/tests/regression-suite/304-Chandler-TEST-1.data @@ -0,0 +1 @@ +Write access test \ No newline at end of file diff --git a/testing/tests/regression-suite/305-Chandler-OPTIONS-3.result b/testing/tests/regression-suite/305-Chandler-OPTIONS-3.result new file mode 100644 index 00000000..71204932 --- /dev/null +++ b/testing/tests/regression-suite/305-Chandler-OPTIONS-3.result @@ -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 + diff --git a/testing/tests/regression-suite/305-Chandler-OPTIONS-3.test b/testing/tests/regression-suite/305-Chandler-OPTIONS-3.test new file mode 100644 index 00000000..208d66b7 --- /dev/null +++ b/testing/tests/regression-suite/305-Chandler-OPTIONS-3.test @@ -0,0 +1,6 @@ +# +# Now do an OPTIONS request on ~/.chandler/ +TYPE=OPTIONS +URL=http://mycaldav/caldav.php/user1/home/.chandler/ + +HEAD