davical/testing/tests/carddav/2036-REPORT-addressbook-query.test
Andrew Ruthven d06c74b297 Add test secondary (or more) properties
This tests commit 1ef4c75 in AWL.
2021-01-24 00:02:31 +13:00

30 lines
713 B
Plaintext

#
# Request a REPORT
#
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">
<D:prop>
<D:getetag/>
<C:address-data/>
</D:prop>
<C:filter test="anyof">
<C:prop-filter name="EMAIL" test="anyof">
<C:text-match negate-condition="no" collation="i;unicode-casemap" match-type="equals">doe6@example.com</C:text-match>
</C:prop-filter>
</C:filter>
</C:addressbook-query>
ENDDATA
REPLACE=_<getetag>"[0-9a-f]+"</getetag>_<getetag>some valid etag</getetag>_
REPLACE=/^REV:.*$/REV:date/