Correct regression test for PRIVATE entry.

This commit is contained in:
Andrew McMillan 2006-12-24 21:20:56 +13:00
parent 21f971a2e4
commit b3551c9091
11 changed files with 67 additions and 18 deletions

View File

@ -1,6 +1,6 @@
HTTP/1.1 201 Created
Date: Dow, 01 Jan 2000 00:00:00 GMT
ETag: "ce83cb40cb8bc72301ea2abd6849d8eb"
ETag: "5def8ae2b20893a1c7f4dbaeb008f2f1"
Content-Length: 0
Content-Type: text/plain; charset=UTF-8

View File

@ -14,6 +14,7 @@ HEADER=Content-Type: text/calendar; charset=utf-8
HEAD
BEGINDATA
BEGIN:VCALENDAR
PRODID:-//Mozilla Calendar//NONSGML Sunbird//EN
VERSION:2.0
BEGIN:VEVENT

View File

@ -1,7 +1,7 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
ETag: "ad0a179fd9a619a319844473bf2cfb8f"
Content-Length: 2270
ETag: "8416cb0e188d7286507ceb79f1c780e8"
Content-Length: 2296
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
@ -25,8 +25,8 @@ Content-Type: text/xml; charset="utf-8"
<propstat>
<prop>
<resourcetype/>
<displayname/>
<getetag>"ce83cb40cb8bc72301ea2abd6849d8eb"</getetag>
<displayname>Private Event</displayname>
<getetag>"5def8ae2b20893a1c7f4dbaeb008f2f1"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>

View File

@ -5,7 +5,7 @@
<propstat>
<prop>
<getlastmodified>Dow, 01 Jan 2000 00:00:00 GMT</getlastmodified>
<getcontentlength>6689</getcontentlength>
<getcontentlength>6705</getcontentlength>
<resourcetype>
<collection/>
<calendar xmlns="urn:ietf:params:xml:ns:caldav"/>

View File

@ -5,7 +5,7 @@
<propstat>
<prop>
<getlastmodified>Dow, 01 Jan 2000 00:00:00 GMT</getlastmodified>
<getcontentlength>6689</getcontentlength>
<getcontentlength>6705</getcontentlength>
<getcontenttype>httpd/unix-directory</getcontenttype>
<creationdate>Dow, 01 Jan 2000 00:00:00 GMT</creationdate>
<resourcetype>

View File

@ -1,6 +1,6 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
ETag: "fe928ac898184555ef5bae3a700784ea"
ETag: "d857bd6617792951329353bf414d7e1b"
Content-Length: 963
Content-Type: text/xml; charset="utf-8"
@ -11,7 +11,7 @@ Content-Type: text/xml; charset="utf-8"
<propstat>
<prop>
<getlastmodified>Dow, 01 Jan 2000 00:00:00 GMT</getlastmodified>
<getcontentlength>6689</getcontentlength>
<getcontentlength>6705</getcontentlength>
<getcontenttype>httpd/unix-directory</getcontenttype>
<creationdate>Dow, 01 Jan 2000 00:00:00 GMT</creationdate>
<resourcetype>

View File

@ -5,7 +5,7 @@
<propstat>
<prop>
<getlastmodified>Dow, 01 Jan 2000 00:00:00 GMT</getlastmodified>
<getcontentlength>6689</getcontentlength>
<getcontentlength>6705</getcontentlength>
<getcontenttype>httpd/unix-directory</getcontenttype>
<creationdate>Dow, 01 Jan 2000 00:00:00 GMT</creationdate>
<resourcetype>
@ -34,12 +34,12 @@
<propstat>
<prop>
<getlastmodified>Dow, 01 Jan 2000 00:00:00 GMT</getlastmodified>
<getcontentlength>954</getcontentlength>
<getcontentlength>970</getcontentlength>
<getcontenttype>text/calendar</getcontenttype>
<creationdate>Dow, 01 Jan 2000 00:00:00 GMT</creationdate>
<resourcetype/>
<displayname/>
<getetag>"ce83cb40cb8bc72301ea2abd6849d8eb"</getetag>
<displayname>Private Event</displayname>
<getetag>"5def8ae2b20893a1c7f4dbaeb008f2f1"</getetag>
<getcontentlanguage>en_NZ</getcontentlanguage>
<supportedlock>
<lockentry>

