davical/testing/tests/carddav/2039-REPORT-sync-changed.test
2013-07-15 13:11:08 +12:00

22 lines
556 B
Plaintext

#
# We should see an updated sync token here.
#
TYPE=REPORT
URL=http://regression.host/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"/