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:
Georg Lauterbach 2023-02-06 23:59:01 +01:00 committed by GitHub
parent 4efbbbe571
commit 2caec2cdf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 134 additions and 156 deletions

View file

@ -221,6 +221,7 @@ function _run_until_success_or_timeout() {
local STARTTIME=${SECONDS}
# shellcheck disable=SC2154
until run "${@}" && [[ ${status} -eq 0 ]]
do
sleep 1
@ -367,6 +368,7 @@ function _add_mail_account_then_wait_until_ready() {
#
# @param ${1} = number of lines that the output should have
function _should_output_number_of_lines() {
# shellcheck disable=SC2154
assert_equal "${#lines[@]}" "${1:?Number of lines not provided}"
}