mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
Extract mail_with_postgrey into own test files
This commit is contained in:
parent
fcddf578d2
commit
d8956d3b29
5 changed files with 131 additions and 94 deletions
20
test/mail_with_postgrey_disabled_by_default.bats
Normal file
20
test/mail_with_postgrey_disabled_by_default.bats
Normal file
|
@ -0,0 +1,20 @@
|
|||
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)" {
|
||||
run docker exec mail /bin/bash -c "ps aux --forest | grep -v grep | grep 'postgrey'"
|
||||
assert_failure
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue