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

24 lines
580 B
Plaintext

#
# Check for support of REPORT sync-collection with no sync-token
#
TYPE=REPORT
URL=http://regression.host/caldav.php/user1/addressbook/
HEADER=User-agent: sync-collection initial REPORT
HEADER=Content-type: text/xml
HEAD
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<D:sync-collection xmlns:D="DAV:">
<D:sync-token/>
<D:prop>
<D:getetag/>
<D:getcontenttype/>
</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"/