-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
other: test normalizations #3739
Comments
Re-write function _send_email_and_get_id() {
export "${1:?Mail ID must be set for _send_email_and_get_id}"
local -n MAIL_ID=${1}
shift 1
_wait_for_empty_mail_queue_in_container
_send_email "${@}"
_wait_for_empty_mail_queue_in_container
# The unique ID Postfix (and other services) use may be different in length
# on different systems (e.g. amd64 (11) vs aarch64 (10)). Hence, we use a
# range to safely capture it.
MAIL_ID=$(_exec_in_container tac /var/log/mail.log \
| grep -E -m 1 'postfix/smtpd.*: [A-Z0-9]+: client=localhost' \
| grep -E -o '[A-Z0-9]{9,12}' || true)
assert_not_equal "${MAIL_ID}" ''
} This avoids subshells that mess with checks (e.g. this changes makes the final check Reminder to myself: this change is already stashed; just pop the stash. |
Just going to dump some notes that have since gone a bit stale but were related to the changes PRs for this issue addressed. No expectation for anyone to read through all this, but there may be something helpful when troubleshooting the changes associated to this issue. Initial swaks PR change overview (Outdated)
TODO:
Follow-up PRs
Maintenance notes
Unrelated to swaks migration:
ReferencesMay still have some relevance/value when refactoring existing tests and with recent changes this context would potentially be even less obvious and not fun to track down 😅 Original text files history:
|
Subject
I would like to contribute to the project
Description
We need a follow-up of #3732. Tasks:
.txt
suffix for_send_email
and_nc_wrapper
smtp_delivery.bats
, remove the need forexisting/userX
and remove these files (ref: https://github.com/docker-mailserver/docker-mailserver/pull/3732/files#r1438975373)_send_email_unchecked
that works like_send_email
but has noassert_success
directly afterward to check that all went well and add such anassert_success
in_send_email
--auth PLAIN
instead--auth LOGIN
?The text was updated successfully, but these errors were encountered: