Regression tests for the supported-* properties.

This commit is contained in:
Andrew McMillan 2009-11-02 23:39:55 +13:00
parent 8512a507f5
commit c339d5e987
16 changed files with 467 additions and 0 deletions

View File

@ -0,0 +1,41 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
ETag: "664e69097dfcef6d40d4deb9b15b462a"
Content-Length: 891
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/</href>
<propstat>
<prop>
<resourcetype>
<collection/>
</resourcetype>
<displayname>DAViCal CalDAV Server</displayname>
<supported-method-set>
<supported-method name="OPTIONS"/>
<supported-method name="PROPFIND"/>
<supported-method name="REPORT"/>
</supported-method-set>
<supported-report-set>
<supported-report>
<principal-property-search/>
</supported-report>
<supported-report>
<sync-collection/>
</supported-report>
</supported-report-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:supported-calendar-component-set/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,24 @@
#
# PROPFIND looking for supported-methods supported-reports etc
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:" xmlns:caldav="urn:ietf:params:xml:ns:caldav">
<prop>
<displayname/>
<resourcetype/>
<supported-method-set/>
<supported-report-set/>
<caldav:supported-calendar-component-set/>
</prop>
</propfind>
ENDDATA

View File

@ -0,0 +1,51 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
ETag: "d0b4d2ea75d0b115c8b3c8bb0d5c6391"
Content-Length: 1247
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/user1/</href>
<propstat>
<prop>
<displayname>User 1</displayname>
<resourcetype>
<principal/>
<collection/>
</resourcetype>
<supported-method-set>
<supported-method name="OPTIONS"/>
<supported-method name="PROPFIND"/>
<supported-method name="REPORT"/>
<supported-method name="DELETE"/>
<supported-method name="LOCK"/>
<supported-method name="UNLOCK"/>
<supported-method name="GET"/>
<supported-method name="PUT"/>
<supported-method name="HEAD"/>
<supported-method name="MKCOL"/>
<supported-method name="MKCALENDAR"/>
<supported-method name="PROPPATCH"/>
</supported-method-set>
<supported-report-set>
<supported-report>
<principal-property-search/>
</supported-report>
<supported-report>
<sync-collection/>
</supported-report>
</supported-report-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:supported-calendar-component-set/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,24 @@
#
# PROPFIND looking for supported-methods supported-reports etc
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/user1/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:" xmlns:caldav="urn:ietf:params:xml:ns:caldav">
<prop>
<displayname/>
<resourcetype/>
<supported-method-set/>
<supported-report-set/>
<caldav:supported-calendar-component-set/>
</prop>
</propfind>
ENDDATA

View File

@ -0,0 +1,58 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
ETag: "7ab339431007ed0a57ad3bd440868790"
Content-Length: 1474
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/user1/home/</href>
<propstat>
<prop>
<C:supported-calendar-component-set>
<C:comp name="VEVENT"/>
<C:comp name="VTODO"/>
<C:comp name="VJOURNAL"/>
<C:comp name="VTIMEZONE"/>
<C:comp name="VFREEBUSY"/>
</C:supported-calendar-component-set>
<resourcetype>
<collection/>
<C:calendar/>
</resourcetype>
<displayname>User One's Calendar</displayname>
<supported-method-set>
<supported-method name="OPTIONS"/>
<supported-method name="PROPFIND"/>
<supported-method name="REPORT"/>
<supported-method name="DELETE"/>
<supported-method name="LOCK"/>
<supported-method name="UNLOCK"/>
<supported-method name="GET"/>
<supported-method name="PUT"/>
<supported-method name="HEAD"/>
</supported-method-set>
<supported-report-set>
<supported-report>
<principal-property-search/>
</supported-report>
<supported-report>
<sync-collection/>
</supported-report>
<supported-report>
<C:calendar-query/>
</supported-report>
<supported-report>
<C:calendar-multiget/>
</supported-report>
<supported-report>
<C:free-busy-query/>
</supported-report>
</supported-report-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,24 @@
#
# PROPFIND looking for supported-methods supported-reports etc
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/user1/home/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:" xmlns:caldav="urn:ietf:params:xml:ns:caldav">
<prop>
<displayname/>
<resourcetype/>
<supported-method-set/>
<supported-report-set/>
<caldav:supported-calendar-component-set/>
</prop>
</propfind>
ENDDATA

View File

