imip-agent

tests/test_freebusy_publishing.sh

1059:861e86e687af
2016-02-09 Paul Boddie Changed the recording of reservations for quotas to use free/busy records.
     1 #!/bin/sh     2      3 . "`dirname \"$0\"`/common.sh"     4      5 USER="mailto:paul.boddie@example.com"     6 SENDER="mailto:resource-room-confroom@example.com"     7 FBFILE="$STORE/$USER/freebusy"     8 FBOTHERFILE="$STORE/$USER/freebusy-other/$SENDER"     9     10 mkdir -p "$PREFS/$USER"    11 echo 'Europe/Oslo' > "$PREFS/$USER/TZID"    12 echo 'share' > "$PREFS/$USER/freebusy_sharing"    13     14   "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/fb-publish.txt" 2>> $ERROR \    15 | "$SHOWMAIL" \    16 > out0.tmp    17     18    grep -q "^20140401T070000Z${TAB}20140401T080000Z" "$FBOTHERFILE" \    19 && grep -q "^20140401T080000Z${TAB}20140401T100000Z" "$FBOTHERFILE" \    20 && echo "Success" \    21 || echo "Failed"    22     23   "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/fb-publish-again.txt" 2>> $ERROR \    24 | "$SHOWMAIL" \    25 > out0.tmp    26     27    grep -q "^20140401T070000Z${TAB}20140401T080000Z" "$FBOTHERFILE" \    28 && ! grep -q "^20140401T080000Z${TAB}20140401T100000Z" "$FBOTHERFILE" \    29 && grep -q "^20140401T083000Z${TAB}20140401T100000Z" "$FBOTHERFILE" \    30 && echo "Success" \    31 || echo "Failed"