1.1 --- a/tests/test_person_invitation_decline_instance.sh Tue Apr 19 19:05:13 2016 +0200
1.2 +++ b/tests/test_person_invitation_decline_instance.sh Tue Apr 19 20:57:33 2016 +0200
1.3 @@ -181,3 +181,65 @@
1.4 && grep -q 'event26@example.com' "out6R.tmp" \
1.5 && echo "Success" \
1.6 || echo "Failed"
1.7 +
1.8 +# Test recurrence acceptance in the outgoing handler.
1.9 +
1.10 + "$ACCEPT_SCRIPT" $ACCEPT_ARGS "$USER" "20141011T100000" "20141011T110000" "event26@example.com" "20141011T100000" 2>> $ERROR \
1.11 +| tee out7.tmp \
1.12 +| "$OUTGOING_SCRIPT" $ARGS 2>> $ERROR
1.13 +
1.14 + "$LIST_SCRIPT" $LIST_ARGS "$USER" "freebusy" \
1.15 +> out7s.tmp
1.16 +
1.17 + [ `grep "event26@example.com" "out7s.tmp" | wc -l` = '2' ] \
1.18 +&& grep -q "^20141011T080000Z${TAB}20141011T090000Z" "out7s.tmp" \
1.19 +&& echo "Success" \
1.20 +|| echo "Failed"
1.21 +
1.22 +# There should still be a recurrence created by the user.
1.23 +
1.24 + "$LIST_SCRIPT" $LIST_ARGS "$USER" "object" "event26@example.com" \
1.25 +> out7O.tmp
1.26 +
1.27 + "$LIST_SCRIPT" $LIST_ARGS "$USER" "recurrence" "event26@example.com" "20141011T100000" \
1.28 +> out7R.tmp
1.29 +
1.30 + grep -q 'event26@example.com' "out7O.tmp" \
1.31 +&& grep -q 'event26@example.com' "out7R.tmp" \
1.32 +&& echo "Success" \
1.33 +|| echo "Failed"
1.34 +
1.35 +# Test acceptance in the incoming handler.
1.36 +
1.37 + "$PERSON_SCRIPT" $ARGS < out7.tmp 2>> $ERROR \
1.38 +| "$SHOWMAIL" \
1.39 +> out8.tmp
1.40 +
1.41 + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "freebusy" \
1.42 +> out8f.tmp
1.43 +
1.44 + [ `grep "event26@example.com" "out8f.tmp" | wc -l` = '2' ] \
1.45 +&& grep -q "^20141011T080000Z${TAB}20141011T090000Z" "out8f.tmp" \
1.46 +&& echo "Success" \
1.47 +|| echo "Failed"
1.48 +
1.49 + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "freebusy_other" "$USER" \
1.50 +> out8o.tmp
1.51 +
1.52 + [ `grep "event26@example.com" "out8o.tmp" | wc -l` = '2' ] \
1.53 +&& grep -q "^20141011T080000Z${TAB}20141011T090000Z" "out8o.tmp" \
1.54 +&& echo "Success" \
1.55 +|| echo "Failed"
1.56 +
1.57 +# There should be a recurrence created by the user.
1.58 +
1.59 + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "object" "event26@example.com" \
1.60 +> out8O.tmp
1.61 +
1.62 + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "recurrence" "event26@example.com" "20141011T100000" \
1.63 +> out8R.tmp
1.64 +
1.65 + grep -q 'event26@example.com' "out8O.tmp" \
1.66 +&& grep -q 'event26@example.com' "out8R.tmp" \
1.67 +&& echo "Success" \
1.68 +|| echo "Failed"