mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-28 00:43:37 +00:00
Merge branch 'awl-fix_abookquery_paramtextmatch'
This commit is contained in:
commit
bd075897bb
1146
testing/tests/carddav/2042-REPORT-addressbook-query.result
Normal file
1146
testing/tests/carddav/2042-REPORT-addressbook-query.result
Normal file
File diff suppressed because it is too large
Load Diff
36
testing/tests/carddav/2042-REPORT-addressbook-query.test
Normal file
36
testing/tests/carddav/2042-REPORT-addressbook-query.test
Normal file
@ -0,0 +1,36 @@
|
||||
#
|
||||
# Request a REPORT
|
||||
#
|
||||
# param-filter should filter on parameter value. With a negated
|
||||
# null value we shouldn't return any vCards with the prop value
|
||||
# but with param value.
|
||||
#
|
||||
TYPE=REPORT
|
||||
URL=http://regression.host/caldav.php/user1/addressbook/
|
||||
|
||||
HEADER=Accept: text/xml,application/xml
|
||||
HEADER=Content-Type: text/xml
|
||||
HEADER=Depth: 1
|
||||
|
||||
# HEAD
|
||||
|
||||
BEGINDATA
|
||||
<?xml version="1.0"?>
|
||||
<C:addressbook-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:carddav" xmlns:CS="http://calendarserver.org/ns/">
|
||||
<D:prop>
|
||||
<D:getetag/>
|
||||
<C:address-data/>
|
||||
</D:prop>
|
||||
<C:filter>
|
||||
<C:prop-filter name="TEL">
|
||||
<C:param-filter name="TYPE">
|
||||
<C:text-match name="TYPE" negate-condition="yes"></C:text-match>
|
||||
</C:param-filter>
|
||||
</C:prop-filter>
|
||||
</C:filter>
|
||||
</C:addressbook-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