From 15ab1df29147daf0df17f722d76c2e0295cce9f0 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 6 Dec 2006 21:54:12 +1300 Subject: [PATCH] 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... --- .../305-Chandler-MKCOL-1.result | 6 ++++++ .../regression-suite/305-Chandler-MKCOL-1.test | 17 +++++++++++++++++ .../306-Chandler-DELETE-1.result | 6 ++++++ .../306-Chandler-DELETE-1.test | 18 ++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 testing/tests/regression-suite/305-Chandler-MKCOL-1.result create mode 100644 testing/tests/regression-suite/305-Chandler-MKCOL-1.test create mode 100644 testing/tests/regression-suite/306-Chandler-DELETE-1.result create mode 100644 testing/tests/regression-suite/306-Chandler-DELETE-1.test diff --git a/testing/tests/regression-suite/305-Chandler-MKCOL-1.result b/testing/tests/regression-suite/305-Chandler-MKCOL-1.result new file mode 100644 index 00000000..20fb54fb --- /dev/null +++ b/testing/tests/regression-suite/305-Chandler-MKCOL-1.result @@ -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 diff --git a/testing/tests/regression-suite/305-Chandler-MKCOL-1.test b/testing/tests/regression-suite/305-Chandler-MKCOL-1.test new file mode 100644 index 00000000..6769c326 --- /dev/null +++ b/testing/tests/regression-suite/305-Chandler-MKCOL-1.test @@ -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 diff --git a/testing/tests/regression-suite/306-Chandler-DELETE-1.result b/testing/tests/regression-suite/306-Chandler-DELETE-1.result new file mode 100644 index 00000000..39d9fa7a --- /dev/null +++ b/testing/tests/regression-suite/306-Chandler-DELETE-1.result @@ -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 diff --git a/testing/tests/regression-suite/306-Chandler-DELETE-1.test b/testing/tests/regression-suite/306-Chandler-DELETE-1.test new file mode 100644 index 00000000..df26eb15 --- /dev/null +++ b/testing/tests/regression-suite/306-Chandler-DELETE-1.test @@ -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 +