davical/testing/tests/regression-suite/0559-iOS-REPORT.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

46 lines
1.0 KiB
Plaintext

#
# Testing with a process similar to iPhone 5
#
TYPE=REPORT
HEAD
AUTH=user1:user1
HEADER=User-Agent: iOS/10.7.2 (11C35) dataaccessd/1.0
HEADER=Content-Type: text/xml
HEADER=Depth: 1
#
BEGINDATA
<?xml version="1.0" encoding="UTF-8"?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
<A:prop xmlns:A="DAV:">
<A:getetag/>
<A:getcontenttype/>
</A:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20110922T000000Z"/>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
ENDDATA
URL=http://regression.host/caldav.php/user1/home/
#
QUERY
SELECT caldav_data.dav_name, dtstart, rrule
FROM calendar_item JOIN caldav_data USING(dav_id)
WHERE caldav_data.dav_name ~ '^/user1/home/'
AND caldav_data.caldav_type = 'VEVENT'
AND (rrule IS NOT NULL OR dtstart IS NULL
OR ( (dtend IS NULL AND dtstart > '20110922T000000Z')
OR dtend > '20110922T000000Z'
)
)
ORDER BY dav_id
ENDQUERY