- test for user-patches.sh

This commit is contained in:
Sebastian Kaiser 2019-11-08 02:22:33 +01:00
parent 34f52c6ad0
commit 37540509dc
3 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ run:
-v "`pwd`/test/config":/tmp/docker-mailserver \ -v "`pwd`/test/config":/tmp/docker-mailserver \
-v "`pwd`/test/test-files":/tmp/docker-mailserver-test:ro \ -v "`pwd`/test/test-files":/tmp/docker-mailserver-test:ro \
-v "`pwd`/test/onedir":/var/mail-state \ -v "`pwd`/test/onedir":/var/mail-state \
-v "`pwd`/test/config/user-patches/user-patches.sh":/tmp/docker-mailserver/user-patches.sh:ro \ -v "`pwd`/test/config/user-patches/user-patches.sh":/tmp/docker-mailserver/user-patches.sh \
-e ENABLE_CLAMAV=1 \ -e ENABLE_CLAMAV=1 \
-e SPOOF_PROTECTION=1 \ -e SPOOF_PROTECTION=1 \
-e ENABLE_SPAMASSASSIN=1 \ -e ENABLE_SPAMASSASSIN=1 \

View file

@ -3,4 +3,4 @@
# This user script will be executed between configuration and starting daemons # This user script will be executed between configuration and starting daemons
# To enable it you must save it in your config directory as "user-patches.sh" # To enable it you must save it in your config directory as "user-patches.sh"
## ##
echo "Default user-patches.sh successfully executed!" echo "Default user-patches.sh successfully executed"

View file

@ -28,8 +28,8 @@ function count_processed_changes() {
# #
@test "checking configuration: user-patches.sh executed" { @test "checking configuration: user-patches.sh executed" {
run docker logs mail | grep "Default user-patches.sh successfully executed!" run echo -n "`docker logs mail | grep 'user\-patches\.sh'`"
assert_success assert_output --partial "Default user-patches.sh successfully executed"
} }
@test "checking configuration: hostname/domainname" { @test "checking configuration: hostname/domainname" {