mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Test to tickle bug #232.
This commit is contained in:
parent
dcd240785d
commit
31c97fb187
47
testing/tests/carddav/2100-REPORT-vcard-text_match.test
Normal file
47
testing/tests/carddav/2100-REPORT-vcard-text_match.test
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
#
|
||||||
|
# Request a REPORT
|
||||||
|
#
|
||||||
|
# param-filter with text-match should only return events where Ian Winsleigh
|
||||||
|
# is invited.
|
||||||
|
#
|
||||||
|
# Bug report: https://gitlab.com/davical-project/davical/-/issues/232
|
||||||
|
#
|
||||||
|
# Looking for a number of events, at least: /user1/anotherone/20061009T214137Z-5718-1001-1-1dolmein.ics
|
||||||
|
#
|
||||||
|
TYPE=REPORT
|
||||||
|
URL=http://regression.host/caldav.php/user1/anotherone/
|
||||||
|
|
||||||
|
HEADER=Accept: text/xml,application/xml
|
||||||
|
HEADER=Content-Type: text/xml
|
||||||
|
HEADER=Depth: 1
|
||||||
|
|
||||||
|
# HEAD
|
||||||
|
|
||||||
|
BEGINDATA
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:CS="http://calendarserver.org/ns/">
|
||||||
|
<D:prop>
|
||||||
|
<D:getetag/>
|
||||||
|
<C:calendar-data>
|
||||||
|
<C:comp name="VCALENDAR"/>
|
||||||
|
</C:calendar-data>
|
||||||
|
</D:prop>
|
||||||
|
<C:filter>
|
||||||
|
<C:comp-filter name="VCALENDAR">
|
||||||
|
<C:comp-filter name="VEVENT">
|
||||||
|
<C:prop-filter name="ATTENDEE">
|
||||||
|
<C:param-filter name="CN">
|
||||||
|
<C:text-match collation="i;ascii-casemap">
|
||||||
|
Ian Winsleigh
|
||||||
|
</C:text-match>
|
||||||
|
</C:param-filter>
|
||||||
|
</C:prop-filter>
|
||||||
|
</C:comp-filter>
|
||||||
|
</C:comp-filter>
|
||||||
|
</C:filter>
|
||||||
|
</C:calendar-query>
|
||||||
|
ENDDATA
|
||||||
|
|
||||||
|
REPLACE=_<getetag>"[0-9a-f]+"</getetag>_<getetag>some valid etag</getetag>_
|
||||||
|
REPLACE=/^REV:.*$/REV:date/
|
||||||
|
REPLACE=/^UID:.*$/UID:a nice UID/
|
||||||
Loading…
x
Reference in New Issue
Block a user