1.1 --- a/tests/outgoing_invitation.sh Tue May 19 23:38:48 2015 +0200
1.2 +++ b/tests/outgoing_invitation.sh Tue May 19 23:39:36 2015 +0200
1.3 @@ -16,6 +16,7 @@
1.4 rm -r $STATIC
1.5
1.6 $OUTGOING_SCRIPT $ARGS < $TEMPLATES/event-request.txt 2> /dev/null
1.7 +cp "$FBFILE" out1.tmp
1.8
1.9 grep -q "^20141126T150000Z${TAB}20141126T160000Z" "$FBFILE" \
1.10 && echo "Success" \
1.11 @@ -23,12 +24,14 @@
1.12
1.13 $OUTGOING_SCRIPT $ARGS < $TEMPLATES/event-cancel.txt 2> /dev/null
1.14 echo "Cancel..."
1.15 +cp "$FBFILE" out2.tmp
1.16
1.17 - ! grep -q '^FREEBUSY' "$FBFILE" \
1.18 + ! grep -q '^2' "$FBFILE" \
1.19 && echo "Success" \
1.20 || echo "Failed"
1.21
1.22 $OUTGOING_SCRIPT $ARGS < $TEMPLATES/event-request-recurring.txt 2> /dev/null
1.23 +cp "$FBFILE" out3.tmp
1.24
1.25 [ `cat "$FBFILE" | wc -l` = '3' ] \
1.26 && grep -q "^20141212T090000Z${TAB}20141212T100000Z" "$FBFILE" \
1.27 @@ -36,6 +39,7 @@
1.28 || echo "Failed"
1.29
1.30 $OUTGOING_SCRIPT $ARGS < $TEMPLATES/event-cancel-recurring-instance.txt 2> /dev/null
1.31 +cp "$FBFILE" out4.tmp
1.32
1.33 [ `cat "$FBFILE" | wc -l` = '2' ] \
1.34 && ! grep -q "^20141114T090000Z${TAB}20141114T100000Z" "$FBFILE" \
1.35 @@ -43,6 +47,7 @@
1.36 || echo "Failed"
1.37
1.38 $OUTGOING_SCRIPT $ARGS < $TEMPLATES/event-request-recurring-reschedule-instance.txt 2> /dev/null
1.39 +cp "$FBFILE" out5.tmp
1.40
1.41 grep -q "^20141011T080000Z${TAB}20141011T090000Z" "$FBFILE" \
1.42 && ! grep -q "^20141010T090000Z${TAB}20141010T100000Z" "$FBFILE" \
1.43 @@ -50,7 +55,16 @@
1.44 || echo "Failed"
1.45
1.46 $OUTGOING_SCRIPT $ARGS < $TEMPLATES/event-cancel-recurring.txt 2> /dev/null
1.47 +cp "$FBFILE" out6.tmp
1.48
1.49 - ! grep -q '^FREEBUSY' "$FBFILE" \
1.50 + ! grep -q '^2' "$FBFILE" \
1.51 && echo "Success" \
1.52 || echo "Failed"
1.53 +
1.54 +$OUTGOING_SCRIPT $ARGS < $TEMPLATES/event-request-recurring-day.txt 2> /dev/null
1.55 +cp "$FBFILE" out7.tmp
1.56 +
1.57 + [ `cat "$FBFILE" | wc -l` = '3' ] \
1.58 +&& grep -q "^20141211T230000Z${TAB}20141212T230000Z" "$FBFILE" \
1.59 +&& echo "Success" \
1.60 +|| echo "Failed"
2.1 --- a/tests/templates/event-cancel-multiple-attendee.txt Tue May 19 23:38:48 2015 +0200
2.2 +++ b/tests/templates/event-cancel-multiple-attendee.txt Tue May 19 23:39:36 2015 +0200
2.3 @@ -2,7 +2,9 @@
2.4 MIME-Version: 1.0
2.5 From: paul.boddie@example.com
2.6 To: resource-room-confroom@example.com
2.7 -Subject: Invitation!
2.8 +Subject: Cancellation!
2.9 +
2.10 +Uninvite only resource-room-confroom from the event.
2.11
2.12 --===============0047278175==
2.13 Content-Type: text/plain; charset="us-ascii"
3.1 --- a/tests/templates/event-cancel-recurring-instance.txt Tue May 19 23:38:48 2015 +0200
3.2 +++ b/tests/templates/event-cancel-recurring-instance.txt Tue May 19 23:39:36 2015 +0200
3.3 @@ -2,7 +2,9 @@
3.4 MIME-Version: 1.0
3.5 From: paul.boddie@example.com
3.6 To: resource-room-confroom@example.com
3.7 -Subject: Invitation!
3.8 +Subject: Cancellation!
3.9 +
3.10 +Cancel an instance for resource-room-confroom and paul.boddie.
3.11
3.12 --===============0047278175==
3.13 Content-Type: text/plain; charset="us-ascii"
3.14 @@ -22,6 +24,7 @@
3.15 BEGIN:VEVENT
3.16 ORGANIZER:mailto:paul.boddie@example.com
3.17 ATTENDEE;RSVP=TRUE:mailto:resource-room-confroom@example.com
3.18 +ATTENDEE;RSVP=TRUE:mailto:paul.boddie@example.com
3.19 DTSTAMP:20141009T182400Z
3.20 DTSTART;TZID=Europe/Oslo:20141114T100000
3.21 DTEND;TZID=Europe/Oslo:20141114T110000
4.1 --- a/tests/templates/event-cancel-recurring.txt Tue May 19 23:38:48 2015 +0200
4.2 +++ b/tests/templates/event-cancel-recurring.txt Tue May 19 23:39:36 2015 +0200
4.3 @@ -2,7 +2,9 @@
4.4 MIME-Version: 1.0
4.5 From: paul.boddie@example.com
4.6 To: resource-room-confroom@example.com
4.7 -Subject: Invitation!
4.8 +Subject: Cancellation!
4.9 +
4.10 +Cancel the event for resource-room-confroom and paul.boddie.
4.11
4.12 --===============0047278175==
4.13 Content-Type: text/plain; charset="us-ascii"
4.14 @@ -22,6 +24,7 @@
4.15 BEGIN:VEVENT
4.16 ORGANIZER:mailto:paul.boddie@example.com
4.17 ATTENDEE;RSVP=TRUE:mailto:resource-room-confroom@example.com
4.18 +ATTENDEE;RSVP=TRUE:mailto:paul.boddie@example.com
4.19 DTSTAMP:20141009T182400Z
4.20 DTSTART;TZID=Europe/Oslo:20141010T100000
4.21 DTEND;TZID=Europe/Oslo:20141010T110000
5.1 --- a/tests/templates/event-cancel.txt Tue May 19 23:38:48 2015 +0200
5.2 +++ b/tests/templates/event-cancel.txt Tue May 19 23:39:36 2015 +0200
5.3 @@ -2,6 +2,9 @@
5.4 MIME-Version: 1.0
5.5 From: paul.boddie@example.com
5.6 To: resource-room-confroom@example.com
5.7 +Subject: Cancellation!
5.8 +
5.9 +Cancel the event for resource-room-confroom and paul.boddie.
5.10
5.11 --===============0047278175==
5.12 Content-Type: text/plain; charset="us-ascii"
5.13 @@ -20,8 +23,8 @@
5.14 VERSION:2.0
5.15 BEGIN:VEVENT
5.16 ORGANIZER:mailto:paul.boddie@example.com
5.17 +ATTENDEE;RSVP=TRUE:mailto:resource-room-confroom@example.com
5.18 ATTENDEE;RSVP=TRUE:mailto:paul.boddie@example.com
5.19 -ATTENDEE;RSVP=TRUE:mailto:resource-room-confroom@example.com
5.20 DTSTAMP:20141125T004600Z
5.21 DTSTART;TZID=Europe/Oslo:20141126T160000
5.22 DTEND;TZID=Europe/Oslo:20141126T170000