Remove chance of unset variable warning.
[davical.git] / testing / tests / binding / 1013-PUT-bound-succeed.test
blobb720532c849eea9ebe4a19e965d6a246f8b95ccf
2 # Attempt to put an event into a bound location, where
3 # the binding does confer write privileges
5 TYPE=PUT
6 URL=http://regression.host/caldav.php/user4/user2/thiswillworkfine.ics
8 HEADER=Content-Type: text/calendar; charset=utf-8
9 AUTH=user4:user4
10 HEAD
12 BEGINDATA
13 BEGIN:VCALENDAR
14 PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
15 VERSION:2.0
16 BEGIN:VTIMEZONE
17 TZID:Pacific/Auckland
18 X-LIC-LOCATION:Pacific/Auckland
19 BEGIN:DAYLIGHT
20 TZOFFSETFROM:+1200
21 TZOFFSETTO:+1300
22 TZNAME:NZDT
23 DTSTART:19700927T020000
24 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=9
25 END:DAYLIGHT
26 BEGIN:STANDARD
27 TZOFFSETFROM:+1300
28 TZOFFSETTO:+1200
29 TZNAME:NZST
30 DTSTART:19700405T030000
31 RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4
32 END:STANDARD
33 END:VTIMEZONE
34 BEGIN:VEVENT
35 CREATED:20100318T044409Z
36 LAST-MODIFIED:20100318T044451Z
37 DTSTAMP:20100318T044451Z
38 UID:9f81cd8a-b1c2-4f72-9f12-1ddbddd69342
39 SUMMARY:Test adding an event to a bound collection
40 RRULE:FREQ=WEEKLY;INTERVAL=2
41 DTSTART;TZID=Pacific/Auckland:20100322T180000
42 DTEND;TZID=Pacific/Auckland:20100322T190000
43 LOCATION:Somewhere else
44 DESCRIPTION:This event is being added to a bound collection.
45 END:VEVENT
46 END:VCALENDAR
47 ENDDATA
49 QUERY
50 SELECT caldav_data.dav_name, caldav_data.dav_etag, dtstart, summary
51   FROM caldav_data JOIN calendar_item USING(dav_name)
52   WHERE caldav_data.dav_name ~ '/user2/.*thiswill'
53 ENDQUERY