From c339d5e98765e7d516a25654ed15d822b6059c7b Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 2 Nov 2009 23:39:55 +1300 Subject: [PATCH] Regression tests for the supported-* properties. --- .../916-PROPFIND-supported-stuff.result | 41 +++++++++++++ .../916-PROPFIND-supported-stuff.test | 24 ++++++++ .../917-PROPFIND-supported-stuff.result | 51 ++++++++++++++++ .../917-PROPFIND-supported-stuff.test | 24 ++++++++ .../918-PROPFIND-supported-stuff.result | 58 +++++++++++++++++++ .../918-PROPFIND-supported-stuff.test | 24 ++++++++ .../919-PROPFIND-supported-stuff.result | 49 ++++++++++++++++ .../919-PROPFIND-supported-stuff.test | 24 ++++++++ .../920-PROPFIND-supported-stuff.result | 49 ++++++++++++++++ .../920-PROPFIND-supported-stuff.test | 24 ++++++++ .../921-PROPFIND-supported-stuff.result | 7 +++ .../921-PROPFIND-supported-stuff.test | 26 +++++++++ .../922-PROPFIND-supported-stuff.result | 7 +++ .../922-PROPFIND-supported-stuff.test | 26 +++++++++ .../923-PROPFIND-supported-stuff.result | 7 +++ .../923-PROPFIND-supported-stuff.test | 26 +++++++++ 16 files changed, 467 insertions(+) create mode 100644 testing/tests/regression-suite/916-PROPFIND-supported-stuff.result create mode 100644 testing/tests/regression-suite/916-PROPFIND-supported-stuff.test create mode 100644 testing/tests/regression-suite/917-PROPFIND-supported-stuff.result create mode 100644 testing/tests/regression-suite/917-PROPFIND-supported-stuff.test create mode 100644 testing/tests/regression-suite/918-PROPFIND-supported-stuff.result create mode 100644 testing/tests/regression-suite/918-PROPFIND-supported-stuff.test create mode 100644 testing/tests/regression-suite/919-PROPFIND-supported-stuff.result create mode 100644 testing/tests/regression-suite/919-PROPFIND-supported-stuff.test create mode 100644 testing/tests/regression-suite/920-PROPFIND-supported-stuff.result create mode 100644 testing/tests/regression-suite/920-PROPFIND-supported-stuff.test create mode 100644 testing/tests/regression-suite/921-PROPFIND-supported-stuff.result create mode 100644 testing/tests/regression-suite/921-PROPFIND-supported-stuff.test create mode 100644 testing/tests/regression-suite/922-PROPFIND-supported-stuff.result create mode 100644 testing/tests/regression-suite/922-PROPFIND-supported-stuff.test create mode 100644 testing/tests/regression-suite/923-PROPFIND-supported-stuff.result create mode 100644 testing/tests/regression-suite/923-PROPFIND-supported-stuff.test diff --git a/testing/tests/regression-suite/916-PROPFIND-supported-stuff.result b/testing/tests/regression-suite/916-PROPFIND-supported-stuff.result new file mode 100644 index 00000000..59186113 --- /dev/null +++ b/testing/tests/regression-suite/916-PROPFIND-supported-stuff.result @@ -0,0 +1,41 @@ +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, extended-mkcol +ETag: "664e69097dfcef6d40d4deb9b15b462a" +Content-Length: 891 +Content-Type: text/xml; charset="utf-8" + + + + + /caldav.php/ + + + + + + DAViCal CalDAV Server + + + + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + HTTP/1.1 404 Not Found + + + diff --git a/testing/tests/regression-suite/916-PROPFIND-supported-stuff.test b/testing/tests/regression-suite/916-PROPFIND-supported-stuff.test new file mode 100644 index 00000000..6d403b16 --- /dev/null +++ b/testing/tests/regression-suite/916-PROPFIND-supported-stuff.test @@ -0,0 +1,24 @@ +# +# PROPFIND looking for supported-methods supported-reports etc +# +TYPE=PROPFIND +URL=http://regression.host/caldav.php/ +HEADER=Content-Type: text/xml; charset="UTF-8" +HEADER=Depth: 0 +HEAD + + +BEGINDATA + + + + + + + + + + +ENDDATA + + diff --git a/testing/tests/regression-suite/917-PROPFIND-supported-stuff.result b/testing/tests/regression-suite/917-PROPFIND-supported-stuff.result new file mode 100644 index 00000000..083588e7 --- /dev/null +++ b/testing/tests/regression-suite/917-PROPFIND-supported-stuff.result @@ -0,0 +1,51 @@ +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, extended-mkcol +ETag: "d0b4d2ea75d0b115c8b3c8bb0d5c6391" +Content-Length: 1247 +Content-Type: text/xml; charset="utf-8" + + + + + /caldav.php/user1/ + + + User 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + HTTP/1.1 200 OK + + + + + + HTTP/1.1 404 Not Found + + + diff --git a/testing/tests/regression-suite/917-PROPFIND-supported-stuff.test b/testing/tests/regression-suite/917-PROPFIND-supported-stuff.test new file mode 100644 index 00000000..bfd84789 --- /dev/null +++ b/testing/tests/regression-suite/917-PROPFIND-supported-stuff.test @@ -0,0 +1,24 @@ +# +# PROPFIND looking for supported-methods supported-reports etc +# +TYPE=PROPFIND +URL=http://regression.host/caldav.php/user1/ +HEADER=Content-Type: text/xml; charset="UTF-8" +HEADER=Depth: 0 +HEAD + + +BEGINDATA + + + + + + + + + + +ENDDATA + + diff --git a/testing/tests/regression-suite/918-PROPFIND-supported-stuff.result b/testing/tests/regression-suite/918-PROPFIND-supported-stuff.result new file mode 100644 index 00000000..b756ecc3 --- /dev/null +++ b/testing/tests/regression-suite/918-PROPFIND-supported-stuff.result @@ -0,0 +1,58 @@ +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, extended-mkcol +ETag: "7ab339431007ed0a57ad3bd440868790" +Content-Length: 1474 +Content-Type: text/xml; charset="utf-8" + + + + + /caldav.php/user1/home/ + + + + + + + + + + + + + + User One's Calendar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + HTTP/1.1 200 OK + + + diff --git a/testing/tests/regression-suite/918-PROPFIND-supported-stuff.test b/testing/tests/regression-suite/918-PROPFIND-supported-stuff.test new file mode 100644 index 00000000..a80a74b6 --- /dev/null +++ b/testing/tests/regression-suite/918-PROPFIND-supported-stuff.test @@ -0,0 +1,24 @@ +# +# PROPFIND looking for supported-methods supported-reports etc +# +TYPE=PROPFIND +URL=http://regression.host/caldav.php/user1/home/ +HEADER=Content-Type: text/xml; charset="UTF-8" +HEADER=Depth: 0 +HEAD + + +BEGINDATA + + + + + + + + + + +ENDDATA + + diff --git a/testing/tests/regression-suite/919-PROPFIND-supported-stuff.result b/testing/tests/regression-suite/919-PROPFIND-supported-stuff.result new file mode 100644 index 00000000..bf77b744 --- /dev/null +++ b/testing/tests/regression-suite/919-PROPFIND-supported-stuff.result @@ -0,0 +1,49 @@ +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, extended-mkcol +ETag: "8a5e441890faec00d4749e0e30ee1733" +Content-Length: 1259 +Content-Type: text/xml; charset="utf-8" + + + + + /caldav.php/user1/.in/ + + + + + + + + + + + + User 1 Inbox + + + + + + + + + + + + + + + + + + + + + + + HTTP/1.1 200 OK + + + diff --git a/testing/tests/regression-suite/919-PROPFIND-supported-stuff.test b/testing/tests/regression-suite/919-PROPFIND-supported-stuff.test new file mode 100644 index 00000000..8d365f60 --- /dev/null +++ b/testing/tests/regression-suite/919-PROPFIND-supported-stuff.test @@ -0,0 +1,24 @@ +# +# PROPFIND looking for supported-methods supported-reports etc +# +TYPE=PROPFIND +URL=http://regression.host/caldav.php/user1/.in/ +HEADER=Content-Type: text/xml; charset="UTF-8" +HEADER=Depth: 0 +HEAD + + +BEGINDATA + + + + + + + + + + +ENDDATA + + diff --git a/testing/tests/regression-suite/920-PROPFIND-supported-stuff.result b/testing/tests/regression-suite/920-PROPFIND-supported-stuff.result new file mode 100644 index 00000000..736637e4 --- /dev/null +++ b/testing/tests/regression-suite/920-PROPFIND-supported-stuff.result @@ -0,0 +1,49 @@ +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, extended-mkcol +ETag: "ad2a58b8693cf42c755a5533108f64ef" +Content-Length: 1262 +Content-Type: text/xml; charset="utf-8" + + + + + /caldav.php/user1/.out/ + + + + + + + + + + + + User 1 Outbox + + + + + + + + + + + + + + + + + + + + + + + HTTP/1.1 200 OK + + + diff --git a/testing/tests/regression-suite/920-PROPFIND-supported-stuff.test b/testing/tests/regression-suite/920-PROPFIND-supported-stuff.test new file mode 100644 index 00000000..2d017e49 --- /dev/null +++ b/testing/tests/regression-suite/920-PROPFIND-supported-stuff.test @@ -0,0 +1,24 @@ +# +# PROPFIND looking for supported-methods supported-reports etc +# +TYPE=PROPFIND +URL=http://regression.host/caldav.php/user1/.out/ +HEADER=Content-Type: text/xml; charset="UTF-8" +HEADER=Depth: 0 +HEAD + + +BEGINDATA + + + + + + + + + + +ENDDATA + + diff --git a/testing/tests/regression-suite/921-PROPFIND-supported-stuff.result b/testing/tests/regression-suite/921-PROPFIND-supported-stuff.result new file mode 100644 index 00000000..7a55400a --- /dev/null +++ b/testing/tests/regression-suite/921-PROPFIND-supported-stuff.result @@ -0,0 +1,7 @@ +HTTP/1.1 404 Not Found +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Content-Length: 44 +Content-Type: text/plain; charset="utf-8" + +That resource is not present on this server. \ No newline at end of file diff --git a/testing/tests/regression-suite/921-PROPFIND-supported-stuff.test b/testing/tests/regression-suite/921-PROPFIND-supported-stuff.test new file mode 100644 index 00000000..5641bc4c --- /dev/null +++ b/testing/tests/regression-suite/921-PROPFIND-supported-stuff.test @@ -0,0 +1,26 @@ +# +# PROPFIND looking for supported-methods supported-reports etc +# +# Non-existent principal +# +TYPE=PROPFIND +URL=http://regression.host/caldav.php/bogusprincipal/ +HEADER=Content-Type: text/xml; charset="UTF-8" +HEADER=Depth: 0 +HEAD + + +BEGINDATA + + + + + + + + + + +ENDDATA + + diff --git a/testing/tests/regression-suite/922-PROPFIND-supported-stuff.result b/testing/tests/regression-suite/922-PROPFIND-supported-stuff.result new file mode 100644 index 00000000..7a55400a --- /dev/null +++ b/testing/tests/regression-suite/922-PROPFIND-supported-stuff.result @@ -0,0 +1,7 @@ +HTTP/1.1 404 Not Found +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Content-Length: 44 +Content-Type: text/plain; charset="utf-8" + +That resource is not present on this server. \ No newline at end of file diff --git a/testing/tests/regression-suite/922-PROPFIND-supported-stuff.test b/testing/tests/regression-suite/922-PROPFIND-supported-stuff.test new file mode 100644 index 00000000..8a9c8f60 --- /dev/null +++ b/testing/tests/regression-suite/922-PROPFIND-supported-stuff.test @@ -0,0 +1,26 @@ +# +# PROPFIND looking for supported-methods supported-reports etc +# +# Bogus collection name +# +TYPE=PROPFIND +URL=http://regression.host/caldav.php/user1/boguscollection/ +HEADER=Content-Type: text/xml; charset="UTF-8" +HEADER=Depth: 0 +HEAD + + +BEGINDATA + + + + + + + + + + +ENDDATA + + diff --git a/testing/tests/regression-suite/923-PROPFIND-supported-stuff.result b/testing/tests/regression-suite/923-PROPFIND-supported-stuff.result new file mode 100644 index 00000000..7a55400a --- /dev/null +++ b/testing/tests/regression-suite/923-PROPFIND-supported-stuff.result @@ -0,0 +1,7 @@ +HTTP/1.1 404 Not Found +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Content-Length: 44 +Content-Type: text/plain; charset="utf-8" + +That resource is not present on this server. \ No newline at end of file diff --git a/testing/tests/regression-suite/923-PROPFIND-supported-stuff.test b/testing/tests/regression-suite/923-PROPFIND-supported-stuff.test new file mode 100644 index 00000000..d347b5a9 --- /dev/null +++ b/testing/tests/regression-suite/923-PROPFIND-supported-stuff.test @@ -0,0 +1,26 @@ +# +# PROPFIND looking for supported-methods supported-reports etc +# +# Bogus resource in collection +# +TYPE=PROPFIND +URL=http://regression.host/caldav.php/user1/home/bogusnonexistentresource.ics +HEADER=Content-Type: text/xml; charset="UTF-8" +HEADER=Depth: 0 +HEAD + + +BEGINDATA + + + + + + + + + + +ENDDATA + +