mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-30 16:00:25 +00:00
Regression test for caldav:calendar-timezone retrieval.
This commit is contained in:
parent
f2b20bc191
commit
2e37945fa7
60
testing/tests/regression-suite/541-iCal4-PROPFIND.result
Normal file
60
testing/tests/regression-suite/541-iCal4-PROPFIND.result
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
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
|
||||||
|
Allow: OPTIONS, PROPFIND, REPORT, DELETE, LOCK, UNLOCK, MOVE, ACL, GET, PUT, HEAD
|
||||||
|
ETag: "19e51f9bc18826db107f6b07900cea8a"
|
||||||
|
Content-Length: 1388
|
||||||
|
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" xmlns:A="http://apple.com/ns/ical/">
|
||||||
|
<response>
|
||||||
|
<href>/caldav.php/user1/home/</href>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<displayname>user1 home</displayname>
|
||||||
|
<A:calendar-color>#0252D4FF</A:calendar-color>
|
||||||
|
<A:calendar-order>1</A:calendar-order>
|
||||||
|
<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>
|
||||||
|
<C:calendar-timezone>BEGIN:VCALENDAR
|
||||||
|
PRODID:-//davical.org//NONSGML AWL Calendar//EN
|
||||||
|
VERSION:2.0
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
BEGIN:VTIMEZONE
|
||||||
|
TZID:Europe/Prague
|
||||||
|
BEGIN:DAYLIGHT
|
||||||
|
TZOFFSETFROM:+0100
|
||||||
|
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
|
||||||
|
DTSTART:19810329T020000
|
||||||
|
TZNAME:GMT+02:00
|
||||||
|
TZOFFSETTO:+0200
|
||||||
|
END:DAYLIGHT
|
||||||
|
BEGIN:STANDARD
|
||||||
|
TZOFFSETFROM:+0200
|
||||||
|
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
|
||||||
|
DTSTART:19961027T030000
|
||||||
|
TZNAME:GMT+01:00
|
||||||
|
TZOFFSETTO:+0100
|
||||||
|
END:STANDARD
|
||||||
|
END:VTIMEZONE
|
||||||
|
END:VCALENDAR
|
||||||
|
</C:calendar-timezone>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 200 OK</status>
|
||||||
|
</propstat>
|
||||||
|
<propstat>
|
||||||
|
<prop>
|
||||||
|
<C:calendar-description/>
|
||||||
|
<C:schedule-calendar-transp/>
|
||||||
|
<C:schedule-default-calendar-URL/>
|
||||||
|
</prop>
|
||||||
|
<status>HTTP/1.1 404 Not Found</status>
|
||||||
|
</propstat>
|
||||||
|
</response>
|
||||||
|
</multistatus>
|
||||||
29
testing/tests/regression-suite/541-iCal4-PROPFIND.test
Normal file
29
testing/tests/regression-suite/541-iCal4-PROPFIND.test
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#
|
||||||
|
# Testing with a process similar to iCal4
|
||||||
|
#
|
||||||
|
TYPE=PROPFIND
|
||||||
|
URL=http://regression.host/caldav.php/user1/home/
|
||||||
|
HEAD
|
||||||
|
|
||||||
|
HEADER=DAVKit/4.0 (729); CalendarStore/4.0 (965); iCal/4.0 (1362); Mac OS X/10.6.1 (10B504)
|
||||||
|
HEADER=Content-Type: text/xml
|
||||||
|
HEADER=Depth: 0
|
||||||
|
|
||||||
|
#
|
||||||
|
# Looking for interesting stuff like xmpp-uri
|
||||||
|
#
|
||||||
|
BEGINDATA
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<x0:propfind xmlns:x0="DAV:" xmlns:x3="http://apple.com/ns/ical/" xmlns:x1="http://calendarserver.org/ns/" xmlns:x2="urn:ietf:params:xml:ns:caldav">
|
||||||
|
<x0:prop>
|
||||||
|
<x0:displayname/>
|
||||||
|
<x2:calendar-description/>
|
||||||
|
<x3:calendar-color/>
|
||||||
|
<x3:calendar-order/>
|
||||||
|
<x2:supported-calendar-component-set/>
|
||||||
|
<x2:schedule-calendar-transp/>
|
||||||
|
<x2:schedule-default-calendar-URL/>
|
||||||
|
<x2:calendar-timezone/>
|
||||||
|
</x0:prop>
|
||||||
|
</x0:propfind>
|
||||||
|
ENDDATA
|
||||||
Loading…
x
Reference in New Issue
Block a user