mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-29 13:19:26 +00:00
More PROPFIND magic with current iCal emulation. Somewhat.
This commit is contained in:
parent
e876fdfb07
commit
1b02c0c567
35
testing/tests/regression-suite/520-iCal-PROPFIND.result
Normal file
35
testing/tests/regression-suite/520-iCal-PROPFIND.result
Normal file
@ -0,0 +1,35 @@
|
||||
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
|
||||
ETag: "20ec64aa0f486554b4a15959dbab091b"
|
||||
Content-Length: 779
|
||||
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://calendarserver.org/ns/" xmlns:A1="http://apple.com/ns/ical/">
|
||||
<response>
|
||||
<href>/caldav.php/user2/.in/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<C:schedule-inbox/>
|
||||
</resourcetype>
|
||||
<displayname>User 2 Inbox</displayname>
|
||||
<A:getctag>""</A:getctag>
|
||||
<C:calendar-free-busy-set>
|
||||
<href>/caldav.php/user2/home/</href>
|
||||
</C:calendar-free-busy-set>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<C:calendar-description/>
|
||||
<A1:calendar-color/>
|
||||
<A1:calendar-order/>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
27
testing/tests/regression-suite/520-iCal-PROPFIND.test
Normal file
27
testing/tests/regression-suite/520-iCal-PROPFIND.test
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# Testing with a process similar to iCal 10.5
|
||||
#
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/user2/.in/
|
||||
HEAD
|
||||
|
||||
AUTH=user2:user2
|
||||
|
||||
HEADER=User-Agent: DAVKit/3.0.4 (652); CalendarStore/3.0.5 (841); iCal/3.0.5 (1270); Mac OS X/10.5.5 (9F33)
|
||||
HEADER=Content-Type: text/xml
|
||||
HEADER=Depth: 1
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<x0:propfind xmlns:x1="http://calendarserver.org/ns/" xmlns:x0="DAV:" xmlns:x3="http://apple.com/ns/ical/" xmlns:x2="urn:ietf:params:xml:ns:caldav">
|
||||
<x0:prop>
|
||||
<x1:getctag/>
|
||||
<x0:displayname/>
|
||||
<x2:calendar-description/>
|
||||
<x3:calendar-color/>
|
||||
<x3:calendar-order/>
|
||||
<x0:resourcetype/>
|
||||
<x2:calendar-free-busy-set/>
|
||||
</x0:prop>
|
||||
</x0:propfind>
|
||||
ENDDATA
|
||||
33
testing/tests/regression-suite/521-iCal-PROPFIND.result
Normal file
33
testing/tests/regression-suite/521-iCal-PROPFIND.result
Normal file
@ -0,0 +1,33 @@
|
||||
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
|
||||
ETag: "2c9f6e94493f48b14831bb934f6c0e2d"
|
||||
Content-Length: 709
|
||||
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://calendarserver.org/ns/" xmlns:A1="http://apple.com/ns/ical/">
|
||||
<response>
|
||||
<href>/caldav.php/user2/.out/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<C:schedule-outbox/>
|
||||
</resourcetype>
|
||||
<displayname>User 2 Outbox</displayname>
|
||||
<A:getctag>""</A:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<C:calendar-free-busy-set/>
|
||||
<C:calendar-description/>
|
||||
<A1:calendar-color/>
|
||||
<A1:calendar-order/>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
27
testing/tests/regression-suite/521-iCal-PROPFIND.test
Normal file
27
testing/tests/regression-suite/521-iCal-PROPFIND.test
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# Testing with a process similar to iCal 10.5
|
||||
#
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/user2/.out/
|
||||
HEAD
|
||||
|
||||
AUTH=user2:user2
|
||||
|
||||
HEADER=User-Agent: DAVKit/3.0.4 (652); CalendarStore/3.0.5 (841); iCal/3.0.5 (1270); Mac OS X/10.5.5 (9F33)
|
||||
HEADER=Content-Type: text/xml
|
||||
HEADER=Depth: 1
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<x0:propfind xmlns:x1="http://calendarserver.org/ns/" xmlns:x0="DAV:" xmlns:x3="http://apple.com/ns/ical/" xmlns:x2="urn:ietf:params:xml:ns:caldav">
|
||||
<x0:prop>
|
||||
<x1:getctag/>
|
||||
<x0:displayname/>
|
||||
<x2:calendar-description/>
|
||||
<x3:calendar-color/>
|
||||
<x3:calendar-order/>
|
||||
<x0:resourcetype/>
|
||||
<x2:calendar-free-busy-set/>
|
||||
</x0:prop>
|
||||
</x0:propfind>
|
||||
ENDDATA
|
||||
105
testing/tests/regression-suite/522-iCal-PROPFIND.result
Normal file
105
testing/tests/regression-suite/522-iCal-PROPFIND.result
Normal file
@ -0,0 +1,105 @@
|
||||
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
|
||||
ETag: "c598cc4a0b0a4f8b7710fdf18a1572d3"
|
||||
Content-Length: 2365
|
||||
Content-Type: text/xml; charset="utf-8"
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<multistatus xmlns="DAV:" xmlns:A="http://calendarserver.org/ns/" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:A1="http://apple.com/ns/ical/">
|
||||
<response>
|
||||
<href>/caldav.php/user2/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<principal/>
|
||||
</resourcetype>
|
||||
<displayname>User 2</displayname>
|
||||
<A:getctag>"39643ecb5f1804dfdd2b37fbdc421d99"</A:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<C:calendar-free-busy-set/>
|
||||
<C:calendar-description/>
|
||||
<A1:calendar-color/>
|
||||
<A1:calendar-order/>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user2/home/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<C:calendar/>
|
||||
<C:schedule-calendar/>
|
||||
</resourcetype>
|
||||
<displayname>home</displayname>
|
||||
<A:getctag>"8a58e25fe610b860d24bb51627589acc"</A:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<C:calendar-free-busy-set/>
|
||||
<C:calendar-description/>
|
||||
<A1:calendar-color/>
|
||||
<A1:calendar-order/>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user2/.in/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<C:schedule-inbox/>
|
||||
</resourcetype>
|
||||
<displayname>User 2 Inbox</displayname>
|
||||
<A:getctag>""</A:getctag>
|
||||
<C:calendar-free-busy-set>
|
||||
<href>/caldav.php/user2/home/</href>
|
||||
</C:calendar-free-busy-set>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<C:calendar-description/>
|
||||
<A1:calendar-color/>
|
||||
<A1:calendar-order/>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
</propstat>
|
||||
</response>
|
||||
<response>
|
||||
<href>/caldav.php/user2/.out/</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<resourcetype>
|
||||
<collection/>
|
||||
<C:schedule-outbox/>
|
||||
</resourcetype>
|
||||
<displayname>User 2 Outbox</displayname>
|
||||
<A:getctag>""</A:getctag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
<propstat>
|
||||
<prop>
|
||||
<C:calendar-free-busy-set/>
|
||||
<C:calendar-description/>
|
||||
<A1:calendar-color/>
|
||||
<A1:calendar-order/>
|
||||
</prop>
|
||||
<status>HTTP/1.1 404 Not Found</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
27
testing/tests/regression-suite/522-iCal-PROPFIND.test
Normal file
27
testing/tests/regression-suite/522-iCal-PROPFIND.test
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# Testing with a process similar to iCal 10.5
|
||||
#
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/user2/
|
||||
HEAD
|
||||
|
||||
AUTH=user2:user2
|
||||
|
||||
HEADER=User-Agent: DAVKit/3.0.4 (652); CalendarStore/3.0.5 (841); iCal/3.0.5 (1270); Mac OS X/10.5.5 (9F33)
|
||||
HEADER=Content-Type: text/xml
|
||||
HEADER=Depth: 1
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<x0:propfind xmlns:x1="http://calendarserver.org/ns/" xmlns:x0="DAV:" xmlns:x3="http://apple.com/ns/ical/" xmlns:x2="urn:ietf:params:xml:ns:caldav">
|
||||
<x0:prop>
|
||||
<x1:getctag/>
|
||||
<x0:displayname/>
|
||||
<x2:calendar-description/>
|
||||
<x3:calendar-color/>
|
||||
<x3:calendar-order/>
|
||||
<x0:resourcetype/>
|
||||
<x2:calendar-free-busy-set/>
|
||||
</x0:prop>
|
||||
</x0:propfind>
|
||||
ENDDATA
|
||||
Loading…
x
Reference in New Issue
Block a user