davical/testing/tests/regression-suite/2701-Lots-of-dates.test
Andrew Ruthven 7c47658bee Make the curl and SQL requests when we see them
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.
2024-04-01 22:57:10 +13:00

34 lines
721 B
Plaintext

# Ensure we test various dates past and future.
SCRIPT_DIR=tests/regression-suite
SCRIPT=./2701-generate-date-tests.pl
TYPE=MKCOL
HEADER=Content-Type: text/xml
HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<mkcol xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
<set>
<prop>
<resourcetype>
<collection/>
<C:calendar/>
</resourcetype>
<displayname>Past and Future dates</displayname>
</prop>
</set>
</mkcol>
ENDDATA
URL=http://regression.host/caldav.php/user1/past-and-future
QUERY
SELECT user_no, parent_container, dav_displayname,
is_calendar, public_events_only, is_addressbook
FROM collection
WHERE dav_name ~ '/user1/past-and-future';
ENDQUERY