davical/testing/tests/carddav/2011-PROPFIND.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

32 lines
637 B
Plaintext

#
# PROPFIND on addressbook resource
# Depth 1 this time, and looking for getetag
#
TYPE=PROPFIND
HEADER=User-Agent: DAViCalTester/public
HEADER=Content-Type: text/xml
HEADER=Depth: 1
# HEAD
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<propfind xmlns="DAV:">
<prop>
<getetag/>
<getlastmodified/>
</prop>
</propfind>
ENDDATA
REPLACE=/<get.tag>"[0-9a-f]{32}"<.get.tag>/<get?tag>"deadbeefcafef00ddeadbeefcafefeed"<.get?tag>/
URL=http://regression.host/caldav.php/user1/addressbook/
QUERY
SELECT count(1)
FROM collection LEFT JOIN caldav_data USING(collection_id)
WHERE collection.dav_name = '/user1/addressbook/'
ENDQUERY