@ -0,0 +1,49 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
ETag: "8a5e441890faec00d4749e0e30ee1733"
Content-Length: 1259
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/user1/.in/</href>
<propstat>
<prop>
<C:supported-calendar-component-set>
<C:comp name="VEVENT"/>
<C:comp name="VTODO"/>
<C:comp name="VFREEBUSY"/>
</C:supported-calendar-component-set>
<resourcetype>
<collection/>
<C:schedule-inbox/>
</resourcetype>
<displayname>User 1 Inbox</displayname>
<supported-method-set>
<supported-method name="OPTIONS"/>
<supported-method name="PROPFIND"/>
<supported-method name="REPORT"/>
<supported-method name="DELETE"/>
<supported-method name="LOCK"/>
<supported-method name="UNLOCK"/>
<supported-method name="POST"/>
<supported-method name="GET"/>
<supported-method name="PUT"/>
<supported-method name="HEAD"/>
<supported-method name="PROPPATCH"/>
</supported-method-set>
<supported-report-set>
<supported-report>
<principal-property-search/>
</supported-report>
<supported-report>
<sync-collection/>
</supported-report>
</supported-report-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,24 @@
#
# PROPFIND looking for supported-methods supported-reports etc
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/user1/.in/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:" xmlns:caldav="urn:ietf:params:xml:ns:caldav">
<prop>
<displayname/>
<resourcetype/>
<supported-method-set/>
<supported-report-set/>
<caldav:supported-calendar-component-set/>
</prop>
</propfind>
ENDDATA

View File

@ -0,0 +1,49 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
ETag: "ad2a58b8693cf42c755a5533108f64ef"
Content-Length: 1262
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<response>
<href>/caldav.php/user1/.out/</href>
<propstat>
<prop>
<C:supported-calendar-component-set>
<C:comp name="VEVENT"/>
<C:comp name="VTODO"/>
<C:comp name="VFREEBUSY"/>
</C:supported-calendar-component-set>
<resourcetype>
<collection/>
<C:schedule-outbox/>
</resourcetype>
<displayname>User 1 Outbox</displayname>
<supported-method-set>
<supported-method name="OPTIONS"/>
<supported-method name="PROPFIND"/>
<supported-method name="REPORT"/>
<supported-method name="DELETE"/>
<supported-method name="LOCK"/>
<supported-method name="UNLOCK"/>
<supported-method name="POST"/>
<supported-method name="GET"/>
<supported-method name="PUT"/>
<supported-method name="HEAD"/>
<supported-method name="PROPPATCH"/>
</supported-method-set>
<supported-report-set>
<supported-report>
<principal-property-search/>
</supported-report>
<supported-report>
<sync-collection/>
</supported-report>
</supported-report-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,24 @@
#
# PROPFIND looking for supported-methods supported-reports etc
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/user1/.out/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:" xmlns:caldav="urn:ietf:params:xml:ns:caldav">
<prop>
<displayname/>
<resourcetype/>
<supported-method-set/>
<supported-report-set/>
<caldav:supported-calendar-component-set/>
</prop>
</propfind>
ENDDATA

View File

@ -0,0 +1,7 @@
HTTP/1.1 404 Not Found
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
Content-Length: 44
Content-Type: text/plain; charset="utf-8"
That resource is not present on this server.

View File

@ -0,0 +1,26 @@
#
# PROPFIND looking for supported-methods supported-reports etc
#
# Non-existent principal
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/bogusprincipal/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:" xmlns:caldav="urn:ietf:params:xml:ns:caldav">
<prop>
<displayname/>
<resourcetype/>
<supported-method-set/>
<supported-report-set/>
<caldav:supported-calendar-component-set/>
</prop>
</propfind>
ENDDATA

View File

@ -0,0 +1,7 @@
HTTP/1.1 404 Not Found
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
Content-Length: 44
Content-Type: text/plain; charset="utf-8"
That resource is not present on this server.

View File

@ -0,0 +1,26 @@
#
# PROPFIND looking for supported-methods supported-reports etc
#
# Bogus collection name
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/user1/boguscollection/
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:" xmlns:caldav="urn:ietf:params:xml:ns:caldav">
<prop>
<displayname/>
<resourcetype/>
<supported-method-set/>
<supported-report-set/>
<caldav:supported-calendar-component-set/>
</prop>
</propfind>
ENDDATA

View File

@ -0,0 +1,7 @@
HTTP/1.1 404 Not Found
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol
Content-Length: 44
Content-Type: text/plain; charset="utf-8"
That resource is not present on this server.

View File

@ -0,0 +1,26 @@
#
# PROPFIND looking for supported-methods supported-reports etc
#
# Bogus resource in collection
#
TYPE=PROPFIND
URL=http://regression.host/caldav.php/user1/home/bogusnonexistentresource.ics
HEADER=Content-Type: text/xml; charset="UTF-8"
HEADER=Depth: 0
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:" xmlns:caldav="urn:ietf:params:xml:ns:caldav">
<prop>
<displayname/>
<resourcetype/>
<supported-method-set/>
<supported-report-set/>
<caldav:supported-calendar-component-set/>
</prop>
</propfind>
ENDDATA