davical/testing/tests/regression-suite/2500-is-defined-Setup-PUT-resources-1.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

40 lines
1015 B
Plaintext

#
# PUT a events into the database
#
TYPE=PUT
HEADER=User-Agent: DAViCal Testing/1.12.x
HEADER=Content-Type: text/calendar; charset=utf-8
AUTH=user1:user1
HEAD
BEGINDATA
BEGIN:VCALENDAR
PRODID:-//Puck Handcrafted VCAL//NONSGML Sunbird//EN
VERSION:2.0
BEGIN:VEVENT
SUMMARY:No DTEND, from PUT
DTSTART;VALUE=DATE:19971102
DTSTAMP:19970901T130000Z
UID:19970901T130000Z-123403@example.com
RRULE:FREQ=YEARLY
CATEGORIES:ANNIVERSARY,PERSONAL,SPECIAL OCCASION
CLASS:CONFIDENTIAL
TRANSP:TRANSPARENT
END:VEVENT
END:VCALENDAR
ENDDATA
URL=http://regression.host/caldav.php/user1/events/hand-crafted-vevent.ics
QUERY
SELECT caldav_data.user_no, caldav_data.dav_etag, caldav_type, logged_user,
uid, dtstamp, dtstart, dtstart_orig, dtend, dtend_orig, due, summary,
location, description, priority, class, transp, rrule, url,
percent_complete, status, caldav_data AS " CalDAV Data"
FROM caldav_data
JOIN calendar_item AS ci USING(dav_name)
WHERE caldav_data.dav_name = '/user1/events/hand-crafted-vevent.ics';
ENDQUERY