Add a regression test for initial sync-report on a bound collection.

This commit is contained in:
Andrew McMillan 2010-09-12 11:55:56 +12:00
parent 8afb4676fa
commit c7b647a919
2 changed files with 105 additions and 0 deletions

View File

@ -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"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/caldav.php/user2/home/33169d69-2969-4a96-a3e1-2e312b7614e6.ics</href>
<status>HTTP/1.1 201 Created</status>
<propstat>
<prop>
<getetag>"f2c974ff51cb52cde0668544deb36380"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user2/home/047871e3-6b70-4178-9af8-0ceb50f7b092.ics</href>
<status>HTTP/1.1 201 Created</status>
<propstat>
<prop>
<getetag>"58cba7e3fafb6080e85619ea77d08c7a"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user2/home/9429a973-2b13-4b1a-be09-948d75425c45.ics</href>
<status>HTTP/1.1 201 Created</status>
<propstat>
<prop>
<getetag>"13249ced6c7527191a003f54f7e3cd25"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user2/home/7d729xc0-0895-012d-124e-002421a2359e.ics</href>
<status>HTTP/1.1 201 Created</status>
<propstat>
<prop>
<getetag>"848df16c32fc3ce319083ae84c2603a3"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user2/home/bd262d20-1cdb-012d-1264-002421a2359e.ics</href>
<status>HTTP/1.1 201 Created</status>
<propstat>
<prop>
<getetag>"671d4ee904be6c16dd1be076619fe7c0"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user2/home/thiswillworkfine.ics</href>
<status>HTTP/1.1 201 Created</status>
<propstat>
<prop>
<getetag>"9a8d7696ee2e0a0f1f4170fe4f094a3a"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>/caldav.php/user2/home/thiswillalsobegood.ics</href>
<status>HTTP/1.1 201 Created</status>
<propstat>
<prop>
<getetag>"1c7895f11787e71fd6dbe3260d72d4a0"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<sync-token>4</sync-token>
</multistatus>

View File

@ -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
<?xml version="1.0" encoding="utf-8" ?>
<D:sync-collection xmlns:D="DAV:">
<D:sync-token/>
<D:prop>
<D:getetag/>
</D:prop>
</D:sync-collection>
ENDDATA