davical/testing/tests/carddav/2052-REPORT-carddavclient-HasEmailAndIMP.test

38 lines
1006 B
Plaintext

#
# Request a REPORT for two properties, both of which must be defined
#
# (Jonny0 and Jonny1 have only one of them and must not be returned)
#
TYPE=REPORT
URL=http://regression.host/caldav.php/user5/addresses/
HEADER=Accept: text/xml,application/xml
HEADER=Content-Type: text/xml
HEADER=Depth: 1
AUTH=user5:user5
# HEAD
BEGINDATA
<?xml version="1.0"?>
<CARDDAV:addressbook-query xmlns:DAV="DAV:" xmlns:CARDDAV="urn:ietf:params:xml:ns:carddav" xmlns:CS="http://calendarserver.org/ns/">
<DAV:prop>
<DAV:getetag/>
<CARDDAV:address-data>
<CARDDAV:prop name="VERSION"/>
<CARDDAV:prop name="FN"/>
<CARDDAV:prop name="EMAIL"/>
<CARDDAV:prop name="IMPP"/>
</CARDDAV:address-data>
</DAV:prop>
<CARDDAV:filter test="allof">
<CARDDAV:prop-filter name="EMAIL" test="anyof"/>
<CARDDAV:prop-filter name="IMPP" test="anyof"/>
</CARDDAV:filter>
</CARDDAV:addressbook-query>
ENDDATA
REPLACE=_<getetag>"[0-9a-f]+"</getetag>_<getetag>some valid etag</getetag>_
REPLACE=/^REV:.*$/REV:date/