davical/testing/tests/regression-suite/0561-iOS-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

25 lines
888 B
Plaintext

#
# Testing the encoding of arbitrary XML into the database
#
TYPE=PROPPATCH
HEAD
HEADER=DAVKit/4.0 (729); CalendarStore/4.0 (965); iCal/4.0 (1362); Mac OS X/10.6.1 (10B504)
HEADER=Content-Type: text/xml
HEADER=Prefer: return-minimal
#
#
BEGINDATA
<?xml version="1.0" encoding="utf-8" ?>
<x0:propertyupdate xmlns:x0="DAV:" xmlns:x1="http://apple.com/ns/ical/" xmlns:C1="urn:ietf:params:xml:ns:caldav" xmlns:D="urn:org:davical"><x0:set><x0:prop><C1:schedule-default-calendar-URL><x0:href>/caldav.php/user1/home/</x0:href></C1:schedule-default-calendar-URL><x1:calendar-order>1</x1:calendar-order>
<D:outer><D:middle><D:inner>inside</D:inner><D:inner>inside2</D:inner></D:middle></D:outer>
</x0:prop></x0:set></x0:propertyupdate>
ENDDATA
URL=http://regression.host/caldav.php/user1/home/
QUERY
SELECT property_name, property_value FROM property WHERE dav_name = '/user1/home/'
ENDQUERY