# HG changeset patch # User Paul Boddie # Date 1441971639 -7200 # Node ID 2e36f646bc59f50b014afaa493bec6ad77a66a81 # Parent 845235758980d17e5a5a5bde3cb3f290e25b3dc5 Added a test of the outcome of simultaneous group scheduling. diff -r 845235758980 -r 2e36f646bc59 tests/templates/fb-request-day.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/templates/fb-request-day.txt Fri Sep 11 13:40:39 2015 +0200 @@ -0,0 +1,31 @@ +Content-Type: multipart/alternative; boundary="===============0945993647==" +MIME-Version: 1.0 +From: paul.boddie@example.com +To: resource-room-confroom@example.com + +--===============0945993647== +Content-Type: text/plain; charset="us-ascii" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit + +This message contains a free/busy request. +--===============0945993647== +Content-Type: text/calendar; charset="us-ascii"; method="REQUEST" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit + +BEGIN:VCALENDAR +PRODID:-//imip-agent/test//EN +METHOD:REQUEST +VERSION:2.0 +BEGIN:VFREEBUSY +ORGANIZER:mailto:paul.boddie@example.com +ATTENDEE:mailto:resource-room-confroom@example.com +DTSTAMP:20141125T164400Z +DTSTART:20141126T080000Z +DTEND:20141126T180000Z +UID:fb1@example.com +END:VFREEBUSY +END:VCALENDAR + +--===============0945993647==-- diff -r 845235758980 -r 2e36f646bc59 tests/test_resource_invitation_group.sh --- a/tests/test_resource_invitation_group.sh Fri Sep 11 13:29:03 2015 +0200 +++ b/tests/test_resource_invitation_group.sh Fri Sep 11 13:40:39 2015 +0200 @@ -38,7 +38,7 @@ && echo "Success" \ || echo "Failed" - "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request.txt" 2>> $ERROR \ + "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-day.txt" 2>> $ERROR \ | "$SHOWMAIL" \ > out1.tmp @@ -74,3 +74,12 @@ [ `grep 'PARTSTAT' outP*.tmp | grep 'ACCEPTED' | wc -l` = '5' ] \ && echo "Success" \ || echo "Failed" + + "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-day.txt" 2>> $ERROR \ +| "$SHOWMAIL" \ +> out2.tmp + + grep -q 'METHOD:REPLY' out2.tmp \ +&& [ `grep '^FREEBUSY' out2.tmp | sort -u | wc -l` = '5' ] \ +&& echo "Success" \ +|| echo "Failed"