mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-19 01:34:26 +00:00
Tests for failure (bogus unhandled properties) and success (Depth: inifinity)
for the PROPFIND.
This commit is contained in:
parent
70090377bb
commit
f447c77553
34
testing/tests/regression-suite/821-Spec-PROPFIND-2.test
Normal file
34
testing/tests/regression-suite/821-Spec-PROPFIND-2.test
Normal 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
|
||||||
31
testing/tests/regression-suite/822-Spec-PROPFIND-3.test
Normal file
31
testing/tests/regression-suite/822-Spec-PROPFIND-3.test
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user