mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
- test for user-patches.sh
This commit is contained in:
parent
34f52c6ad0
commit
37540509dc
2
Makefile
2
Makefile
|
@ -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 \
|
||||||
|
|
|
@ -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"
|
|
@ -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" {
|
||||||
|
|
Loading…
Reference in a new issue