The regression tests on UID text-match now works.

This commit is contained in:
Andrew McMillan 2007-06-14 17:36:05 +01:00
parent e580fea226
commit 28061a1654
2 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,59 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
ETag: "06d6c0c2aaf949e8b6d470d4e04521d4"
Content-Length: 1456
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>http://mycaldav/caldav.php/user1/home/20061101T073004Z.ics</href>
<propstat>
<prop>
<calendar-data xmlns="urn:ietf:params:xml:ns:caldav">BEGIN:VCALENDAR
CALSCALE:GREGORIAN
PRODID:-//Ximian//NONSGML Evolution Calendar//EN
VERSION:2.0
BEGIN:VEVENT
UID:20061101T073000Z-10468-1000-1-7@ubu
DTSTAMP:20061101T073000Z
DTSTART;TZID=/softwarestudio.org/Olson_20011030_5/Pacific/Auckland:
20061101T100000
DTEND;TZID=/softwarestudio.org/Olson_20011030_5/Pacific/Auckland:
20061101T110000
SUMMARY:A Meeting
X-EVOLUTION-CALDAV-HREF:http:
//user1@mycaldav/caldav.php/user1/home/20061101T073004Z.ics
BEGIN:VALARM
X-EVOLUTION-ALARM-UID:20061101T073000Z-10480-1000-1-5@ubu
ACTION:DISPLAY
TRIGGER;VALUE=DURATION;RELATED=START:-PT15M
DESCRIPTION:A Meeting
END:VALARM
END:VEVENT
BEGIN:VTIMEZONE
TZID:/softwarestudio.org/Olson_20011030_5/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>
<getetag>"c3658901fd4689d4a1e1d6f08601ef4f"</getetag>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
</response>
</multistatus>

View File

@ -0,0 +1,28 @@
#
# Check for support of REPORT calendar-query with text-match on UID
#
TYPE=REPORT
URL=http://mycaldav/caldav.php/user1/home/
HEADER=User-agent: SpecTest REPORT
HEADER=Content-type: text/xml
HEAD
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<calendar-query xmlns="urn:ietf:params:xml:ns:caldav">
<D:prop xmlns:D="DAV:">
<D:getetag/>
<calendar-data/>
</D:prop>
<filter>
<comp-filter name="VCALENDAR">
<comp-filter name="VEVENT">
<prop-filter name="UID">
<text-match collation="i;octet">20061101T073000Z-10468-1000-1-7@ubu</text-match>
</prop-filter>
</comp-filter>
</comp-filter>
</filter>
</calendar-query>
ENDDATA