From c7b647a9199f54b6bdeefdab4b2b9829fe66b7e1 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 12 Sep 2010 11:55:56 +1200 Subject: [PATCH] Add a regression test for initial sync-report on a bound collection. --- .../1036-REPORT-sync-initial-bound.result | 82 +++++++++++++++++++ .../1036-REPORT-sync-initial-bound.test | 23 ++++++ 2 files changed, 105 insertions(+) create mode 100644 testing/tests/binding/1036-REPORT-sync-initial-bound.result create mode 100644 testing/tests/binding/1036-REPORT-sync-initial-bound.test diff --git a/testing/tests/binding/1036-REPORT-sync-initial-bound.result b/testing/tests/binding/1036-REPORT-sync-initial-bound.result new file mode 100644 index 00000000..da0d3840 --- /dev/null +++ b/testing/tests/binding/1036-REPORT-sync-initial-bound.result @@ -0,0 +1,82 @@ +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 +DAV: extended-mkcol, calendar-proxy, bind, addressbook, calendar-auto-schedule +ETag: "d5d6109be0ad320adf342d0ffad84fb6" +Content-Length: 2074 +Content-Type: text/xml; charset="utf-8" + + + + + /caldav.php/user2/home/33169d69-2969-4a96-a3e1-2e312b7614e6.ics + HTTP/1.1 201 Created + + + "f2c974ff51cb52cde0668544deb36380" + + HTTP/1.1 200 OK + + + + /caldav.php/user2/home/047871e3-6b70-4178-9af8-0ceb50f7b092.ics + HTTP/1.1 201 Created + + + "58cba7e3fafb6080e85619ea77d08c7a" + + HTTP/1.1 200 OK + + + + /caldav.php/user2/home/9429a973-2b13-4b1a-be09-948d75425c45.ics + HTTP/1.1 201 Created + + + "13249ced6c7527191a003f54f7e3cd25" + + HTTP/1.1 200 OK + + + + /caldav.php/user2/home/7d729xc0-0895-012d-124e-002421a2359e.ics + HTTP/1.1 201 Created + + + "848df16c32fc3ce319083ae84c2603a3" + + HTTP/1.1 200 OK + + + + /caldav.php/user2/home/bd262d20-1cdb-012d-1264-002421a2359e.ics + HTTP/1.1 201 Created + + + "671d4ee904be6c16dd1be076619fe7c0" + + HTTP/1.1 200 OK + + + + /caldav.php/user2/home/thiswillworkfine.ics + HTTP/1.1 201 Created + + + "9a8d7696ee2e0a0f1f4170fe4f094a3a" + + HTTP/1.1 200 OK + + + + /caldav.php/user2/home/thiswillalsobegood.ics + HTTP/1.1 201 Created + + + "1c7895f11787e71fd6dbe3260d72d4a0" + + HTTP/1.1 200 OK + + + 4 + diff --git a/testing/tests/binding/1036-REPORT-sync-initial-bound.test b/testing/tests/binding/1036-REPORT-sync-initial-bound.test new file mode 100644 index 00000000..07065618 --- /dev/null +++ b/testing/tests/binding/1036-REPORT-sync-initial-bound.test @@ -0,0 +1,23 @@ +# +# Check for support of REPORT sync-collection with no sync-token +# on a bound resource +# +TYPE=REPORT +URL=http://mycaldav/caldav.php/user4/user2/ +HEADER=User-agent: sync-collection initial REPORT +HEADER=Content-type: text/xml +HEAD + +AUTH=user4:user4 + + +BEGINDATA + + + + + + + +ENDDATA +