1.1 --- a/tests/test_person_invitation_decline_instance.sh Tue Apr 19 18:51:53 2016 +0200
1.2 +++ b/tests/test_person_invitation_decline_instance.sh Tue Apr 19 19:05:13 2016 +0200
1.3 @@ -43,6 +43,15 @@
1.4 && echo "Success" \
1.5 || echo "Failed"
1.6
1.7 +# There should be an event created by the sender.
1.8 +
1.9 + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "object" "event26@example.com" \
1.10 +> out1O.tmp
1.11 +
1.12 + grep -q 'event26@example.com' "out1O.tmp" \
1.13 +&& echo "Success" \
1.14 +|| echo "Failed"
1.15 +
1.16 # Test registration in the incoming handler for the recipient.
1.17
1.18 "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-request-person-recurring-rdate.txt" 2>> $ERROR \
1.19 @@ -67,6 +76,15 @@
1.20 && echo "Success" \
1.21 || echo "Failed"
1.22
1.23 +# There should be an event created by the sender.
1.24 +
1.25 + "$LIST_SCRIPT" $LIST_ARGS "$USER" "object" "event26@example.com" \
1.26 +> out2O.tmp
1.27 +
1.28 + grep -q 'event26@example.com' "out2O.tmp" \
1.29 +&& echo "Success" \
1.30 +|| echo "Failed"
1.31 +
1.32 # Test acceptance and registration in the outgoing handler.
1.33
1.34 "$ACCEPT_SCRIPT" $ACCEPT_ARGS "$USER" "event26@example.com" 2>> $ERROR \
1.35 @@ -102,7 +120,7 @@
1.36 && echo "Success" \
1.37 || echo "Failed"
1.38
1.39 -# Test recurrence declination in the outgoing handler.
1.40 +# Test recurrence declining in the outgoing handler.
1.41
1.42 "$DECLINE_SCRIPT" $DECLINE_ARGS "$USER" "20141011T100000" "20141011T110000" "event26@example.com" "20141011T100000" 2>> $ERROR \
1.43 | tee out5.tmp \
1.44 @@ -116,7 +134,20 @@
1.45 && echo "Success" \
1.46 || echo "Failed"
1.47
1.48 -# Test declination in the incoming handler.
1.49 +# There should be a recurrence created by the user.
1.50 +
1.51 + "$LIST_SCRIPT" $LIST_ARGS "$USER" "object" "event26@example.com" \
1.52 +> out5O.tmp
1.53 +
1.54 + "$LIST_SCRIPT" $LIST_ARGS "$USER" "recurrence" "event26@example.com" "20141011T100000" \
1.55 +> out5R.tmp
1.56 +
1.57 + grep -q 'event26@example.com' "out5O.tmp" \
1.58 +&& grep -q 'event26@example.com' "out5R.tmp" \
1.59 +&& echo "Success" \
1.60 +|| echo "Failed"
1.61 +
1.62 +# Test declining in the incoming handler.
1.63
1.64 "$PERSON_SCRIPT" $ARGS < out5.tmp 2>> $ERROR \
1.65 | "$SHOWMAIL" \
1.66 @@ -137,3 +168,16 @@
1.67 && ! grep -q "^20141011T080000Z${TAB}20141011T090000Z" "out6o.tmp" \
1.68 && echo "Success" \
1.69 || echo "Failed"
1.70 +
1.71 +# There should be a recurrence created by the user.
1.72 +
1.73 + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "object" "event26@example.com" \
1.74 +> out6O.tmp
1.75 +
1.76 + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "recurrence" "event26@example.com" "20141011T100000" \
1.77 +> out6R.tmp
1.78 +
1.79 + grep -q 'event26@example.com' "out6O.tmp" \
1.80 +&& grep -q 'event26@example.com' "out6R.tmp" \
1.81 +&& echo "Success" \
1.82 +|| echo "Failed"