davical/testing/tests/carddav/2039-REPORT-sync-changed.test
Andrew McMillan 7c15051f84 Further fixes to WebDAV synchronization.
This should be fully reliable now and also cleans out all sync
changes more than one week old.  update-database is needed to pull
the new function.
2012-04-17 15:44:09 +12:00

22 lines
549 B
Plaintext

#
# We should see an updated sync token here.
#
TYPE=REPORT
URL=http://mycaldav/caldav.php/user1/addressbook/
HEADER=User-agent: sync-collection changes REPORT
HEADER=Content-type: text/xml
HEAD
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<D:sync-collection xmlns:D="DAV:">
<D:sync-token>data:,41</D:sync-token>
<D:prop>
<D:getetag/>
</D:prop>
</D:sync-collection>
ENDDATA
REPLACE=/<get.tag>"[0-9a-f]{32}"<.get.tag>/<get?tag>"deadbeefcafef00ddeadbeefcafefeed"<.get?tag>/
REPLACE=/^ETag: "[0-9a-f]+"\s$/ETag: "a fine looking etag"/