1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/templates/event-cancel-person-all.txt Thu May 21 18:57:28 2015 +0200
1.3 @@ -0,0 +1,38 @@
1.4 +Content-Type: multipart/alternative; boundary="===============0047278175=="
1.5 +MIME-Version: 1.0
1.6 +From: paul.boddie@example.com
1.7 +To: vincent.vole@example.com
1.8 +Subject: Cancellation!
1.9 +
1.10 +Cancel the event for vincent.vole and paul.boddie. The free/busy details for
1.11 +the recipients should be updated, even those employing the person handler.
1.12 +
1.13 +--===============0047278175==
1.14 +Content-Type: text/plain; charset="us-ascii"
1.15 +MIME-Version: 1.0
1.16 +Content-Transfer-Encoding: 7bit
1.17 +
1.18 +This message contains an event.
1.19 +--===============0047278175==
1.20 +MIME-Version: 1.0
1.21 +Content-Transfer-Encoding: 7bit
1.22 +Content-Type: text/calendar; charset="us-ascii"; method="CANCEL"
1.23 +
1.24 +BEGIN:VCALENDAR
1.25 +PRODID:-//imip-agent/test//EN
1.26 +METHOD:CANCEL
1.27 +VERSION:2.0
1.28 +BEGIN:VEVENT
1.29 +ORGANIZER:mailto:paul.boddie@example.com
1.30 +ATTENDEE;RSVP=TRUE:mailto:vincent.vole@example.com
1.31 +ATTENDEE;RSVP=TRUE:mailto:paul.boddie@example.com
1.32 +DTSTAMP:20141125T004600Z
1.33 +DTSTART;TZID=Europe/Oslo:20141126T160000
1.34 +DTEND;TZID=Europe/Oslo:20141126T170000
1.35 +SUMMARY:Meeting at 4pm
1.36 +UID:event6@example.com
1.37 +SEQUENCE:2
1.38 +END:VEVENT
1.39 +END:VCALENDAR
1.40 +
1.41 +--===============0047278175==--
2.1 --- a/tests/templates/event-cancel-person.txt Thu May 21 18:56:54 2015 +0200
2.2 +++ b/tests/templates/event-cancel-person.txt Thu May 21 18:57:28 2015 +0200
2.3 @@ -25,7 +25,6 @@
2.4 BEGIN:VEVENT
2.5 ORGANIZER:mailto:paul.boddie@example.com
2.6 ATTENDEE;RSVP=TRUE:mailto:vincent.vole@example.com
2.7 -ATTENDEE;RSVP=TRUE:mailto:paul.boddie@example.com
2.8 DTSTAMP:20141125T004600Z
2.9 DTSTART;TZID=Europe/Oslo:20141126T160000
2.10 DTEND;TZID=Europe/Oslo:20141126T170000
3.1 --- a/tests/test_person_invitation.sh Thu May 21 18:56:54 2015 +0200
3.2 +++ b/tests/test_person_invitation.sh Thu May 21 18:57:28 2015 +0200
3.3 @@ -94,3 +94,35 @@
3.4 && ! grep -q "event7@example.com" "$FBFILE" \
3.5 && echo "Success" \
3.6 || echo "Failed"
3.7 +
3.8 + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-cancel-person.txt" 2> /dev/null \
3.9 +| "$SHOWMAIL" \
3.10 +> out6.tmp
3.11 +
3.12 + ! grep -q 'METHOD:REPLY' out6.tmp \
3.13 +&& echo "Success" \
3.14 +|| echo "Failed"
3.15 +
3.16 + ! grep -q "event6@example.com" "$FBFILE" \
3.17 +&& echo "Success" \
3.18 +|| echo "Failed"
3.19 +
3.20 + grep -q "event6@example.com" "$FBOTHERFILE" \
3.21 +&& echo "Success" \
3.22 +|| echo "Failed"
3.23 +
3.24 + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/event-cancel-person-all.txt" 2> /dev/null \
3.25 +| "$SHOWMAIL" \
3.26 +> out7.tmp
3.27 +
3.28 + ! grep -q 'METHOD:REPLY' out7.tmp \
3.29 +&& echo "Success" \
3.30 +|| echo "Failed"
3.31 +
3.32 + ! grep -q "event6@example.com" "$FBFILE" \
3.33 +&& echo "Success" \
3.34 +|| echo "Failed"
3.35 +
3.36 + ! grep -q "event6@example.com" "$FBOTHERFILE" \
3.37 +&& echo "Success" \
3.38 +|| echo "Failed"