2019-08-08 22:42:37 +00:00
|
|
|
load 'test_helper/common'
|
|
|
|
|
|
|
|
function setup() {
|
|
|
|
CONTAINER=$(docker run -d \
|
2020-09-17 23:37:42 +00:00
|
|
|
-v "$(duplicate_config_for_container .)":/tmp/docker-mailserver \
|
2019-08-08 22:42:37 +00:00
|
|
|
-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 17:20:31 +00:00
|
|
|
run docker exec $CONTAINER /bin/bash -c "ps aux --forest | grep -v grep | grep 'postgrey'"
|
2019-08-08 22:42:37 +00:00
|
|
|
assert_failure
|
|
|
|
}
|