1.1 --- a/tests/test_person_invitation_refresh.sh Sat Oct 17 19:08:30 2015 +0200
1.2 +++ b/tests/test_person_invitation_refresh.sh Sat Oct 17 19:15:22 2015 +0200
1.3 @@ -113,6 +113,7 @@
1.4 # Test another request from an attendee for the event details to be refreshed.
1.5
1.6 "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-refresh-person-recurring.txt" 2>> $ERROR \
1.7 +| tee out6r.tmp \
1.8 | "$SHOWMAIL" \
1.9 > out6.tmp
1.10
1.11 @@ -124,7 +125,7 @@
1.12
1.13 # Process the resulting message.
1.14
1.15 - "$PERSON_SCRIPT" $ARGS < out6.tmp 2>> $ERROR \
1.16 + "$PERSON_SCRIPT" $ARGS < out6r.tmp 2>> $ERROR \
1.17 | "$SHOWMAIL" \
1.18 > out6a.tmp
1.19
1.20 @@ -211,3 +212,27 @@
1.21 grep -q "^20141010T080000Z${TAB}20141010T090000Z" "$FBFILE" \
1.22 && echo "Success" \
1.23 || echo "Failed"
1.24 +
1.25 +# Test yet another request from an attendee for the event details to be refreshed.
1.26 +
1.27 + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-refresh-person-recurring.txt" 2>> $ERROR \
1.28 +| tee out10r.tmp \
1.29 +| "$SHOWMAIL" \
1.30 +> out10.tmp
1.31 +
1.32 + grep -q 'METHOD:REQUEST' out10.tmp \
1.33 +&& grep -q 'RECURRENCE-ID' out10.tmp \
1.34 +&& [ `grep 'BEGIN:VEVENT' out10.tmp | wc -l` = '2' ] \
1.35 +&& echo "Success" \
1.36 +|| echo "Failed"
1.37 +
1.38 +# Process the resulting message.
1.39 +
1.40 + "$PERSON_SCRIPT" $ARGS < out10r.tmp 2>> $ERROR \
1.41 +| "$SHOWMAIL" \
1.42 +> out11.tmp
1.43 +
1.44 + [ -e "$STORE/$USER/objects/event8@example.com" ] \
1.45 +&& [ -e "$STORE/$USER/recurrences/event8@example.com/20141010T080000Z" ] \
1.46 +&& echo "Success" \
1.47 +|| echo "Failed"