# HG changeset patch # User Paul Boddie # Date 1438711298 -7200 # Node ID a3aebed41a43c7e26ea70a4eedb765c4c06bc1b6 # Parent 513387edfb5e9f21ad2c2ba3d5ee7cab9bd533fb Added explicit preferences for testing purposes. diff -r 513387edfb5e -r a3aebed41a43 tests/test_freebusy_publishing.sh --- a/tests/test_freebusy_publishing.sh Tue Aug 04 19:59:05 2015 +0200 +++ b/tests/test_freebusy_publishing.sh Tue Aug 04 20:01:38 2015 +0200 @@ -7,7 +7,8 @@ SHOWMAIL="$THIS_DIR/../tools/showmail.py" STORE=/tmp/store STATIC=/tmp/static -ARGS="-S $STORE -P $STATIC -d" +PREFS=/tmp/prefs +ARGS="-S $STORE -P $STATIC -p $PREFS -d" USER="mailto:paul.boddie@example.com" SENDER="mailto:resource-room-confroom@example.com" FBFILE="$STORE/$USER/freebusy" @@ -21,9 +22,14 @@ rm -r $STORE rm -r $STATIC +rm -r $PREFS rm $ERROR rm out*.tmp +mkdir -p "$PREFS/$USER" +echo 'Europe/Oslo' > "$PREFS/$USER/TZID" +echo 'share' > "$PREFS/$USER/freebusy_sharing" + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/fb-publish.txt" 2>> $ERROR \ | "$SHOWMAIL" \ > out0.tmp diff -r 513387edfb5e -r a3aebed41a43 tests/test_multiple_invitation.sh --- a/tests/test_multiple_invitation.sh Tue Aug 04 19:59:05 2015 +0200 +++ b/tests/test_multiple_invitation.sh Tue Aug 04 20:01:38 2015 +0200 @@ -7,14 +7,21 @@ SHOWMAIL="$THIS_DIR/../tools/showmail.py" STORE=/tmp/store STATIC=/tmp/static -ARGS="-S $STORE -P $STATIC -d" +PREFS=/tmp/prefs +ARGS="-S $STORE -P $STATIC -p $PREFS -d" +USER="mailto:resource-room-confroom@example.com" ERROR=err.tmp rm -r $STORE rm -r $STATIC +rm -r $PREFS rm $ERROR rm out*.tmp +mkdir -p "$PREFS/$USER" +echo 'Europe/Oslo' > "$PREFS/$USER/TZID" +echo 'share' > "$PREFS/$USER/freebusy_sharing" + "$RESOURCE_SCRIPT" $ARGS < $TEMPLATES/fb-request-all.txt 2>> $ERROR \ | "$SHOWMAIL" \ > out0.tmp diff -r 513387edfb5e -r a3aebed41a43 tests/test_outgoing_invitation.sh --- a/tests/test_outgoing_invitation.sh Tue Aug 04 19:59:05 2015 +0200 +++ b/tests/test_outgoing_invitation.sh Tue Aug 04 20:01:38 2015 +0200 @@ -7,7 +7,8 @@ SHOWMAIL="$THIS_DIR/../tools/showmail.py" STORE=/tmp/store STATIC=/tmp/static -ARGS="-S $STORE -P $STATIC -d" +PREFS=/tmp/prefs +ARGS="-S $STORE -P $STATIC -p $PREFS -d" USER="mailto:paul.boddie@example.com" FBFILE="$STORE/$USER/freebusy" TAB=`printf '\t'` @@ -15,9 +16,14 @@ rm -r $STORE rm -r $STATIC +rm -r $PREFS rm $ERROR rm out*.tmp +mkdir -p "$PREFS/$USER" +echo 'Europe/Oslo' > "$PREFS/$USER/TZID" +echo 'share' > "$PREFS/$USER/freebusy_sharing" + "$OUTGOING_SCRIPT" $ARGS < "$TEMPLATES/event-request.txt" 2>> $ERROR cp "$FBFILE" out1.tmp diff -r 513387edfb5e -r a3aebed41a43 tests/test_person_invitation.sh --- a/tests/test_person_invitation.sh Tue Aug 04 19:59:05 2015 +0200 +++ b/tests/test_person_invitation.sh Tue Aug 04 20:01:38 2015 +0200 @@ -7,7 +7,8 @@ SHOWMAIL="$THIS_DIR/../tools/showmail.py" STORE=/tmp/store STATIC=/tmp/static -ARGS="-S $STORE -P $STATIC -d" +PREFS=/tmp/prefs +ARGS="-S $STORE -P $STATIC -p $PREFS -d" USER="mailto:vincent.vole@example.com" SENDER="mailto:paul.boddie@example.com" FBFILE="$STORE/$USER/freebusy" @@ -29,9 +30,14 @@ rm -r $STORE rm -r $STATIC +rm -r $PREFS rm $ERROR rm out*.tmp +mkdir -p "$PREFS/$USER" +echo 'Europe/Oslo' > "$PREFS/$USER/TZID" +echo 'share' > "$PREFS/$USER/freebusy_sharing" + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/fb-request-person-all.txt" 2>> $ERROR \ | "$SHOWMAIL" \ > out0.tmp diff -r 513387edfb5e -r a3aebed41a43 tests/test_person_invitation_recurring.sh --- a/tests/test_person_invitation_recurring.sh Tue Aug 04 19:59:05 2015 +0200 +++ b/tests/test_person_invitation_recurring.sh Tue Aug 04 20:01:38 2015 +0200 @@ -7,7 +7,8 @@ SHOWMAIL="$THIS_DIR/../tools/showmail.py" STORE=/tmp/store STATIC=/tmp/static -ARGS="-S $STORE -P $STATIC -d" +PREFS=/tmp/prefs +ARGS="-S $STORE -P $STATIC -p $PREFS -d" USER="mailto:vincent.vole@example.com" SENDER="mailto:paul.boddie@example.com" FBFILE="$STORE/$USER/freebusy" @@ -29,9 +30,14 @@ rm -r $STORE rm -r $STATIC +rm -r $PREFS rm $ERROR rm out*.tmp +mkdir -p "$PREFS/$USER" +echo 'Europe/Oslo' > "$PREFS/$USER/TZID" +echo 'share' > "$PREFS/$USER/freebusy_sharing" + "$PERSON_SCRIPT" $ARGS < "$TEMPLATES/fb-request-person-all.txt" 2>> $ERROR \ | "$SHOWMAIL" \ > out0.tmp diff -r 513387edfb5e -r a3aebed41a43 tests/test_resource_invitation.sh --- a/tests/test_resource_invitation.sh Tue Aug 04 19:59:05 2015 +0200 +++ b/tests/test_resource_invitation.sh Tue Aug 04 20:01:38 2015 +0200 @@ -7,14 +7,21 @@ SHOWMAIL="$THIS_DIR/../tools/showmail.py" STORE=/tmp/store STATIC=/tmp/static -ARGS="-S $STORE -P $STATIC -d" +PREFS=/tmp/prefs +ARGS="-S $STORE -P $STATIC -p $PREFS -d" +USER="mailto:resource-room-confroom@example.com" ERROR=err.tmp rm -r $STORE rm -r $STATIC +rm -r $PREFS rm $ERROR rm out*.tmp +mkdir -p "$PREFS/$USER" +echo 'Europe/Oslo' > "$PREFS/$USER/TZID" +echo 'share' > "$PREFS/$USER/freebusy_sharing" + "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-all.txt" 2>> $ERROR \ | "$SHOWMAIL" \ > out0.tmp diff -r 513387edfb5e -r a3aebed41a43 tests/test_resource_invitation_recurring.sh --- a/tests/test_resource_invitation_recurring.sh Tue Aug 04 19:59:05 2015 +0200 +++ b/tests/test_resource_invitation_recurring.sh Tue Aug 04 20:01:38 2015 +0200 @@ -7,14 +7,21 @@ SHOWMAIL="$THIS_DIR/../tools/showmail.py" STORE=/tmp/store STATIC=/tmp/static -ARGS="-S $STORE -P $STATIC -d" +PREFS=/tmp/prefs +ARGS="-S $STORE -P $STATIC -p $PREFS -d" +USER="mailto:resource-room-confroom@example.com" ERROR=err.tmp rm -r $STORE rm -r $STATIC +rm -r $PREFS rm $ERROR rm out*.tmp +mkdir -p "$PREFS/$USER" +echo 'Europe/Oslo' > "$PREFS/$USER/TZID" +echo 'share' > "$PREFS/$USER/freebusy_sharing" + "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-all.txt" 2>> $ERROR \ | "$SHOWMAIL" \ > out0.tmp diff -r 513387edfb5e -r a3aebed41a43 tests/test_resource_invitation_recurring_day.sh --- a/tests/test_resource_invitation_recurring_day.sh Tue Aug 04 19:59:05 2015 +0200 +++ b/tests/test_resource_invitation_recurring_day.sh Tue Aug 04 20:01:38 2015 +0200 @@ -7,15 +7,21 @@ SHOWMAIL="$THIS_DIR/../tools/showmail.py" STORE=/tmp/store STATIC=/tmp/static -ARGS="-S $STORE -P $STATIC -d" - +PREFS=/tmp/prefs +ARGS="-S $STORE -P $STATIC -p $PREFS -d" +USER="mailto:resource-room-confroom@example.com" ERROR=err.tmp rm -r $STORE rm -r $STATIC +rm -r $PREFS rm $ERROR rm out*.tmp +mkdir -p "$PREFS/$USER" +echo 'Europe/Oslo' > "$PREFS/$USER/TZID" +echo 'share' > "$PREFS/$USER/freebusy_sharing" + "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/fb-request-all.txt" 2>> $ERROR \ | "$SHOWMAIL" \ > out0.tmp