mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-30 16:00:25 +00:00
This allows us to have more complex test files where an action is taken, then we test something, then another action is taken, etc. Changes to test files are required so that URL is defined after all the required settings are set. Changes to the result files are either whitespace changes due to above logic changes, or printing out a SQL Result header before each result. I figured it was useful.
36 lines
872 B
Plaintext
36 lines
872 B
Plaintext
#
|
|
# Test for nonexistence of a lowercase property, which must treated
|
|
# cases-insensitively (hence EMAIL must not match)
|
|
#
|
|
# (only Jonny2 does not have EMAIL)
|
|
#
|
|
TYPE=REPORT
|
|
|
|
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/>
|
|
</DAV:prop>
|
|
<CARDDAV:filter test="anyof">
|
|
<CARDDAV:prop-filter name="email" test="anyof">
|
|
<CARDDAV:is-not-defined/>
|
|
</CARDDAV:prop-filter>
|
|
</CARDDAV:filter>
|
|
</CARDDAV:addressbook-query>
|
|
ENDDATA
|
|
|
|
REPLACE=_<getetag>"[0-9a-f]+"</getetag>_<getetag>some valid etag</getetag>_
|
|
REPLACE=/^REV:.*$/REV:date/
|
|
|
|
URL=http://regression.host/caldav.php/user5/addresses/
|