1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/templates/event-cancel-recurring-instance.txt Mon May 18 23:41:56 2015 +0200
1.3 @@ -0,0 +1,34 @@
1.4 +Content-Type: multipart/alternative; boundary="===============0047278175=="
1.5 +MIME-Version: 1.0
1.6 +From: paul.boddie@example.com
1.7 +To: resource-room-confroom@example.com
1.8 +Subject: Invitation!
1.9 +
1.10 +--===============0047278175==
1.11 +Content-Type: text/plain; charset="us-ascii"
1.12 +MIME-Version: 1.0
1.13 +Content-Transfer-Encoding: 7bit
1.14 +
1.15 +This message contains an event.
1.16 +--===============0047278175==
1.17 +MIME-Version: 1.0
1.18 +Content-Transfer-Encoding: 7bit
1.19 +Content-Type: text/calendar; charset="us-ascii"; method="CANCEL"
1.20 +
1.21 +BEGIN:VCALENDAR
1.22 +PRODID:-//imip-agent/test//EN
1.23 +METHOD:CANCEL
1.24 +VERSION:2.0
1.25 +BEGIN:VEVENT
1.26 +ORGANIZER:mailto:paul.boddie@example.com
1.27 +ATTENDEE;RSVP=TRUE:mailto:resource-room-confroom@example.com
1.28 +DTSTAMP:20141009T182400Z
1.29 +DTSTART;TZID=Europe/Oslo:20141114T100000
1.30 +DTEND;TZID=Europe/Oslo:20141114T110000
1.31 +SUMMARY:Recurring event
1.32 +UID:event3@example.com
1.33 +RECURRENCE-ID:20141114T090000Z
1.34 +END:VEVENT
1.35 +END:VCALENDAR
1.36 +
1.37 +--===============0047278175==--
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/tests/templates/event-cancel-recurring.txt Mon May 18 23:41:56 2015 +0200
2.3 @@ -0,0 +1,33 @@
2.4 +Content-Type: multipart/alternative; boundary="===============0047278175=="
2.5 +MIME-Version: 1.0
2.6 +From: paul.boddie@example.com
2.7 +To: resource-room-confroom@example.com
2.8 +Subject: Invitation!
2.9 +
2.10 +--===============0047278175==
2.11 +Content-Type: text/plain; charset="us-ascii"
2.12 +MIME-Version: 1.0
2.13 +Content-Transfer-Encoding: 7bit
2.14 +
2.15 +This message contains an event.
2.16 +--===============0047278175==
2.17 +MIME-Version: 1.0
2.18 +Content-Transfer-Encoding: 7bit
2.19 +Content-Type: text/calendar; charset="us-ascii"; method="CANCEL"
2.20 +
2.21 +BEGIN:VCALENDAR
2.22 +PRODID:-//imip-agent/test//EN
2.23 +METHOD:CANCEL
2.24 +VERSION:2.0
2.25 +BEGIN:VEVENT
2.26 +ORGANIZER:mailto:paul.boddie@example.com
2.27 +ATTENDEE;RSVP=TRUE:mailto:resource-room-confroom@example.com
2.28 +DTSTAMP:20141009T182400Z
2.29 +DTSTART;TZID=Europe/Oslo:20141010T100000
2.30 +DTEND;TZID=Europe/Oslo:20141010T110000
2.31 +SUMMARY:Recurring event
2.32 +UID:event3@example.com
2.33 +END:VEVENT
2.34 +END:VCALENDAR
2.35 +
2.36 +--===============0047278175==--
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/tests/templates/event-request-recurring-day.txt Mon May 18 23:41:56 2015 +0200
3.3 @@ -0,0 +1,34 @@
3.4 +Content-Type: multipart/alternative; boundary="===============0047278175=="
3.5 +MIME-Version: 1.0
3.6 +From: paul.boddie@example.com
3.7 +To: resource-room-confroom@example.com
3.8 +Subject: Invitation!
3.9 +
3.10 +--===============0047278175==
3.11 +Content-Type: text/plain; charset="us-ascii"
3.12 +MIME-Version: 1.0
3.13 +Content-Transfer-Encoding: 7bit
3.14 +
3.15 +This message contains an event.
3.16 +--===============0047278175==
3.17 +MIME-Version: 1.0
3.18 +Content-Transfer-Encoding: 7bit
3.19 +Content-Type: text/calendar; charset="us-ascii"; method="REQUEST"
3.20 +
3.21 +BEGIN:VCALENDAR
3.22 +PRODID:-//imip-agent/test//EN
3.23 +METHOD:REQUEST
3.24 +VERSION:2.0
3.25 +BEGIN:VEVENT
3.26 +ORGANIZER:mailto:paul.boddie@example.com
3.27 +ATTENDEE;RSVP=TRUE:mailto:resource-room-confroom@example.com
3.28 +DTSTAMP:20141009T182400Z
3.29 +DTSTART;TZID=Europe/Oslo:20141010
3.30 +DTEND;TZID=Europe/Oslo:20141011
3.31 +RRULE:FREQ=MONTHLY;BYDAY=2FR;COUNT=3
3.32 +SUMMARY:Recurring event
3.33 +UID:event4@example.com
3.34 +END:VEVENT
3.35 +END:VCALENDAR
3.36 +
3.37 +--===============0047278175==--
4.1 --- a/tests/test_resource_invitation.sh Mon May 18 20:16:14 2015 +0200
4.2 +++ b/tests/test_resource_invitation.sh Mon May 18 23:41:56 2015 +0200
4.3 @@ -109,3 +109,47 @@
4.4 && grep -q 'FREEBUSY;FBTYPE=BUSY:20141212T090000Z/20141212T100000Z' out9.tmp \
4.5 && echo "Success" \
4.6 || echo "Failed"
4.7 +
4.8 + $RESOURCE_SCRIPT $ARGS < $TEMPLATES/event-cancel-recurring-instance.txt 2> /dev/null
4.9 +echo "Cancel..."
4.10 +
4.11 + $RESOURCE_SCRIPT $ARGS < $TEMPLATES/fb-request-all.txt 2> /dev/null \
4.12 +| $SHOWMAIL \
4.13 +> out10.tmp
4.14 +
4.15 + grep -q 'METHOD:REPLY' out10.tmp \
4.16 +&& [ `grep 'FREEBUSY;FBTYPE=BUSY' out10.tmp | wc -l` = '2' ] \
4.17 +&& grep -q -v 'FREEBUSY;FBTYPE=BUSY:20141114T090000Z/20141114T100000Z' out10.tmp \
4.18 +&& echo "Success" \
4.19 +|| echo "Failed"
4.20 +
4.21 + $RESOURCE_SCRIPT $ARGS < $TEMPLATES/event-cancel-recurring.txt 2> /dev/null
4.22 +echo "Cancel..."
4.23 +
4.24 + $RESOURCE_SCRIPT $ARGS < $TEMPLATES/fb-request-all.txt 2> /dev/null \
4.25 +| $SHOWMAIL \
4.26 +> out11.tmp
4.27 +
4.28 + grep -q 'METHOD:REPLY' out11.tmp \
4.29 +&& grep -q -v 'FREEBUSY' out11.tmp \
4.30 +&& echo "Success" \
4.31 +|| echo "Failed"
4.32 +
4.33 + $RESOURCE_SCRIPT $ARGS < $TEMPLATES/event-request-recurring-day.txt 2> /dev/null \
4.34 +| $SHOWMAIL \
4.35 +> out12.tmp
4.36 +
4.37 + grep -q 'METHOD:REPLY' out12.tmp \
4.38 +&& grep -q 'ATTENDEE;PARTSTAT=ACCEPTED' out12.tmp \
4.39 +&& echo "Success" \
4.40 +|| echo "Failed"
4.41 +
4.42 + $RESOURCE_SCRIPT $ARGS < $TEMPLATES/fb-request-all.txt 2> /dev/null \
4.43 +| $SHOWMAIL \
4.44 +> out13.tmp
4.45 +
4.46 + grep -q 'METHOD:REPLY' out13.tmp \
4.47 +&& [ `grep 'FREEBUSY;FBTYPE=BUSY' out13.tmp | wc -l` = '3' ] \
4.48 +&& grep -q 'FREEBUSY;FBTYPE=BUSY:20141211T230000Z/20141212T230000Z' out13.tmp \
4.49 +&& echo "Success" \
4.50 +|| echo "Failed"