Merge branch 'master' of github.com:DAViCal/davical into github
[davical.git] / testing / tests / regression-suite / 0821-Spec-PROPFIND-2.test
blob77aaf9545e53b024573ae76b91890d602c3feae5
2 # A Spec compliant check for all DAV properties, and an extra
3 # couple of bogus ones as well to ensure we fail(!)
5 TYPE=PROPFIND
6 URL=http://regression.host/caldav.php/user1/home/
7 HEADER=User-Agent: RFC2518 Spec Tests
8 HEADER=Depth: 0
9 HEADER=Content-Type: application/xml
11 HEAD
13 REPLACE=#<creationdate>2\d{3}-\d\d-\d\dT\d\d:\d\d:\d\d[+-]\d\d:\d\d</creationdate>#<creationdate>YYYY-MM-DDThh:mm:ss+ZZ:ZZ</creationdate>#
15 BEGINDATA
16 <?xml version="1.0" encoding="utf-8"?>
17 <propfind xmlns="DAV:">
18  <prop>
19   <creationdate/>
20   <displayname/>
21   <getcontentlanguage/>
22   <getcontentlength/>
23   <getcontenttype/>
24   <getetag/>
25   <getlastmodified/>
26   <lockdiscovery/>
27   <resourcetype/>
28   <source/>
29   <supportedlock/>
30   <checked-in/>
31   <checked-out/>
32   <bogus-property/>
33   <contentbogosity/>
34  </prop>
35 </propfind>
36 ENDDATA
38 REPLACE=/ETag: "[0-9a-f]{32}"/ETag: "deadbeefcafefeeddeadbeefcafefeed"/
39 # REPLACE=/<get.tag>"[0-9a-f]{32}"<.get.tag>/<get?tag>"deadbeefcafef00ddeadbeefcafefeed"<.get?tag>/