mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-28 03:04:15 +00:00
Tests for compliance with current Mozilla Calendar actions (0.9)
This commit is contained in:
parent
7925bf8cf2
commit
26ef2f1cb8
31
testing/tests/regression-suite/240-Moz-PROPFIND.result
Normal file
31
testing/tests/regression-suite/240-Moz-PROPFIND.result
Normal file
@ -0,0 +1,31 @@
|
||||
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: "195a8531930cd67c039a9bb8954d4884"
|
||||
Content-Length: 699
|
||||
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>
|
||||
<C:calendar-home-set>
|
||||
<href>/caldav.php/user1/</href>
|
||||
</C:calendar-home-set>
|
||||
<C:schedule-inbox-URL>
|
||||
<href>/caldav.php/user1/.in/</href>
|
||||
</C:schedule-inbox-URL>
|
||||
<C:schedule-outbox-URL>
|
||||
<href>/caldav.php/user1/.out/</href>
|
||||
</C:schedule-outbox-URL>
|
||||
<C:calendar-user-address-set>
|
||||
<href>mailto:user1@example.net</href>
|
||||
<href>/caldav.php/user1/</href>
|
||||
</C:calendar-user-address-set>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
</response>
|
||||
</multistatus>
|
||||
24
testing/tests/regression-suite/240-Moz-PROPFIND.test
Normal file
24
testing/tests/regression-suite/240-Moz-PROPFIND.test
Normal file
@ -0,0 +1,24 @@
|
||||
#
|
||||
# Check for PROPFIND for scheduing inbox/outbox
|
||||
#
|
||||
TYPE=PROPFIND
|
||||
URL=http://mycaldav/caldav.php/user1/
|
||||
HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18pre) Gecko/20080917 Sunbird/0.9
|
||||
HEADER=Accept: text/xml
|
||||
HEADER=Accept-Language: en-us,en;q=0.5
|
||||
HEADER=Accept-Encoding: gzip,deflate
|
||||
HEADER=Accept-Charset: utf-8,*;q=0.1
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEADER=Depth: 0
|
||||
HEAD
|
||||
|
||||
BEGINDATA
|
||||
<D:propfind xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
|
||||
<D:prop>
|
||||
<C:calendar-home-set/>
|
||||
<C:calendar-user-address-set/>
|
||||
<C:schedule-inbox-URL/>
|
||||
<C:schedule-outbox-URL/>
|
||||
</D:prop>
|
||||
</D:propfind>
|
||||
ENDDATA
|
||||
9
testing/tests/regression-suite/241-Moz-REPORT.result
Normal file
9
testing/tests/regression-suite/241-Moz-REPORT.result
Normal file
@ -0,0 +1,9 @@
|
||||
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: "07474790757c5e1b526ce4901889d6d3"
|
||||
Content-Length: 68
|
||||
Content-Type: text/xml; charset="utf-8"
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<multistatus xmlns="DAV:"/>
|
||||
27
testing/tests/regression-suite/241-Moz-REPORT.test
Normal file
27
testing/tests/regression-suite/241-Moz-REPORT.test
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# REPORT on scheduling inbox for pending VTODO on startup
|
||||
#
|
||||
TYPE=REPORT
|
||||
URL=http://mycaldav/caldav.php/user1/.in/
|
||||
HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18pre) Gecko/20080917 Sunbird/0.9
|
||||
HEADER=Accept: text/xml
|
||||
HEADER=Accept-Language: en-us,en;q=0.5
|
||||
HEADER=Accept-Encoding: gzip,deflate
|
||||
HEADER=Accept-Charset: utf-8,*;q=0.1
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEADER=Depth: 1
|
||||
HEAD
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<calendar-query xmlns:D="DAV:" xmlns="urn:ietf:params:xml:ns:caldav">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
</D:prop>
|
||||
<filter>
|
||||
<comp-filter name="VCALENDAR">
|
||||
<comp-filter name="VTODO"/>
|
||||
</comp-filter>
|
||||
</filter>
|
||||
</calendar-query>
|
||||
ENDDATA
|
||||
9
testing/tests/regression-suite/242-Moz-REPORT.result
Normal file
9
testing/tests/regression-suite/242-Moz-REPORT.result
Normal file
@ -0,0 +1,9 @@
|
||||
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: "07474790757c5e1b526ce4901889d6d3"
|
||||
Content-Length: 68
|
||||
Content-Type: text/xml; charset="utf-8"
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<multistatus xmlns="DAV:"/>
|
||||
27
testing/tests/regression-suite/242-Moz-REPORT.test
Normal file
27
testing/tests/regression-suite/242-Moz-REPORT.test
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# REPORT on scheduling inbox for pending VEVENT on startup
|
||||
#
|
||||
TYPE=REPORT
|
||||
URL=http://mycaldav/caldav.php/user1/.in/
|
||||
HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18pre) Gecko/20080917 Sunbird/0.9
|
||||
HEADER=Accept: text/xml
|
||||
HEADER=Accept-Language: en-us,en;q=0.5
|
||||
HEADER=Accept-Encoding: gzip,deflate
|
||||
HEADER=Accept-Charset: utf-8,*;q=0.1
|
||||
HEADER=Content-Type: text/xml; charset=utf-8
|
||||
HEADER=Depth: 1
|
||||
HEAD
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<calendar-query xmlns:D="DAV:" xmlns="urn:ietf:params:xml:ns:caldav">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
</D:prop>
|
||||
<filter>
|
||||
<comp-filter name="VCALENDAR">
|
||||
<comp-filter name="VEVENT"/>
|
||||
</comp-filter>
|
||||
</filter>
|
||||
</calendar-query>
|
||||
ENDDATA
|
||||
34
testing/tests/regression-suite/243-Moz-POST-FB.result
Normal file
34
testing/tests/regression-suite/243-Moz-POST-FB.result
Normal file
@ -0,0 +1,34 @@
|
||||
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: 890
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
<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
|
||||
METHOD:REPLY
|
||||
BEGIN:VFREEBUSY
|
||||
DTSTAMP:yyyymmddThhmmssZ
|
||||
DTSTART:20081020T110000Z
|
||||
DTEND:20081105T110000Z
|
||||
UID:c5bd82ea-cd89-4f58-8d31-336f47e44f97
|
||||
ORGANIZER:mailto:user1@example.net
|
||||
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:ma
|
||||
ilto:user1@example.net
|
||||
FREEBUSY:20081021T184500/20081021T193000
|
||||
FREEBUSY:20081023T184500/20081023T193000
|
||||
FREEBUSY:20081028T184500/20081028T193000
|
||||
FREEBUSY:20081030T184500/20081030T193000
|
||||
FREEBUSY:20081104T184500/20081104T193000
|
||||
END:VFREEBUSY
|
||||
END:VCALENDAR
|
||||
</C:calendar-data>
|
||||
</C:response>
|
||||
</schedule-response>
|
||||
33
testing/tests/regression-suite/243-Moz-POST-FB.test
Normal file
33
testing/tests/regression-suite/243-Moz-POST-FB.test
Normal file
@ -0,0 +1,33 @@
|
||||
#
|
||||
# POST to scheduling outbox for freebusy query on user2
|
||||
#
|
||||
TYPE=POST
|
||||
URL=http://mycaldav/caldav.php/user1/.out/
|
||||
HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18pre) Gecko/20080917 Sunbird/0.9
|
||||
HEADER=Accept: text/xml
|
||||
HEADER=Accept-Language: en-us,en;q=0.5
|
||||
HEADER=Accept-Encoding: gzip,deflate
|
||||
HEADER=Accept-Charset: utf-8,*;q=0.1
|
||||
HEADER=Content-Type: text/calendar; charset=utf-8
|
||||
|
||||
HEAD
|
||||
|
||||
REPLACE=/^DTSTAMP:\d{4}[01]\d[0123]\dT[012]\d[0-5]\d[0-6]\dZ\r?$/DTSTAMP:yyyymmddThhmmssZ/
|
||||
|
||||
BEGINDATA
|
||||
BEGIN:VCALENDAR
|
||||
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
|
||||
VERSION:2.0
|
||||
METHOD:REQUEST
|
||||
BEGIN:VFREEBUSY
|
||||
DTSTAMP:20081022T062945Z
|
||||
ORGANIZER:mailto:user1@example.net
|
||||
DTSTART:20081020T110000Z
|
||||
DTEND:20081105T110000Z
|
||||
UID:c5bd82ea-cd89-4f58-8d31-336f47e44f97
|
||||
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:
|
||||
mailto:user1@example.net
|
||||
END:VFREEBUSY
|
||||
END:VCALENDAR
|
||||
ENDDATA
|
||||
|
||||
45
testing/tests/regression-suite/244-Moz-POST-FB.result
Normal file
45
testing/tests/regression-suite/244-Moz-POST-FB.result
Normal file
@ -0,0 +1,45 @@
|
||||
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: 1352
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
<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
|
||||
METHOD:REPLY
|
||||
BEGIN:VFREEBUSY
|
||||
DTSTAMP:yyyymmddThhmmssZ
|
||||
DTSTART:20081020T110000Z
|
||||
DTEND:20081105T110000Z
|
||||
UID:c5bd82ea-cd89-4f58-8d31-336f47e44f97
|
||||
ORGANIZER:mailto:user1@example.net
|
||||
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:ma
|
||||
ilto:user2@example.net
|
||||
FREEBUSY:20081020T220000/20081020T223000
|
||||
FREEBUSY:20081021T220000/20081021T223000
|
||||
FREEBUSY:20081022T220000/20081022T223000
|
||||
FREEBUSY:20081023T220000/20081023T223000
|
||||
FREEBUSY:20081024T220000/20081024T223000
|
||||
FREEBUSY:20081027T220000/20081027T223000
|
||||
FREEBUSY:20081028T220000/20081028T223000
|
||||
FREEBUSY:20081029T220000/20081029T223000
|
||||
FREEBUSY:20081030T220000/20081030T223000
|
||||
FREEBUSY:20081031T220000/20081031T223000
|
||||
FREEBUSY:20081103T220000/20081103T223000
|
||||
FREEBUSY:20081104T220000/20081104T223000
|
||||
FREEBUSY:20081026T200000/20081026T210000
|
||||
FREEBUSY:20081102T200000/20081102T210000
|
||||
FREEBUSY:20081024T010000/20081024T020000
|
||||
FREEBUSY:20081031T010000/20081031T020000
|
||||
END:VFREEBUSY
|
||||
END:VCALENDAR
|
||||
</C:calendar-data>
|
||||
</C:response>
|
||||
</schedule-response>
|
||||
35
testing/tests/regression-suite/244-Moz-POST-FB.test
Normal file
35
testing/tests/regression-suite/244-Moz-POST-FB.test
Normal file
@ -0,0 +1,35 @@
|
||||
#
|
||||
# POST to scheduling outbox for freebusy query on user2
|
||||
#
|
||||
TYPE=POST
|
||||
URL=http://mycaldav/caldav.php/user1/.out/
|
||||
HEADER=User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18pre) Gecko/20080917 Sunbird/0.9
|
||||
HEADER=Accept: text/xml
|
||||
HEADER=Accept-Language: en-us,en;q=0.5
|
||||
HEADER=Accept-Encoding: gzip,deflate
|
||||
HEADER=Accept-Charset: utf-8,*;q=0.1
|
||||
HEADER=Content-Type: text/calendar; charset=utf-8
|
||||
HEADER=Originator: mailto:user1@example.net
|
||||
HEADER=Recipient: mailto:user2@example.net
|
||||
|
||||
HEAD
|
||||
|
||||
REPLACE=/^DTSTAMP:\d{4}[01]\d[0123]\dT[012]\d[0-5]\d[0-6]\dZ\r?$/DTSTAMP:yyyymmddThhmmssZ/
|
||||
|
||||
BEGINDATA
|
||||
BEGIN:VCALENDAR
|
||||
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
|
||||
VERSION:2.0
|
||||
METHOD:REQUEST
|
||||
BEGIN:VFREEBUSY
|
||||
DTSTAMP:20081022T062945Z
|
||||
ORGANIZER:mailto:user1@example.net
|
||||
DTSTART:20081020T110000Z
|
||||
DTEND:20081105T110000Z
|
||||
UID:c5bd82ea-cd89-4f58-8d31-336f47e44f97
|
||||
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;CUTYPE=INDIVIDUAL:
|
||||
mailto:user2@example.net
|
||||
END:VFREEBUSY
|
||||
END:VCALENDAR
|
||||
ENDDATA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user