Skip to content
Permalink
Browse files

Test invalid MKCOL.

  • Loading branch information...
cyrusdaboo committed Apr 9, 2010
1 parent f300aa3 commit 24de87c675f1a8bf7af39c3efe910078ec1fe00d
Showing with 28 additions and 2 deletions.
  1. +8 −0 Resource/CardDAV/mkcol/3.xml
  2. +20 −2 scripts/tests/CardDAV/mkcol.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<D:mkcol xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:carddav">
<D:set>
<D:prop>
<D:resourcetype><D:collection/><D:displayname/></D:resourcetype>
</D:prop>
</D:set>
</D:mkcol>
@@ -62,7 +62,7 @@
</verify>
</request>
</test>
<test name='3'>
<test name='3'>
<description>MKCOL with incorrect request body</description>
<request end-delete='yes' print-response='no'>
<method>MKCOL</method>
@@ -112,8 +112,26 @@
</verify>
</request>
</test>
<test name='5'>
<description>MKCOL with incorrect resourcetype on new resource</description>
<request>
<method>MKCOL</method>
<ruri>$addressbookhome1:/adbktest3/</ruri>
<data>
<content-type>text/xml; charset=utf-8</content-type>
<filepath>Resource/CardDAV/mkcol/3.xml</filepath>
</data>
<verify>
<callback>statusCode</callback>
<arg>
<name>status</name>
<value>400</value>
</arg>
</verify>
</request>
</test>
</test-suite>

<end/>

</caldavtest>

0 comments on commit 24de87c

Please sign in to comment.
You can’t perform that action at this time.