mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-20 01:44:15 +00:00
New tests and results.
This commit is contained in:
parent
aa2a62bc03
commit
cefdbddd91
@ -0,0 +1,8 @@
|
|||||||
|
HTTP/1.1 100 Continue
|
||||||
|
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||||
|
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: text/plain; charset="utf-8"
|
||||||
|
|
||||||
@ -0,0 +1,59 @@
|
|||||||
|
#
|
||||||
|
# PUT a calendar collection to user3 so we have some starting events
|
||||||
|
#
|
||||||
|
# There is no CalDAV defined behaviour for this.
|
||||||
|
#
|
||||||
|
TYPE=PUT
|
||||||
|
URL=http://mycaldav/caldav.php/user3/home/
|
||||||
|
HEADER=User-Agent: RSCDS Testing/0.9.x
|
||||||
|
HEADER=Content-Type: text/calendar; charset=utf-8
|
||||||
|
AUTH=user3:user3
|
||||||
|
|
||||||
|
HEAD
|
||||||
|
|
||||||
|
BEGINDATA
|
||||||
|
BEGIN:VCALENDAR
|
||||||
|
VERSION:2.0
|
||||||
|
PRODID:-//Apple Inc.//iCal 3.0//EN
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
BEGIN:VTIMEZONE
|
||||||
|
TZID:Europe/Helsinki
|
||||||
|
BEGIN:DAYLIGHT
|
||||||
|
TZOFFSETFROM:+0200
|
||||||
|
TZOFFSETTO:+0300
|
||||||
|
DTSTART:19810329T030000
|
||||||
|
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
|
||||||
|
TZNAME:EEST
|
||||||
|
END:DAYLIGHT
|
||||||
|
BEGIN:STANDARD
|
||||||
|
TZOFFSETFROM:+0300
|
||||||
|
TZOFFSETTO:+0200
|
||||||
|
DTSTART:19961027T040000
|
||||||
|
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
|
||||||
|
TZNAME:EET
|
||||||
|
END:STANDARD
|
||||||
|
END:VTIMEZONE
|
||||||
|
BEGIN:VEVENT
|
||||||
|
SEQUENCE:3
|
||||||
|
TRANSP:OPAQUE
|
||||||
|
UID:55F6EC95-2D21-4FB9-9AE1-A6E020B44AEB
|
||||||
|
DTSTART;TZID=Europe/Helsinki:20081001T133000
|
||||||
|
DTSTAMP:20081024T200745Z
|
||||||
|
RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=1TU,2WE,3TH,4FR;BYMONTH=3,6,9,10,12
|
||||||
|
SUMMARY:User 3
|
||||||
|
CREATED:20081024T200734Z
|
||||||
|
DTEND;TZID=Europe/Helsinki:20081025T133000
|
||||||
|
END:VEVENT
|
||||||
|
BEGIN:VEVENT
|
||||||
|
SEQUENCE:2
|
||||||
|
TRANSP:OPAQUE
|
||||||
|
UID:174F9C2A-1223-40C4-9E06-6E91F2EA9491
|
||||||
|
DTSTART;TZID=Europe/Helsinki:20081017T084500
|
||||||
|
DTSTAMP:20081025T112653Z
|
||||||
|
SUMMARY:Dentist\'s Council meeting
|
||||||
|
RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=TU,FR
|
||||||
|
CREATED:20081025T112648Z
|
||||||
|
DTEND;TZID=Europe/Helsinki:20081024T113000
|
||||||
|
END:VEVENT
|
||||||
|
END:VCALENDAR
|
||||||
|
ENDDATA
|
||||||
26
testing/tests/regression-suite/516-iCal-POST.result
Normal file
26
testing/tests/regression-suite/516-iCal-POST.result
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<schedule-response xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||||
|
<C:response>
|
||||||
|
<C:recipient>
|
||||||
|
<href>mailto:user2@example.net</href>
|
||||||
|
</C:recipient>
|
||||||
|
<C:request-status>2.0;Success</C:request-status>
|
||||||
|
<C:calendar-data>BEGIN:VCALENDAR
|
||||||
|
PRODID:-//davical.org//NONSGML AWL Calendar//EN
|
||||||
|
VERSION:2.0
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
METHOD:REPLY
|
||||||
|
BEGIN:VFREEBUSY
|
||||||
|
DTSTAMP:yyyymmddThhmmssZ
|
||||||
|
DTSTART:20081022T054500Z
|
||||||
|
DTEND:20081024T083000Z
|
||||||
|
UID:89E43E7F-911D-4052-9FE3-4782268649E0
|
||||||
|
ORGANIZER:mailto:user1@example.net
|
||||||
|
X-WR-ATTENDEE:mailto:user2@example.net
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081022T220000/20081022T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081023T220000/20081023T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081024T010000/20081024T020000
|
||||||
|
END:VFREEBUSY
|
||||||
|
END:VCALENDAR
|
||||||
|
</C:calendar-data>
|
||||||
|
</C:response>
|
||||||
|
</schedule-response>
|
||||||
33
testing/tests/regression-suite/516-iCal-POST.test
Normal file
33
testing/tests/regression-suite/516-iCal-POST.test
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#
|
||||||
|
# Testing for how iCal does a POST for free/busy
|
||||||
|
#
|
||||||
|
TYPE=POST
|
||||||
|
URL=http://mycaldav/caldav.php/user1/.out/
|
||||||
|
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=Recipient: mailto:user2@example.net
|
||||||
|
HEADER=Content-Type: text/calendar
|
||||||
|
HEADER=Originator: mailto:user1@example.net
|
||||||
|
|
||||||
|
|
||||||
|
BEGINDATA
|
||||||
|
BEGIN:VCALENDAR
|
||||||
|
PRODID:-//Apple Inc.//iCal 3.0//EN
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
VERSION:2.0
|
||||||
|
METHOD:REQUEST
|
||||||
|
BEGIN:VFREEBUSY
|
||||||
|
DTSTART:20081022T054500Z
|
||||||
|
UID:89E43E7F-911D-4052-9FE3-4782268649E0
|
||||||
|
ORGANIZER:mailto:user1@example.net
|
||||||
|
X-WR-ATTENDEE:mailto:user2@example.net
|
||||||
|
DTSTAMP:20081025T112708Z
|
||||||
|
SUMMARY:Availability for mailto:user2@example.net
|
||||||
|
CREATED:20081025T112708Z
|
||||||
|
DTEND:20081024T083000Z
|
||||||
|
X-CALENDARSERVER-MASK-UID:174F9C2A-1223-40C4-9E06-6E91F2EA9491
|
||||||
|
END:VFREEBUSY
|
||||||
|
END:VCALENDAR
|
||||||
|
ENDDATA
|
||||||
|
|
||||||
|
REPLACE=#<creationdate>\d{8}T\d{6}</creationdate>#<creationdate>YYYYMMDDThhmmss</creationdate>#
|
||||||
|
REPLACE=/^DTSTAMP:\d{4}[01]\d[0123]\dT[012]\d[0-5]\d[0-6]\dZ\r?$/DTSTAMP:yyyymmddThhmmssZ/
|
||||||
50
testing/tests/regression-suite/517-iCal-POST.result
Normal file
50
testing/tests/regression-suite/517-iCal-POST.result
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<schedule-response xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||||
|
<C:response>
|
||||||
|
<C:recipient>
|
||||||
|
<href>mailto:user1@example.net</href>
|
||||||
|
</C:recipient>
|
||||||
|
<C:request-status>2.0;Success</C:request-status>
|
||||||
|
<C:calendar-data>BEGIN:VCALENDAR
|
||||||
|
PRODID:-//davical.org//NONSGML AWL Calendar//EN
|
||||||
|
VERSION:2.0
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
METHOD:REPLY
|
||||||
|
BEGIN:VFREEBUSY
|
||||||
|
DTSTAMP:yyyymmddThhmmssZ
|
||||||
|
DTSTART:20081022T084500
|
||||||
|
DTEND:20081024T113000
|
||||||
|
UID:174F9C2A-1223-40C4-9E06-6E91F2EA9491
|
||||||
|
ORGANIZER:mailto:user1@example.net
|
||||||
|
ATTENDEE;CN=\"User 1\";PARTSTAT=ACCEPTED:mailto:user1@example.net
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081023T184500/20081023T193000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081022T180000/20081023T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081023T180000/20081024T040000
|
||||||
|
END:VFREEBUSY
|
||||||
|
END:VCALENDAR
|
||||||
|
</C:calendar-data>
|
||||||
|
</C:response>
|
||||||
|
<C:response>
|
||||||
|
<C:recipient>
|
||||||
|
<href>mailto:user2@example.net</href>
|
||||||
|
</C:recipient>
|
||||||
|
<C:request-status>2.0;Success</C:request-status>
|
||||||
|
<C:calendar-data>BEGIN:VCALENDAR
|
||||||
|
PRODID:-//davical.org//NONSGML AWL Calendar//EN
|
||||||
|
VERSION:2.0
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
METHOD:REPLY
|
||||||
|
BEGIN:VFREEBUSY
|
||||||
|
DTSTAMP:yyyymmddThhmmssZ
|
||||||
|
DTSTART:20081022T084500
|
||||||
|
DTEND:20081024T113000
|
||||||
|
UID:174F9C2A-1223-40C4-9E06-6E91F2EA9491
|
||||||
|
ORGANIZER:mailto:user1@example.net
|
||||||
|
X-WR-ATTENDEE;CN=\"user2\";CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;ROLE=
|
||||||
|
REQ-PARTICIPANT;RSVP=TRUE:mailto:user2@example.net
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081022T220000/20081022T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081023T220000/20081023T223000
|
||||||
|
END:VFREEBUSY
|
||||||
|
END:VCALENDAR
|
||||||
|
</C:calendar-data>
|
||||||
|
</C:response>
|
||||||
|
</schedule-response>
|
||||||
53
testing/tests/regression-suite/517-iCal-POST.test
Normal file
53
testing/tests/regression-suite/517-iCal-POST.test
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#
|
||||||
|
# Testing for how iCal does a POST for free/busy
|
||||||
|
#
|
||||||
|
TYPE=POST
|
||||||
|
URL=http://mycaldav/caldav.php/user1/.out/
|
||||||
|
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=Recipient: mailto:user2@example.net
|
||||||
|
HEADER=Content-Type: text/calendar
|
||||||
|
HEADER=Originator: mailto:user1@example.net
|
||||||
|
|
||||||
|
|
||||||
|
BEGINDATA
|
||||||
|
BEGIN:VCALENDAR
|
||||||
|
PRODID:-//Apple Inc.//iCal 3.0//EN
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
VERSION:2.0
|
||||||
|
METHOD:REQUEST
|
||||||
|
BEGIN:VTIMEZONE
|
||||||
|
TZID:Europe/Helsinki
|
||||||
|
BEGIN:DAYLIGHT
|
||||||
|
TZOFFSETFROM:+0200
|
||||||
|
TZOFFSETTO:+0300
|
||||||
|
DTSTART:19810329T030000
|
||||||
|
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
|
||||||
|
TZNAME:EEST
|
||||||
|
END:DAYLIGHT
|
||||||
|
BEGIN:STANDARD
|
||||||
|
TZOFFSETFROM:+0300
|
||||||
|
TZOFFSETTO:+0200
|
||||||
|
DTSTART:19961027T040000
|
||||||
|
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
|
||||||
|
TZNAME:EET
|
||||||
|
END:STANDARD
|
||||||
|
END:VTIMEZONE
|
||||||
|
BEGIN:VEVENT
|
||||||
|
SEQUENCE:3
|
||||||
|
TRANSP:OPAQUE
|
||||||
|
UID:174F9C2A-1223-40C4-9E06-6E91F2EA9491
|
||||||
|
DTSTART;TZID=Europe/Helsinki:20081022T084500
|
||||||
|
ORGANIZER;CN="User 1":mailto:user1@example.net
|
||||||
|
DTSTAMP:20081025T112707Z
|
||||||
|
SUMMARY:test meeting
|
||||||
|
ATTENDEE;CN="User 1";PARTSTAT=ACCEPTED:mailto:user1@example.net
|
||||||
|
X-WR-ATTENDEE;CN="user2";CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;ROLE=RE
|
||||||
|
Q-PARTICIPANT;RSVP=TRUE:mailto:user2@example.net
|
||||||
|
CREATED:20081025T112648Z
|
||||||
|
DTEND;TZID=Europe/Helsinki:20081024T113000
|
||||||
|
END:VEVENT
|
||||||
|
END:VCALENDAR
|
||||||
|
ENDDATA
|
||||||
|
|
||||||
|
REPLACE=#<creationdate>\d{8}T\d{6}</creationdate>#<creationdate>YYYYMMDDThhmmss</creationdate>#
|
||||||
|
REPLACE=/^DTSTAMP:\d{4}[01]\d[0123]\dT[012]\d[0-5]\d[0-6]\dZ\r?$/DTSTAMP:yyyymmddThhmmssZ/
|
||||||
80
testing/tests/regression-suite/880-Freebusy-POST.result
Normal file
80
testing/tests/regression-suite/880-Freebusy-POST.result
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
<schedule-response xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||||
|
<C:response>
|
||||||
|
<C:recipient>
|
||||||
|
<href>mailto:user1@example.net</href>
|
||||||
|
</C:recipient>
|
||||||
|
<C:request-status>2.0;Success</C:request-status>
|
||||||
|
<C:calendar-data>BEGIN:VCALENDAR
|
||||||
|
PRODID:-//davical.org//NONSGML AWL Calendar//EN
|
||||||
|
VERSION:2.0
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
METHOD:REPLY
|
||||||
|
BEGIN:VFREEBUSY
|
||||||
|
DTSTAMP:yyyymmddThhmmssZ
|
||||||
|
DTSTART:20081021T110000Z
|
||||||
|
DTEND:20081106T110000Z
|
||||||
|
UID:1e680b0e-ee15-4d63-844f-3e48aa92791f
|
||||||
|
ORGANIZER:mailto:user1@example.net
|
||||||
|
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:ma
|
||||||
|
ilto:user1@example.net
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081021T184500/20081021T193000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081023T184500/20081023T193000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081028T184500/20081028T193000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081030T184500/20081030T193000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081104T184500/20081104T193000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081102T183000/20081102T203000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081021T180000/20081022T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081022T180000/20081023T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081023T180000/20081024T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081024T180000/20081025T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081027T180000/20081028T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081028T180000/20081029T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081029T180000/20081030T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081030T180000/20081031T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081031T180000/20081101T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081103T180000/20081104T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081104T180000/20081105T040000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081105T180000/20081106T040000
|
||||||
|
END:VFREEBUSY
|
||||||
|
END:VCALENDAR
|
||||||
|
</C:calendar-data>
|
||||||
|
</C:response>
|
||||||
|
<C:response>
|
||||||
|
<C:recipient>
|
||||||
|
<href>mailto:user2@example.net</href>
|
||||||
|
</C:recipient>
|
||||||
|
<C:request-status>2.0;Success</C:request-status>
|
||||||
|
<C:calendar-data>BEGIN:VCALENDAR
|
||||||
|
PRODID:-//davical.org//NONSGML AWL Calendar//EN
|
||||||
|
VERSION:2.0
|
||||||
|
CALSCALE:GREGORIAN
|
||||||
|
METHOD:REPLY
|
||||||
|
BEGIN:VFREEBUSY
|
||||||
|
DTSTAMP:yyyymmddThhmmssZ
|
||||||
|
DTSTART:20081021T110000Z
|
||||||
|
DTEND:20081106T110000Z
|
||||||
|
UID:1e680b0e-ee15-4d63-844f-3e48aa92791f
|
||||||
|
ORGANIZER:mailto:user1@example.net
|
||||||
|
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:ma
|
||||||
|
ilto:user2@example.net
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081021T220000/20081021T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081022T220000/20081022T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081023T220000/20081023T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081024T220000/20081024T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081027T220000/20081027T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081028T220000/20081028T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081029T220000/20081029T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081030T220000/20081030T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081031T220000/20081031T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081103T220000/20081103T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081104T220000/20081104T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081105T220000/20081105T223000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081026T200000/20081026T210000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081102T200000/20081102T210000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081024T010000/20081024T020000
|
||||||
|
FREEBUSY;FBTYPE=BUSY:20081031T010000/20081031T020000
|
||||||
|
END:VFREEBUSY
|
||||||
|
END:VCALENDAR
|
||||||
|
</C:calendar-data>
|
||||||
|
</C:response>
|
||||||
|
</schedule-response>
|
||||||
31
testing/tests/regression-suite/880-Freebusy-POST.test
Normal file
31
testing/tests/regression-suite/880-Freebusy-POST.test
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#
|
||||||
|
# Testing for Spec compliance. POST on outbox for
|
||||||
|
# free/busy information
|
||||||
|
#
|
||||||
|
TYPE=POST
|
||||||
|
URL=http://mycaldav/caldav.php/user1/.out/
|
||||||
|
HEADER=User-Agent: draft-schedule-05 Spec Tests
|
||||||
|
HEADER=Content-Type: text/calendar
|
||||||
|
|
||||||
|
REPLACE=#<creationdate>\d{8}T\d{6}</creationdate>#<creationdate>YYYYMMDDThhmmss</creationdate>#
|
||||||
|
|
||||||
|
BEGINDATA
|
||||||
|
BEGIN:VCALENDAR
|
||||||
|
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
|
||||||
|
VERSION:2.0
|
||||||
|
METHOD:REQUEST
|
||||||
|
BEGIN:VFREEBUSY
|
||||||
|
DTSTAMP:20081019T202752Z
|
||||||
|
ORGANIZER:mailto:user1@example.net
|
||||||
|
DTSTART:20081021T110000Z
|
||||||
|
DTEND:20081106T110000Z
|
||||||
|
UID:1e680b0e-ee15-4d63-844f-3e48aa92791f
|
||||||
|
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:
|
||||||
|
mailto:user1@example.net
|
||||||
|
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:
|
||||||
|
mailto:user2@example.net
|
||||||
|
END:VFREEBUSY
|
||||||
|
END:VCALENDAR
|
||||||
|
ENDDATA
|
||||||
|
|
||||||
|
REPLACE=/^DTSTAMP:\d{4}[01]\d[0123]\dT[012]\d[0-5]\d[0-6]\dZ\r?$/DTSTAMP:yyyymmddThhmmssZ/
|
||||||
Loading…
x
Reference in New Issue
Block a user