davical/testing/tests/binding/1029-PUT-subcalendar.test
2010-09-02 21:06:58 +12:00

51 lines
1.4 KiB
Plaintext

#
# Attempt to put an event into a bound location, where
# the binding does confer write privileges
#
TYPE=PUT
URL=http://regression.host/caldav.php/user4/base/calendar/anothergoodleopard.ics
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:VEVENT
CREATED:20100319T103247Z
LAST-MODIFIED:20100319T105620Z
DTSTAMP:20100319T105620Z
UID:70399cd7-50a4-4be4-a665-af593e19a7fd
SUMMARY:An invited event. Black tie with pink polka dots is essential. D
o not bring a leopard. Any leopards which do attend will be forcibly chai
ned to a nearby fence.
ORGANIZER;RSVP=TRUE;PARTSTAT=ACCEPTED;ROLE=CHAIR:mailto:user1@example.net
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user2
@example.net
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user3
@example.net
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user4
@example.net
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user5
@example.net
DTSTART:20100322T160000
DTEND:20100322T170000
X-MOZ-GENERATION:3
TRANSP:OPAQUE
X-MOZ-SEND-INVITATIONS:TRUE
SEQUENCE:1
END:VEVENT
END:VCALENDAR
ENDDATA
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 ~ '/user4/base/calendar/'
ENDQUERY