1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/templates/event-cancel-person-recurring-rescheduled-instance.txt Sat Sep 05 01:20:23 2015 +0200
1.3 @@ -0,0 +1,37 @@
1.4 +Content-Type: multipart/alternative; boundary="===============0047278175=="
1.5 +MIME-Version: 1.0
1.6 +From: paul.boddie@example.com
1.7 +To: vincent.vole@example.com
1.8 +Subject: Cancellation!
1.9 +
1.10 +Cancel an instance for vincent.vole and paul.boddie.
1.11 +
1.12 +--===============0047278175==
1.13 +Content-Type: text/plain; charset="us-ascii"
1.14 +MIME-Version: 1.0
1.15 +Content-Transfer-Encoding: 7bit
1.16 +
1.17 +This message contains an event.
1.18 +--===============0047278175==
1.19 +MIME-Version: 1.0
1.20 +Content-Transfer-Encoding: 7bit
1.21 +Content-Type: text/calendar; charset="us-ascii"; method="CANCEL"
1.22 +
1.23 +BEGIN:VCALENDAR
1.24 +PRODID:-//imip-agent/test//EN
1.25 +METHOD:CANCEL
1.26 +VERSION:2.0
1.27 +BEGIN:VEVENT
1.28 +ORGANIZER:mailto:paul.boddie@example.com
1.29 +ATTENDEE;RSVP=TRUE:mailto:vincent.vole@example.com
1.30 +ATTENDEE;RSVP=TRUE:mailto:paul.boddie@example.com
1.31 +DTSTAMP:20141009T182400Z
1.32 +DTSTART;TZID=Europe/Oslo:20141010T100000
1.33 +DTEND;TZID=Europe/Oslo:20141010T110000
1.34 +SUMMARY:Recurring event
1.35 +UID:event8@example.com
1.36 +RECURRENCE-ID;TZID=Europe/Oslo:20141010T100000
1.37 +END:VEVENT
1.38 +END:VCALENDAR
1.39 +
1.40 +--===============0047278175==--
2.1 --- a/tests/test_person_invitation_refresh.sh Sat Sep 05 01:19:56 2015 +0200
2.2 +++ b/tests/test_person_invitation_refresh.sh Sat Sep 05 01:20:23 2015 +0200
2.3 @@ -98,3 +98,45 @@
2.4 ! grep -q 'METHOD:REQUEST' out5.tmp \
2.5 && echo "Success" \
2.6 || echo "Failed"
2.7 +
2.8 +# Test rescheduling in the outgoing handler.
2.9 +
2.10 +"$OUTGOING_SCRIPT" $ARGS < "$TEMPLATES/event-request-person-recurring-reschedule-instance.txt" 2>> $ERROR
2.11 +
2.12 + grep -q "^20141011T080000Z${TAB}20141011T090000Z" "$FBSENDERFILE" \
2.13 +&& ! grep -q "^20141010T080000Z${TAB}20141010T090000Z" "$FBSENDERFILE" \
2.14 +&& echo "Success" \
2.15 +|| echo "Failed"
2.16 +
2.17 +# Test another request from an attendee for the event details to be refreshed.
2.18 +
2.19 + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-refresh-person-recurring.txt" 2>> $ERROR \
2.20 +| "$SHOWMAIL" \
2.21 +> out6.tmp
2.22 +
2.23 + grep -q 'METHOD:REQUEST' out6.tmp \
2.24 +&& grep -q 'RECURRENCE-ID' out6.tmp \
2.25 +&& [ `grep 'BEGIN:VEVENT' out6.tmp | wc -l` = '2' ] \
2.26 +&& echo "Success" \
2.27 +|| echo "Failed"
2.28 +
2.29 +# Cancel a recurrence.
2.30 +
2.31 +"$OUTGOING_SCRIPT" $ARGS < "$TEMPLATES/event-cancel-person-recurring-rescheduled-instance.txt" 2>> $ERROR
2.32 +
2.33 + ! grep -q "^20141011T080000Z${TAB}20141011T090000Z" "$FBSENDERFILE" \
2.34 +&& echo "Success" \
2.35 +|| echo "Failed"
2.36 +
2.37 +# Test another request from an attendee for the event details to be refreshed.
2.38 +# The additional recurrence should now be absent.
2.39 +
2.40 + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-refresh-person-recurring.txt" 2>> $ERROR \
2.41 +| "$SHOWMAIL" \
2.42 +> out7.tmp
2.43 +
2.44 + grep -q 'METHOD:REQUEST' out7.tmp \
2.45 +&& ! grep -q 'RECURRENCE-ID' out7.tmp \
2.46 +&& [ `grep 'BEGIN:VEVENT' out7.tmp | wc -l` = '1' ] \
2.47 +&& echo "Success" \
2.48 +|| echo "Failed"