View File

@ -5,7 +5,7 @@
<propstat>
<prop>
<getlastmodified>Dow, 01 Jan 2000 00:00:00 GMT</getlastmodified>
<getcontentlength>6689</getcontentlength>
<getcontentlength>6705</getcontentlength>
<getcontenttype>httpd/unix-directory</getcontenttype>
<creationdate>Dow, 01 Jan 2000 00:00:00 GMT</creationdate>
<resourcetype>

View File

@ -1,6 +1,6 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
Content-Length: 1780
Content-Length: 1810
Content-Type: text/calendar
BEGIN:VCALENDAR
@ -60,6 +60,7 @@ FREEBUSY:20070518T030000/PT1H45M
FREEBUSY:20070601T030000/PT1H45M
FREEBUSY:20070615T030000/PT1H45M
FREEBUSY:20070629T030000/PT1H45M
FREEBUSY:20061223T000000/PT2H
FREEBUSY:20061223T030000/PT2H
END:VFREEBUSY
END:VCALENDAR

View File

@ -1,6 +1,6 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
Content-Length: 1780
Content-Length: 1810
Content-Type: text/calendar
BEGIN:VCALENDAR
@ -60,6 +60,7 @@ FREEBUSY:20070518T030000/PT1H45M
FREEBUSY:20070601T030000/PT1H45M
FREEBUSY:20070615T030000/PT1H45M
FREEBUSY:20070629T030000/PT1H45M
FREEBUSY:20061223T000000/PT2H
FREEBUSY:20061223T030000/PT2H
END:VFREEBUSY
END:VCALENDAR

View File

@ -1,7 +1,7 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
ETag: "a0f54632904fd2933cbf6d8b0e302c70"
Content-Length: 5396
ETag: "22d2ec2ca3e08afc175c8adff74a499c"
Content-Length: 6643
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/xml; charset="utf-8"
@ -93,6 +93,52 @@ RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=10
END:DAYLIGHT
END:VTIMEZONE
END:VCALENDAR
</calendar-data>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
<response>
<href>http://mycaldav/caldav.php/user1/home/1906b3ca-4890-468a-9b58-1de74bf2c716.ics</href>
<propstat>
<prop>
<calendar-data xmlns="urn:ietf:params:xml:ns:caldav">BEGIN:VCALENDAR
PRODID:-//Mozilla Calendar//NONSGML Sunbird//EN
VERSION:2.0
BEGIN:VEVENT
CREATED:20061223T031415Z
LAST-MODIFIED:20061223T032305Z
DTSTAMP:20061223T032305Z
UID:1906b3ca-4890-468a-9b58-1de74bf2c716
SUMMARY:Private Event
PRIORITY:0
STATUS:CONFIRMED
CLASS:PRIVATE
DTSTART;TZID=/mozilla.org/20050126_1/Pacific/Auckland:20061223T130000
DTEND;TZID=/mozilla.org/20050126_1/Pacific/Auckland:20061223T150000
X-MOZ-LOCATIONPATH:1906b3ca-4890-468a-9b58-1de74bf2c716.ics
LOCATION:At a private location
DESCRIPTION:Private and Confirmed
END:VEVENT
BEGIN:VTIMEZONE
TZID:/mozilla.org/20050126_1/Pacific/Auckland
X-LIC-LOCATION:Pacific/Auckland
BEGIN:STANDARD
TZOFFSETFROM:+1300
TZOFFSETTO:+1200
TZNAME:NZST
DTSTART:19700315T030000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=3SU;BYMONTH=3
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:+1200
TZOFFSETTO:+1300
TZNAME:NZDT
DTSTART:19701004T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=10
END:DAYLIGHT
END:VTIMEZONE
END:VCALENDAR
</calendar-data>
</prop>
<status>HTTP/1.1 200 OK</status>