mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-31 15:30:50 +02:00
update BATS & helper + minor updates to BATS variables (#2988)
This commit is contained in:
parent
2b4105ef0a
commit
41c44cb91d
24 changed files with 137 additions and 136 deletions
|
@ -1,14 +1,14 @@
|
|||
load "${REPOSITORY_ROOT}/test/helper/setup"
|
||||
load "${REPOSITORY_ROOT}/test/helper/common"
|
||||
|
||||
TEST_NAME_PREFIX='Dovecot protocols:'
|
||||
BATS_TEST_NAME_PREFIX='[Dovecot] (protocols) '
|
||||
CONTAINER1_NAME='dms-test_dovecot_protocols_all'
|
||||
CONTAINER2_NAME='dms-test_dovecot_protocols_ipv4'
|
||||
CONTAINER3_NAME='dms-test_dovecot_protocols_ipv6'
|
||||
|
||||
function teardown() { _default_teardown ; }
|
||||
|
||||
@test "${TEST_NAME_PREFIX} dual-stack IP configuration" {
|
||||
@test "dual-stack IP configuration" {
|
||||
export CONTAINER_NAME=${CONTAINER1_NAME}
|
||||
local CUSTOM_SETUP_ARGUMENTS=(--env DOVECOT_INET_PROTOCOLS=)
|
||||
|
||||
|
@ -20,7 +20,7 @@ function teardown() { _default_teardown ; }
|
|||
assert_output '#listen = *, ::'
|
||||
}
|
||||
|
||||
@test "${TEST_NAME_PREFIX} IPv4 configuration" {
|
||||
@test "IPv4 configuration" {
|
||||
export CONTAINER_NAME=${CONTAINER2_NAME}
|
||||
local CUSTOM_SETUP_ARGUMENTS=(--env DOVECOT_INET_PROTOCOLS=ipv4)
|
||||
|
||||
|
@ -32,7 +32,7 @@ function teardown() { _default_teardown ; }
|
|||
assert_output 'listen = *'
|
||||
}
|
||||
|
||||
@test "${TEST_NAME_PREFIX} IPv6 configuration" {
|
||||
@test "IPv6 configuration" {
|
||||
export CONTAINER_NAME=${CONTAINER3_NAME}
|
||||
local CUSTOM_SETUP_ARGUMENTS=(--env DOVECOT_INET_PROTOCOLS=ipv6)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue