1.1 --- a/tests/test_person_invitation_refresh.sh Sat Sep 05 01:19:56 2015 +0200
1.2 +++ b/tests/test_person_invitation_refresh.sh Sat Sep 05 01:20:23 2015 +0200
1.3 @@ -98,3 +98,45 @@
1.4 ! grep -q 'METHOD:REQUEST' out5.tmp \
1.5 && echo "Success" \
1.6 || echo "Failed"
1.7 +
1.8 +# Test rescheduling in the outgoing handler.
1.9 +
1.10 +"$OUTGOING_SCRIPT" $ARGS < "$TEMPLATES/event-request-person-recurring-reschedule-instance.txt" 2>> $ERROR
1.11 +
1.12 + grep -q "^20141011T080000Z${TAB}20141011T090000Z" "$FBSENDERFILE" \
1.13 +&& ! grep -q "^20141010T080000Z${TAB}20141010T090000Z" "$FBSENDERFILE" \
1.14 +&& echo "Success" \
1.15 +|| echo "Failed"
1.16 +
1.17 +# Test another request from an attendee for the event details to be refreshed.
1.18 +
1.19 + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-refresh-person-recurring.txt" 2>> $ERROR \
1.20 +| "$SHOWMAIL" \
1.21 +> out6.tmp
1.22 +
1.23 + grep -q 'METHOD:REQUEST' out6.tmp \
1.24 +&& grep -q 'RECURRENCE-ID' out6.tmp \
1.25 +&& [ `grep 'BEGIN:VEVENT' out6.tmp | wc -l` = '2' ] \
1.26 +&& echo "Success" \
1.27 +|| echo "Failed"
1.28 +
1.29 +# Cancel a recurrence.
1.30 +
1.31 +"$OUTGOING_SCRIPT" $ARGS < "$TEMPLATES/event-cancel-person-recurring-rescheduled-instance.txt" 2>> $ERROR
1.32 +
1.33 + ! grep -q "^20141011T080000Z${TAB}20141011T090000Z" "$FBSENDERFILE" \
1.34 +&& echo "Success" \
1.35 +|| echo "Failed"
1.36 +
1.37 +# Test another request from an attendee for the event details to be refreshed.
1.38 +# The additional recurrence should now be absent.
1.39 +
1.40 + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-refresh-person-recurring.txt" 2>> $ERROR \
1.41 +| "$SHOWMAIL" \
1.42 +> out7.tmp
1.43 +
1.44 + grep -q 'METHOD:REQUEST' out7.tmp \
1.45 +&& ! grep -q 'RECURRENCE-ID' out7.tmp \
1.46 +&& [ `grep 'BEGIN:VEVENT' out7.tmp | wc -l` = '1' ] \
1.47 +&& echo "Success" \
1.48 +|| echo "Failed"