From c67bfeb7ad17ef4f60d5ef1a0e3935ed4bf2123e Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 8 Nov 2009 20:29:56 +1300 Subject: [PATCH] Some regression testing for MOVE action. --- .../tests/regression-suite/924-MOVE.result | 16 ++++++++++++++ testing/tests/regression-suite/924-MOVE.test | 19 +++++++++++++++++ .../tests/regression-suite/925-MOVE.result | 16 ++++++++++++++ testing/tests/regression-suite/925-MOVE.test | 19 +++++++++++++++++ .../tests/regression-suite/926-MOVE.result | 16 ++++++++++++++ testing/tests/regression-suite/926-MOVE.test | 21 +++++++++++++++++++ .../tests/regression-suite/927-MOVE.result | 16 ++++++++++++++ testing/tests/regression-suite/927-MOVE.test | 21 +++++++++++++++++++ .../tests/regression-suite/928-MOVE.result | 13 ++++++++++++ testing/tests/regression-suite/928-MOVE.test | 18 ++++++++++++++++ .../tests/regression-suite/929-MOVE.result | 13 ++++++++++++ testing/tests/regression-suite/929-MOVE.test | 18 ++++++++++++++++ 12 files changed, 206 insertions(+) create mode 100644 testing/tests/regression-suite/924-MOVE.result create mode 100644 testing/tests/regression-suite/924-MOVE.test create mode 100644 testing/tests/regression-suite/925-MOVE.result create mode 100644 testing/tests/regression-suite/925-MOVE.test create mode 100644 testing/tests/regression-suite/926-MOVE.result create mode 100644 testing/tests/regression-suite/926-MOVE.test create mode 100644 testing/tests/regression-suite/927-MOVE.result create mode 100644 testing/tests/regression-suite/927-MOVE.test create mode 100644 testing/tests/regression-suite/928-MOVE.result create mode 100644 testing/tests/regression-suite/928-MOVE.test create mode 100644 testing/tests/regression-suite/929-MOVE.result create mode 100644 testing/tests/regression-suite/929-MOVE.test diff --git a/testing/tests/regression-suite/924-MOVE.result b/testing/tests/regression-suite/924-MOVE.result new file mode 100644 index 00000000..9b7fb645 --- /dev/null +++ b/testing/tests/regression-suite/924-MOVE.result @@ -0,0 +1,16 @@ +HTTP/1.1 200 OK +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, PUT +Content-Length: 0 +Content-Type: text/plain; charset="utf-8" + + + cd_collection: >2695< + cd_user_no: >10< + ci_collection: >2695< + ci_user_no: >10< + data_name: >/user1/entire/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics< + item_name: >/user1/entire/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics< + modified: >2009-11-08 20:28:50.893924+13< + diff --git a/testing/tests/regression-suite/924-MOVE.test b/testing/tests/regression-suite/924-MOVE.test new file mode 100644 index 00000000..33c49644 --- /dev/null +++ b/testing/tests/regression-suite/924-MOVE.test @@ -0,0 +1,19 @@ +# +# MOVE an event from one location to another +# +TYPE=MOVE +URL=http://regression.host/caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics +HEADER=User-Agent: RFC4918 Spec Tests +HEADER=Destination: http://regression.host/caldav.php/user1/entire/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics +HEAD + +QUERY +SELECT caldav_data.dav_name AS data_name, calendar_item.dav_name AS item_name, modified, + caldav_data.user_no AS cd_user_no, + calendar_item.user_no AS ci_user_no, + caldav_data.collection_id AS cd_collection, + calendar_item.collection_id AS ci_collection +FROM caldav_data JOIN calendar_item USING(dav_id) +WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics'; +ENDQUERY + diff --git a/testing/tests/regression-suite/925-MOVE.result b/testing/tests/regression-suite/925-MOVE.result new file mode 100644 index 00000000..9b9b6fa5 --- /dev/null +++ b/testing/tests/regression-suite/925-MOVE.result @@ -0,0 +1,16 @@ +HTTP/1.1 200 OK +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, PUT +Content-Length: 0 +Content-Type: text/plain; charset="utf-8" + + + cd_collection: >10< + cd_user_no: >10< + ci_collection: >10< + ci_user_no: >10< + data_name: >/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics< + item_name: >/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics< + modified: >2009-11-08 20:28:50.893924+13< + diff --git a/testing/tests/regression-suite/925-MOVE.test b/testing/tests/regression-suite/925-MOVE.test new file mode 100644 index 00000000..19a2d813 --- /dev/null +++ b/testing/tests/regression-suite/925-MOVE.test @@ -0,0 +1,19 @@ +# +# MOVE an event from one location to another +# +TYPE=MOVE +URL=http://regression.host/caldav.php/user1/entire/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics +HEADER=User-Agent: RFC4918 Spec Tests +HEADER=Destination: /caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics +HEAD + +QUERY +SELECT caldav_data.dav_name AS data_name, calendar_item.dav_name AS item_name, modified, + caldav_data.user_no AS cd_user_no, + calendar_item.user_no AS ci_user_no, + caldav_data.collection_id AS cd_collection, + calendar_item.collection_id AS ci_collection +FROM caldav_data JOIN calendar_item USING(dav_id) +WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics'; +ENDQUERY + diff --git a/testing/tests/regression-suite/926-MOVE.result b/testing/tests/regression-suite/926-MOVE.result new file mode 100644 index 00000000..504da9b5 --- /dev/null +++ b/testing/tests/regression-suite/926-MOVE.result @@ -0,0 +1,16 @@ +HTTP/1.1 200 OK +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, PUT +Content-Length: 0 +Content-Type: text/plain; charset="utf-8" + + + cd_collection: >100< + cd_user_no: >100< + ci_collection: >100< + ci_user_no: >100< + data_name: >/resource1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics< + item_name: >/resource1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics< + modified: >2009-11-08 20:28:50.893924+13< + diff --git a/testing/tests/regression-suite/926-MOVE.test b/testing/tests/regression-suite/926-MOVE.test new file mode 100644 index 00000000..075d2a69 --- /dev/null +++ b/testing/tests/regression-suite/926-MOVE.test @@ -0,0 +1,21 @@ +# +# MOVE an event from one location to another +# +TYPE=MOVE +URL=http://regression.host/caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics +HEADER=User-Agent: RFC4918 Spec Tests +HEADER=Destination: /caldav.php/resource1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics +HEAD + +QUERY +SELECT caldav_data.dav_name AS data_name, + calendar_item.dav_name AS item_name, + modified, + caldav_data.user_no AS cd_user_no, + calendar_item.user_no AS ci_user_no, + caldav_data.collection_id AS cd_collection, + calendar_item.collection_id AS ci_collection +FROM caldav_data JOIN calendar_item USING(dav_id) +WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics'; +ENDQUERY + diff --git a/testing/tests/regression-suite/927-MOVE.result b/testing/tests/regression-suite/927-MOVE.result new file mode 100644 index 00000000..9b9b6fa5 --- /dev/null +++ b/testing/tests/regression-suite/927-MOVE.result @@ -0,0 +1,16 @@ +HTTP/1.1 200 OK +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, HEAD, PUT +Content-Length: 0 +Content-Type: text/plain; charset="utf-8" + + + cd_collection: >10< + cd_user_no: >10< + ci_collection: >10< + ci_user_no: >10< + data_name: >/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics< + item_name: >/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics< + modified: >2009-11-08 20:28:50.893924+13< + diff --git a/testing/tests/regression-suite/927-MOVE.test b/testing/tests/regression-suite/927-MOVE.test new file mode 100644 index 00000000..b40d436e --- /dev/null +++ b/testing/tests/regression-suite/927-MOVE.test @@ -0,0 +1,21 @@ +# +# MOVE an event from one location to another +# +TYPE=MOVE +URL=http://regression.host/caldav.php/resource1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics +HEADER=User-Agent: RFC4918 Spec Tests +HEADER=Destination: /caldav.php/user1/home/DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics +HEAD + +QUERY +SELECT caldav_data.dav_name AS data_name, + calendar_item.dav_name AS item_name, + modified, + caldav_data.user_no AS cd_user_no, + calendar_item.user_no AS ci_user_no, + caldav_data.collection_id AS cd_collection, + calendar_item.collection_id AS ci_collection +FROM caldav_data JOIN calendar_item USING(dav_id) +WHERE caldav_data.dav_name ~ 'DAYPARTY-77C6-4FB7-BDD3-6882E2F1BE74.ics'; +ENDQUERY + diff --git a/testing/tests/regression-suite/928-MOVE.result b/testing/tests/regression-suite/928-MOVE.result new file mode 100644 index 00000000..2818037b --- /dev/null +++ b/testing/tests/regression-suite/928-MOVE.result @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, PUT, HEAD +Content-Length: 0 +Content-Type: text/plain; charset="utf-8" + + + dav_etag: >3cd2d347bfe806857ef14bce9eafd599< + dav_name: >/user1/movedcalendar/< + modified: >2009-11-08 20:29:06.230085+13< + user_no: >10< + diff --git a/testing/tests/regression-suite/928-MOVE.test b/testing/tests/regression-suite/928-MOVE.test new file mode 100644 index 00000000..dd053ddd --- /dev/null +++ b/testing/tests/regression-suite/928-MOVE.test @@ -0,0 +1,18 @@ +# +# MOVE an event from one location to another +# +TYPE=MOVE +URL=http://regression.host/caldav.php/user1/entire/ +HEADER=User-Agent: RFC4918 Spec Tests +HEADER=Destination: /caldav.php/user1/movedcalendar/ +HEAD + +QUERY +SELECT dav_name, + user_no, + modified, + dav_etag +FROM collection +WHERE collection.dav_name ~ '(entire|movedcalendar)'; +ENDQUERY + diff --git a/testing/tests/regression-suite/929-MOVE.result b/testing/tests/regression-suite/929-MOVE.result new file mode 100644 index 00000000..83cf2829 --- /dev/null +++ b/testing/tests/regression-suite/929-MOVE.result @@ -0,0 +1,13 @@ +HTTP/1.1 200 OK +Date: Dow, 01 Jan 2000 00:00:00 GMT +DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol +Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, GET, PUT, HEAD +Content-Length: 0 +Content-Type: text/plain; charset="utf-8" + + + dav_etag: >3cd2d347bfe806857ef14bce9eafd599< + dav_name: >/user1/entire/< + modified: >2009-11-08 20:29:06.230085+13< + user_no: >10< + diff --git a/testing/tests/regression-suite/929-MOVE.test b/testing/tests/regression-suite/929-MOVE.test new file mode 100644 index 00000000..0e1ad8f7 --- /dev/null +++ b/testing/tests/regression-suite/929-MOVE.test @@ -0,0 +1,18 @@ +# +# MOVE an event from one location to another +# +TYPE=MOVE +URL=http://regression.host/caldav.php/user1/movedcalendar/ +HEADER=User-Agent: RFC4918 Spec Tests +HEADER=Destination: /caldav.php/user1/entire/ +HEAD + +QUERY +SELECT dav_name, + user_no, + modified, + dav_etag +FROM collection +WHERE collection.dav_name ~ '(entire|movedcalendar)'; +ENDQUERY +