Tests for failure (bogus unhandled properties) and success (Depth: inifinity)

for the PROPFIND.
This commit is contained in:
Andrew McMillan 2006-12-09 22:28:32 +13:00
parent 70090377bb
commit f447c77553
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,34 @@
#
# 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
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

View File

@ -0,0 +1,31 @@
#
# Spec compliant test for all properties. Depth infinity this time
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/user1/home/
HEADER=User-Agent: RFC2518 Spec Tests
HEADER=Depth: infinity
HEADER=Content-Type: application/xml
HEAD
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/>
</prop>
</propfind>
ENDDATA