davical/testing/tests/binding/1014-PUT-bound-fail.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

57 lines
1.3 KiB
Plaintext

#
# Attempt to put an event into a bound location, where
# the binding does not confer write privileges
#
TYPE=PUT
HEADER=Content-Type: text/calendar; charset=utf-8
AUTH=user4:user4
HEAD
BEGINDATA
BEGIN:VCALENDAR
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Pacific/Auckland
X-LIC-LOCATION:Pacific/Auckland
BEGIN:DAYLIGHT
TZOFFSETFROM:+1200
TZOFFSETTO:+1300
TZNAME:NZDT
DTSTART:19700927T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=9
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+1300
TZOFFSETTO:+1200
TZNAME:NZST
DTSTART:19700405T030000
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
CREATED:20100318T044409Z
LAST-MODIFIED:20100318T044451Z
DTSTAMP:20100318T044451Z
UID:9f81cd8a-b1c2-4f72-9f12-1ddbddd69342
SUMMARY:Test adding an event to a bound collection
RRULE:FREQ=WEEKLY;INTERVAL=2
DTSTART;TZID=Pacific/Auckland:20100322T180000
DTEND;TZID=Pacific/Auckland:20100322T190000
LOCATION:Somewhere else
DESCRIPTION:This event is being added to a bound collection.
END:VEVENT
END:VCALENDAR
ENDDATA
URL=http://regression.host/caldav.php/user4/user1/thiswillnotwork.ics
QUERY
SELECT caldav_data.dav_name, caldav_data.dav_etag, dtstart, summary
FROM caldav_data JOIN calendar_item USING(dav_name)
WHERE caldav_data.dav_name ~ '/user1/.*willnotwork.ics'
ENDQUERY