mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-02 00:54:54 +02:00
Extract default relay host test
centralize common test variables and functions
This commit is contained in:
parent
6a7608fe7b
commit
db160bd977
5 changed files with 65 additions and 38 deletions
|
@ -1,5 +1,4 @@
|
|||
load 'test_helper/bats-support/load'
|
||||
load 'test_helper/bats-assert/load'
|
||||
|
||||
|
||||
|
||||
#
|
||||
|
@ -1816,14 +1815,7 @@ function count_processed_changes() {
|
|||
assert_success
|
||||
}
|
||||
|
||||
#
|
||||
# default relay host
|
||||
#
|
||||
|
||||
@test "checking default relay host: default relay host is added to main.cf" {
|
||||
run docker exec mail_with_default_relay /bin/sh -c 'grep -e "^relayhost = default.relay.host.invalid:25" /etc/postfix/main.cf | wc -l | grep 1'
|
||||
assert_success
|
||||
}
|
||||
|
||||
#
|
||||
# relay hosts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue