From a66c414a943a3f9f7de809c5a08c40d03d1a6bca Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 18 Nov 2008 18:21:27 +1300 Subject: [PATCH] Tests for PROPFIND with getctag and resourcetype, Depth:0 & 1 --- .../regression-suite/871-PROPFIND.result | 25 +++++++ .../tests/regression-suite/871-PROPFIND.test | 24 ++++++ .../regression-suite/872-PROPFIND.result | 74 +++++++++++++++++++ .../tests/regression-suite/872-PROPFIND.test | 24 ++++++ 4 files changed, 147 insertions(+) create mode 100644 testing/tests/regression-suite/871-PROPFIND.result create mode 100644 testing/tests/regression-suite/871-PROPFIND.test create mode 100644 testing/tests/regression-suite/872-PROPFIND.result create mode 100644 testing/tests/regression-suite/872-PROPFIND.test diff --git a/testing/tests/regression-suite/871-PROPFIND.result b/testing/tests/regression-suite/871-PROPFIND.result new file mode 100644 index 00000000..473bbc8d --- /dev/null +++ b/testing/tests/regression-suite/871-PROPFIND.result @@ -0,0 +1,25 @@ +HTTP/1.1 207 Multi-Status +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule +ETag: "8fb72952c8759377c5f56633e6088a9f" +Content-Length: 513 +Content-Type: text/xml; charset="utf-8" + + + + + /caldav.php/user2/home/ + + + + + + + + home + "13249ced6c7527191a003f54f7e3cd25" + + HTTP/1.1 200 OK + + + diff --git a/testing/tests/regression-suite/871-PROPFIND.test b/testing/tests/regression-suite/871-PROPFIND.test new file mode 100644 index 00000000..260c6001 --- /dev/null +++ b/testing/tests/regression-suite/871-PROPFIND.test @@ -0,0 +1,24 @@ +# +# Testing for Spec compliance. PROPFIND on a calendar, +# Depth: 0, looking for the getctag, resourcetype and displayname +# +TYPE=PROPFIND +AUTH=user2:user2 +URL=http://mycaldav/caldav.php/user2/home/ +HEADER=User-Agent: RFC2518 Spec Tests +HEADER=Depth: 0 +HEADER=Content-Type: application/xml +HEAD + +REPLACE=#\d{8}T\d{6}#YYYYMMDDThhmmss# + +BEGINDATA + + + + + + + + +ENDDATA diff --git a/testing/tests/regression-suite/872-PROPFIND.result b/testing/tests/regression-suite/872-PROPFIND.result new file mode 100644 index 00000000..ee92eff8 --- /dev/null +++ b/testing/tests/regression-suite/872-PROPFIND.result @@ -0,0 +1,74 @@ +HTTP/1.1 207 Multi-Status +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule +ETag: "d412a2bd255c9756b0e5ff7d9aa6e28d" +Content-Length: 1670 +Content-Type: text/xml; charset="utf-8" + + + + + /caldav.php/user2/home/ + + + "13249ced6c7527191a003f54f7e3cd25" + "13249ced6c7527191a003f54f7e3cd25" + + HTTP/1.1 200 OK + + + + + + HTTP/1.1 404 Not Found + + + + /caldav.php/user2/home/33169d69-2969-4a96-a3e1-2e312b7614e6.ics + + + "64d28f4f57515d6c63cec02b5d882eaa" + + HTTP/1.1 200 OK + + + + + + + HTTP/1.1 404 Not Found + + + + /caldav.php/user2/home/047871e3-6b70-4178-9af8-0ceb50f7b092.ics + + + "58cba7e3fafb6080e85619ea77d08c7a" + + HTTP/1.1 200 OK + + + + + + + HTTP/1.1 404 Not Found + + + + /caldav.php/user2/home/9429a973-2b13-4b1a-be09-948d75425c45.ics + + + "13249ced6c7527191a003f54f7e3cd25" + + HTTP/1.1 200 OK + + + + + + + HTTP/1.1 404 Not Found + + + diff --git a/testing/tests/regression-suite/872-PROPFIND.test b/testing/tests/regression-suite/872-PROPFIND.test new file mode 100644 index 00000000..d1c1b121 --- /dev/null +++ b/testing/tests/regression-suite/872-PROPFIND.test @@ -0,0 +1,24 @@ +# +# Testing for Spec compliance. PROPFIND on a calendar, +# Depth: 1, looking for the getctag & getetag +# +TYPE=PROPFIND +AUTH=user2:user2 +URL=http://mycaldav/caldav.php/user2/home/ +HEADER=User-Agent: RFC2518 Spec Tests +HEADER=Depth: 1 +HEADER=Content-Type: application/xml +HEAD + +REPLACE=#\d{8}T\d{6}#YYYYMMDDThhmmss# + +BEGINDATA + + + + + + + + +ENDDATA