not ok 14 checking dovecot: ldap mail delivery works in 10290ms
# (from function `assert_output' in file test/test_helper/bats-assert/src/assert_output.bash, line 194,
# in test file test/tests/serial/mail_with_ldap.bats, line 156)
# `assert_output 1' failed
#
# -- output differs --
# expected : 1
# actual : 2
# --
#
Test passes even when newer version is available.
run docker exec mail_with_ldap /bin/sh -c "ls -A /var/mail/${FQDN_LOCALHOST_A}/some.user/new && grep -R '.*' /var/mail/${FQDN_LOCALHOST_A}/some.user/new/"
assert_success
assert_output 1
i found that the update notification for postmaster affects this test (output from local dev)
✗ checking dovecot: ldap mail delivery works [10313]
(from function `assert_output' in file test/test_helper/bats-assert/src/assert_output.bash, line 194,
in test file test/tests/serial/mail_with_ldap.bats, line 162)
`assert_output 1' failed
-- output differs --
expected (1 lines):
1
actual (43 lines):
1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026
1681201663.M563732P1022.mail.my-domain.com,S=590,W=605
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:Return-Path: <[email protected]>
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:Delivered-To: [email protected]
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:Received: from mail.my-domain.com
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605: by mail.my-domain.com with LMTP
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605: id jVJUIf8ZNWT+AwAAUIhAew
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605: (envelope-from <[email protected]>)
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605: for <[email protected]>; Tue, 11 Apr 2023 08:27:43 +0000
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:Received: by mail.my-domain.com (Postfix, from userid 0)
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605: id 857262BE93FE; Tue, 11 Apr 2023 08:27:43 +0000 (UTC)
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:Subject: Test Message test-email.txt
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:Message-Id: <[email protected]>
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:Date: Tue, 11 Apr 2023 08:27:43 +0000 (UTC)
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:From: root <[email protected]>
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:
/var/mail/localhost.localdomain/some.user/new/1681201663.M563732P1022.mail.my-domain.com,S=590,W=605:This is a test mail.
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Return-Path: <[email protected]>
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Delivered-To: [email protected]
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Received: from mail.my-domain.com
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026: by mail.my-domain.com with LMTP
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026: id XpAiIf8ZNWT9AwAAUIhAew
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026: (envelope-from <[email protected]>)
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026: for <[email protected]>; Tue, 11 Apr 2023 08:27:43 +0000
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Received: by mail.my-domain.com (Postfix, from userid 0)
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026: id 8200E2BE943E; Tue, 11 Apr 2023 08:27:42 +0000 (UTC)
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:To: [email protected]
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Subject: Mailserver update available! [ 11.3.1 --> 12.0.0 ]
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:MIME-Version: 1.0
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Content-Type: text/plain; charset="UTF-8"
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Content-Transfer-Encoding: 8bit
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Message-Id: <[email protected]>
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Date: Tue, 11 Apr 2023 08:27:42 +0000 (UTC)
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:From: root <[email protected]>
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Hello [email protected]!
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:There is a docker-mailserver update available on your host: mail.my-domain.com
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Current version: 11.3.1
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Latest version: 12.0.0
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:
/var/mail/localhost.localdomain/some.user/new/1681201663.M563641P1021.mail.my-domain.com,S=1000,W=1026:Changelog: https://github.com/docker-mailserver/docker-mailserver/blob/master/CHANGELOG.md
Reporting this test error should not require me to check the mailserver ports are open (of course they were not open to the internet during tests) nor the other preliminary checks except the searching for duplicate issues.
Preliminary Checks
Affected Component(s)
tests
What happened and when does this occur?
When running tests for an older image when a new one is available test
ldap mail delivery worksfails (output from CI)What did you expect to happen?
Test passes even when newer version is available.
How do we replicate the issue?
makefor an old version when a newer version is availableDMS version
11.3.1
What operating system is DMS running on?
Linux
Which operating system version?
Ubuntu 22.04 LTS (local dev), Ubuntu 18.04.6 LTS (CI)
What instruction set architecture is DMS running on?
AMD64 / x86_64
What container orchestration tool are you using?
Docker
docker-compose.yml
Relevant log output
after some investigation with
i found that the update notification for postmaster affects this test (output from local dev)
Other relevant information
Pull request in #3252
What level of experience do you have with Docker and mail servers?
Code of conduct
Improvements to this form?
Reporting this test error should not require me to check the mailserver ports are open (of course they were not open to the internet during tests) nor the other preliminary checks except the searching for duplicate issues.