You've already forked docker-mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-07 23:03:10 +02:00
tests: refactor POP3, IMAP (actually SASLauthd + RIMAP) & relay (#3062)
* refactor `mail_pop3.bats` * refactor `mail_with_imap.bats` * refactor `mail_with_relays.bats` * moved test that that did not belong into POP3 test * slightly clean up `no_container.bats` Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
@ -8,10 +8,10 @@ load "${REPOSITORY_ROOT}/test/helper/common"
|
||||
BATS_TEST_NAME_PREFIX='[No Existing Container] '
|
||||
|
||||
function setup_file() {
|
||||
# Fail early if the testing image is already running:
|
||||
assert_not_equal "$(docker ps | grep -o "${IMAGE_NAME}")" "${IMAGE_NAME}"
|
||||
run docker ps # fail early if the testing image is already running:
|
||||
assert_success
|
||||
refute_output --partial "${IMAGE_NAME}"
|
||||
|
||||
# Copy the base config that `setup.sh` will volume mount to a container it runs:
|
||||
export TEST_TMP_CONFIG
|
||||
TEST_TMP_CONFIG=$(_duplicate_config_for_container . 'no_container')
|
||||
}
|
||||
|
Reference in New Issue
Block a user