Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / carddav / 2010-REPORT-sync-initial.test
blob411f819fe6279dedba583afe44cd27624df37e82
2 # Check for support of REPORT sync-collection with no sync-token
4 TYPE=REPORT
5 URL=http://regression.host/caldav.php/user1/addressbook/
6 HEADER=User-agent: sync-collection initial REPORT
7 HEADER=Content-type: text/xml
8 HEAD
10 BEGINDATA
11 <?xml version="1.0" encoding="utf-8" ?>
12 <D:sync-collection xmlns:D="DAV:">
13   <D:sync-token/>
14   <D:prop>
15     <D:getetag/>
16     <D:getcontenttype/>
17   </D:prop>
18 </D:sync-collection>
19 ENDDATA
21 REPLACE=/<get.tag>"[0-9a-f]{32}"<.get.tag>/<get?tag>"deadbeefcafef00ddeadbeefcafefeed"<.get?tag>/
22 REPLACE=/^ETag: "[0-9a-f]+"\s$/ETag: "a fine looking etag"/