mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +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
905 B
Plaintext
36 lines
905 B
Plaintext
#
|
|
# Bind to an "external" URL (actually hosted on our test server).
|
|
#
|
|
|
|
TYPE=BIND
|
|
AUTH=admin:nimda
|
|
|
|
HEADER=User-Agent: Test external bind
|
|
HEADER=Content-Type: text/xml; charset="UTF-8"
|
|
HEAD
|
|
|
|
STATIC=mooncal.ics
|
|
|
|
BEGINDATA
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<bind xmlns="DAV:">
|
|
<segment>Moon</segment>
|
|
<href>http://regression/testfiles/mooncal.ics?lang=de&phases%5Bfull%5D=true&phases%5Bnew%5D=true&phases%5Bquarter%5D=true&phases%5Bdaily%5D=false&events%5Blunareclipse%5D=true&events%5Bsolareclipse%5D=true&events%5Bmoonlanding%5D=false&before=P6M&after=P2Y&zone=CET</href>
|
|
</bind>
|
|
ENDDATA
|
|
|
|
URL=http://regression.host/caldav.php/teamclient1/
|
|
|
|
QUERY
|
|
SELECT bind_id,
|
|
bound_source_id,
|
|
parent_container,
|
|
dav_name,
|
|
dav_displayname,
|
|
external_url
|
|
FROM dav_binding
|
|
WHERE external_url LIKE '%mooncal%'
|
|
ORDER BY bind_id
|
|
ENDQUERY
|
|
|