1.1 --- a/tests/test_person_invitation.sh Thu May 21 16:31:38 2015 +0200
1.2 +++ b/tests/test_person_invitation.sh Thu May 21 16:32:20 2015 +0200
1.3 @@ -19,8 +19,11 @@
1.4 PYTHONPATH="$THIS_DIR/.."
1.5 export PYTHONPATH
1.6
1.7 -ACCEPT_SCRIPT="$THIS_DIR/test_accept.py"
1.8 -ACCEPT_ARGS="$STORE"
1.9 +ACCEPT_SCRIPT="$THIS_DIR/test_handle.py"
1.10 +ACCEPT_ARGS="accept $STORE"
1.11 +
1.12 +DECLINE_SCRIPT="$THIS_DIR/test_handle.py"
1.13 +DECLINE_ARGS="decline $STORE"
1.14
1.15 rm -r $STORE
1.16 rm -r $STATIC
1.17 @@ -66,3 +69,28 @@
1.18 grep -q "^20141126T150000Z${TAB}20141126T160000Z" "$FBFILE" \
1.19 && echo "Success" \
1.20 || echo "Failed"
1.21 +
1.22 + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-request-person-conflict.txt" 2> /dev/null \
1.23 +| "$SHOWMAIL" \
1.24 +> out4.tmp
1.25 +
1.26 + ! grep -q 'METHOD:REPLY' out4.tmp \
1.27 +&& echo "Success" \
1.28 +|| echo "Failed"
1.29 +
1.30 + ! grep -q "event7@example.com" "$FBFILE" \
1.31 +&& echo "Success" \
1.32 +|| echo "Failed"
1.33 +
1.34 + grep -q "event7@example.com" "$FBOTHERFILE" \
1.35 +&& echo "Success" \
1.36 +|| echo "Failed"
1.37 +
1.38 + "$DECLINE_SCRIPT" $DECLINE_ARGS "$USER" "event7@example.com" \
1.39 +| tee out5.tmp \
1.40 +| "$OUTGOING_SCRIPT" $ARGS
1.41 +
1.42 + grep -q "event6@example.com" "$FBFILE" \
1.43 +&& ! grep -q "event7@example.com" "$FBFILE" \
1.44 +&& echo "Success" \
1.45 +|| echo "Failed"