davical/testing/tests/regression-suite/0841-Spec-PROPPATCH-2.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

44 lines
1.1 KiB
Plaintext

#
# Check for support of PROPPATCH method
#
# Convert the collection back to a calendar, change the displayname
# again, set the calendar as transparent and remove the arbitrary property.
#
TYPE=PROPPATCH
HEADER=User-agent: SpecTest PROPPATCH
HEADER=Content-type: text/xml
HEAD
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<propertyupdate xmlns="DAV:"
xmlns:C="urn:ietf:params:xml:ns:caldav">
<set>
<prop>
<resourcetype>
<collection/>
<C:calendar/>
</resourcetype>
<displayname>User One's Transparent Calendar</displayname>
<C:schedule-calendar-transp>
<C:transparent/>
</C:schedule-calendar-transp>
</prop>
</set>
<remove>
<prop>
<arbitrary xmlns="urn:mcmillan:bogus:xml:ns:davical"/>
</prop>
</remove>
</propertyupdate>
ENDDATA
URL=http://regression.host/caldav.php/user1/home/
QUERY
SELECT dav_displayname, is_calendar, is_addressbook, resourcetypes,
modified > (current_timestamp - '5 minutes'::interval) AS changed_last_5m,
schedule_transp
FROM collection WHERE dav_name = '/user1/home/';
ENDQUERY