davical/testing/tests/regression-suite/0821-Spec-PROPFIND-2.test
2010-04-29 11:21:05 +12:00

40 lines
973 B
Plaintext

#
# A Spec compliant check for all DAV properties, and an extra
# couple of bogus ones as well to ensure we fail(!)
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/user1/home/
HEADER=User-Agent: RFC2518 Spec Tests
HEADER=Depth: 0
HEADER=Content-Type: application/xml
HEAD
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>#
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<propfind xmlns="DAV:">
<prop>
<creationdate/>
<displayname/>
<getcontentlanguage/>
<getcontentlength/>
<getcontenttype/>
<getetag/>
<getlastmodified/>
<lockdiscovery/>
<resourcetype/>
<source/>
<supportedlock/>
<checked-in/>
<checked-out/>
<bogus-property/>
<contentbogosity/>
</prop>
</propfind>
ENDDATA
REPLACE=/ETag: "[0-9a-f]{32}"/ETag: "deadbeefcafefeeddeadbeefcafefeed"/
# REPLACE=/<get.tag>"[0-9a-f]{32}"<.get.tag>/<get?tag>"deadbeefcafef00ddeadbeefcafefeed"<.get?tag>/