imip-agent

tests/test_resource_invitation_bad.sh

1035:ef716f5b9d22
2016-01-31 Paul Boddie Treat access control list files as employing UTF-8.
     1 #!/bin/sh     2      3 . "`dirname \"$0\"`/common.sh"     4      5 USER="mailto:resource-room-confroom@example.com"     6      7 mkdir -p "$PREFS/$USER"     8 echo 'Europe/Oslo' > "$PREFS/$USER/TZID"     9 echo 'share' > "$PREFS/$USER/freebusy_sharing"    10     11   "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-all.txt" 2>> $ERROR \    12 | "$SHOWMAIL" \    13 > out0.tmp    14     15    grep -q 'METHOD:REPLY' out0.tmp \    16 && ! grep -q '^FREEBUSY' out0.tmp \    17 && echo "Success" \    18 || echo "Failed"    19     20   "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-day.txt" 2>> $ERROR \    21 | "$SHOWMAIL" \    22 > out1.tmp    23     24    grep -q 'METHOD:REPLY' out1.tmp \    25 && ! grep -q '^FREEBUSY' out1.tmp \    26 && echo "Success" \    27 || echo "Failed"    28     29 # Recover from a bad DTSTAMP.    30     31   "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/event-request-bad-dtstamp.txt" 2>> $ERROR \    32 | "$SHOWMAIL" \    33 > out2.tmp    34     35    grep -q 'METHOD:REPLY' out2.tmp \    36 && grep -q 'ATTENDEE;PARTSTAT=ACCEPTED' out2.tmp \    37 && echo "Success" \    38 || echo "Failed"    39     40   "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-day.txt" 2>> $ERROR \    41 | "$SHOWMAIL" \    42 > out3.tmp    43     44    grep -q 'METHOD:REPLY' out3.tmp \    45 && grep -q 'FREEBUSY;FBTYPE=BUSY:20141126T080000Z/20141126T090000Z' out3.tmp \    46 && echo "Success" \    47 || echo "Failed"    48     49 # Reject a bad DTSTART.    50     51   "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/event-request-bad-dtstart.txt" 2>> $ERROR \    52 | "$SHOWMAIL" \    53 > out4.tmp    54     55    ! grep -q 'METHOD:REPLY' out4.tmp \    56 && echo "Success" \    57 || echo "Failed"    58     59   "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-day.txt" 2>> $ERROR \    60 | "$SHOWMAIL" \    61 > out5.tmp    62     63    grep -q 'METHOD:REPLY' out5.tmp \    64 && ! grep -q 'FREEBUSY;FBTYPE=BUSY:20141126T090000Z/20141126T100000Z' out5.tmp \    65 && echo "Success" \    66 || echo "Failed"    67     68 # Reject a bad DTEND.    69     70   "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/event-request-bad-dtend.txt" 2>> $ERROR \    71 | "$SHOWMAIL" \    72 > out6.tmp    73     74    ! grep -q 'METHOD:REPLY' out6.tmp \    75 && echo "Success" \    76 || echo "Failed"    77     78   "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-day.txt" 2>> $ERROR \    79 | "$SHOWMAIL" \    80 > out7.tmp    81     82    grep -q 'METHOD:REPLY' out7.tmp \    83 && ! grep -q 'FREEBUSY;FBTYPE=BUSY:20141126T100000Z/20141126T110000Z' out7.tmp \    84 && echo "Success" \    85 || echo "Failed"