davical/testing/tests/regression-suite/0509-iCal-PROPPATCH.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

30 lines
631 B
Plaintext

#
# iCal does a PROPPATCH to change the name of a calendar
#
TYPE=PROPPATCH
HEADER=Content-Type: text/xml
HEADER=User-Agent: DAVKit/2.0 (10.5.1; wrbt) iCal 3.0.1
HEAD
# Reformatted for readability
BEGINDATA
<?xml version="1.0" encoding="UTF-8" ?>
<x0:propertyupdate xmlns:x0="DAV:">
<x0:set>
<x0:prop>
<x0:displayname>iCal Calendar</x0:displayname>
</x0:prop>
</x0:set>
</x0:propertyupdate>
ENDDATA
URL=http://regression.host/caldav.php/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/
QUERY
SELECT dav_displayname, is_calendar
FROM collection
WHERE dav_name = '/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/';
ENDQUERY