# HG changeset patch # User Paul Boddie # Date 1461085513 -7200 # Node ID 07a7dc43e409a16ce99f121d5cf24111d47c2987 # Parent df5219c279f57e1ee1128658931a051e33f7f0bd Added tests to determine whether recurrences are created by attendees. diff -r df5219c279f5 -r 07a7dc43e409 tests/test_person_invitation_decline_instance.sh --- a/tests/test_person_invitation_decline_instance.sh Tue Apr 19 18:51:53 2016 +0200 +++ b/tests/test_person_invitation_decline_instance.sh Tue Apr 19 19:05:13 2016 +0200 @@ -43,6 +43,15 @@ && echo "Success" \ || echo "Failed" +# There should be an event created by the sender. + + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "object" "event26@example.com" \ +> out1O.tmp + + grep -q 'event26@example.com' "out1O.tmp" \ +&& echo "Success" \ +|| echo "Failed" + # Test registration in the incoming handler for the recipient. "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-request-person-recurring-rdate.txt" 2>> $ERROR \ @@ -67,6 +76,15 @@ && echo "Success" \ || echo "Failed" +# There should be an event created by the sender. + + "$LIST_SCRIPT" $LIST_ARGS "$USER" "object" "event26@example.com" \ +> out2O.tmp + + grep -q 'event26@example.com' "out2O.tmp" \ +&& echo "Success" \ +|| echo "Failed" + # Test acceptance and registration in the outgoing handler. "$ACCEPT_SCRIPT" $ACCEPT_ARGS "$USER" "event26@example.com" 2>> $ERROR \ @@ -102,7 +120,7 @@ && echo "Success" \ || echo "Failed" -# Test recurrence declination in the outgoing handler. +# Test recurrence declining in the outgoing handler. "$DECLINE_SCRIPT" $DECLINE_ARGS "$USER" "20141011T100000" "20141011T110000" "event26@example.com" "20141011T100000" 2>> $ERROR \ | tee out5.tmp \ @@ -116,7 +134,20 @@ && echo "Success" \ || echo "Failed" -# Test declination in the incoming handler. +# There should be a recurrence created by the user. + + "$LIST_SCRIPT" $LIST_ARGS "$USER" "object" "event26@example.com" \ +> out5O.tmp + + "$LIST_SCRIPT" $LIST_ARGS "$USER" "recurrence" "event26@example.com" "20141011T100000" \ +> out5R.tmp + + grep -q 'event26@example.com' "out5O.tmp" \ +&& grep -q 'event26@example.com' "out5R.tmp" \ +&& echo "Success" \ +|| echo "Failed" + +# Test declining in the incoming handler. "$PERSON_SCRIPT" $ARGS < out5.tmp 2>> $ERROR \ | "$SHOWMAIL" \ @@ -137,3 +168,16 @@ && ! grep -q "^20141011T080000Z${TAB}20141011T090000Z" "out6o.tmp" \ && echo "Success" \ || echo "Failed" + +# There should be a recurrence created by the user. + + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "object" "event26@example.com" \ +> out6O.tmp + + "$LIST_SCRIPT" $LIST_ARGS "$SENDER" "recurrence" "event26@example.com" "20141011T100000" \ +> out6R.tmp + + grep -q 'event26@example.com' "out6O.tmp" \ +&& grep -q 'event26@example.com' "out6R.tmp" \ +&& echo "Success" \ +|| echo "Failed"