1.1 --- a/tests/test_resource_invitation_constraints.sh Mon Sep 14 19:58:51 2015 +0200
1.2 +++ b/tests/test_resource_invitation_constraints.sh Tue Sep 15 00:28:09 2015 +0200
1.3 @@ -17,6 +17,7 @@
1.4 FBOFFERFILE="$STORE/$USER/freebusy-offers"
1.5 FBSENDERFILE="$STORE/$SENDER/freebusy"
1.6 FBSENDEROTHERFILE="$STORE/$SENDER/freebusy-other/$USER"
1.7 +FBSENDERREQUESTS="$STORE/$SENDER/requests"
1.8 FBRIVALSENDERFILE="$STORE/$RIVALSENDER/freebusy"
1.9 TAB=`printf '\t'`
1.10
1.11 @@ -85,6 +86,15 @@
1.12 || echo "Failed"
1.13
1.14 grep -q 'ATTENDEE.*;PARTSTAT=DECLINED' "$STORE/$SENDER/objects/event13@example.com" \
1.15 +&& grep -q 'DTSTART;TZID=Europe/Oslo.*:20141126T161000' "$STORE/$SENDER/objects/event13@example.com" \
1.16 +&& echo "Success" \
1.17 +|| echo "Failed"
1.18 +
1.19 + grep -q 'DTSTART;TZID=Europe/Oslo.*:20141126T161500' "$STORE/$SENDER/counters/objects/event13@example.com" \
1.20 +&& echo "Success" \
1.21 +|| echo "Failed"
1.22 +
1.23 + grep -q 'event13@example.com' "$FBSENDERREQUESTS" \
1.24 && echo "Success" \
1.25 || echo "Failed"
1.26
1.27 @@ -147,6 +157,14 @@
1.28 && echo "Success" \
1.29 || echo "Failed"
1.30
1.31 + [ ! -e "$STORE/$SENDER/counters/objects/event13@example.com" ] \
1.32 +&& echo "Success" \
1.33 +|| echo "Failed"
1.34 +
1.35 + ! grep -q 'event13@example.com' "$FBSENDERREQUESTS" \
1.36 +&& echo "Success" \
1.37 +|| echo "Failed"
1.38 +
1.39 # Present the request to the resource.
1.40
1.41 "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/event-request-sauna-good.txt" 2>> $ERROR \
1.42 @@ -182,6 +200,14 @@
1.43 && echo "Success" \
1.44 || echo "Failed"
1.45
1.46 + [ ! -e "$STORE/$SENDER/counters/objects/event13@example.com" ] \
1.47 +&& echo "Success" \
1.48 +|| echo "Failed"
1.49 +
1.50 + ! grep -q 'event13@example.com' "$FBSENDERREQUESTS" \
1.51 +&& echo "Success" \
1.52 +|| echo "Failed"
1.53 +
1.54 # Check the free/busy state of the resource again.
1.55
1.56 "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-sauna-all.txt" 2>> $ERROR \