1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-06-25 00:38:11 +02:00
docker-mailserver/test/mail_with_postgrey_disabled_by_default.bats

20 lines
625 B
Plaintext
Raw Normal View History

load 'test_helper/common'
function setup() {
CONTAINER=$(docker run -d \
-v "`pwd`/test/config":/tmp/docker-mailserver \
-v "`pwd`/test/test-files":/tmp/docker-mailserver-test:ro \
-e DMS_DEBUG=0 \
-h mail.my-domain.com -t ${NAME})
# using postfix availability as start indicator, this might be insufficient for postgrey
wait_for_smtp_port_in_container $CONTAINER
}
function teardown() {
docker rm -f $CONTAINER
}
@test "checking process: postgrey (disabled in default configuration)" {
2019-08-16 19:20:31 +02:00
run docker exec $CONTAINER /bin/bash -c "ps aux --forest | grep -v grep | grep 'postgrey'"
assert_failure
}