1
1
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-10-19 13:48:27 +02:00
docker-mailserver/test
Georg Lauterbach b9dbec3276
scripts: refactored scripts located under target/bin/ (#2500)
* refactored scripts located under `target/bin/`

The scripts under `target/bin/` now use the new log and I replaced some
`""` with `''` on the way. The functionality stays the same, this mostly
style and log.

* corrected fail2ban (script and tests)

* corrected OpenDKIM log output in tests

* reverted (some) changes to `sedfile`

Moreover, a few messages for BATS were streamlined and a regression in
the linting script reverted.

* apple PR feedback

* improve log output from `fail2ban` script

The new output has a single, clear message with the '[  ERROR  ]  '
prefix, and then output that explains the error afterwards. This is
coherent with the logging style which should be used while providing
more information than just a single line about IPTables not functioning.

* simplified `setquota` script

* consistently named the `__usage` function

Before, scripts located under `target/bin/` were using `usage` or
`__usage`. Now, they're using `__usage` as they should.

* improved `sedfile`

With `sedfile`, we cannot use the helper functions in a nice way because
it is used early in the Dockerfile at a stage where the helper scripts
are not yet copied. The script has been adjusted to be canonical with
all the other scripts under `target/bin/`.

* fixed tests

* removed `__usage` from places where it does not belong

`__usage` is to be used on wrong user input, not on other failures as
well. This was fixed in `delquota` and `setquota`.

* apply PR review feedback
2022-03-26 09:30:09 +01:00
..
bats@54e965fa9d Revert "check-for-changes: performance improvements + wait for settle (#2104)" 2021-08-28 19:16:34 -04:00
config tests(feat): Complete rewrite of letsencrypt tests (#2286) 2021-11-16 16:00:16 +01:00
docker-openldap formatting files according to standard (#1619) 2020-09-24 14:54:21 +02:00
linting ${@:+$@} -> ${@} 2022-03-08 18:32:15 -05:00
test_helper tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
test-files tests(chore): Adjust supported FQDNs in test certs + add wildcard and acme.json configs (#2284) 2021-11-03 20:25:25 +00:00
default_relay_host.bats Provide complete refactoring of openDKIM script (#1812) 2021-02-18 10:29:34 +01:00
dovecot_inet_protocol.bats Introduce DOVECOT_INET_PROTOCOLS env (#2358) 2022-01-06 00:53:18 +01:00
helper-functions.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_changedetector.bats scripts: new log (#2493) 2022-03-21 07:07:52 +01:00
mail_disabled_clamav_spamassassin.bats Introduce CLAMAV_MESSAGE_SIZE_LIMIT env (#2453) 2022-03-03 16:17:01 +01:00
mail_dnsbl.bats Introduce ENABLE_DNSBL env (#2342) 2022-01-03 22:03:46 +01:00
mail_fail2ban.bats scripts: refactored scripts located under target/bin/ (#2500) 2022-03-26 09:30:09 +01:00
mail_fetchmail_parallel.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_fetchmail.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_hostname.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_lmtp_ip.bats PERMIT_DOCKER=none as new default value (#2424) 2022-03-02 16:03:40 +01:00
mail_pop3.bats PERMIT_DOCKER=none as new default value (#2424) 2022-03-02 16:03:40 +01:00
mail_postfix_inet.bats Catch errors on config duplication command 2020-10-20 09:33:47 +02:00
mail_postscreen.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_privacy.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_quotas_disabled.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_smtponly.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_spam_bounced.bats PERMIT_DOCKER=none as new default value (#2424) 2022-03-02 16:03:40 +01:00
mail_spam_junk_folder.bats PERMIT_DOCKER=none as new default value (#2424) 2022-03-02 16:03:40 +01:00
mail_special_use_folders.bats scripts: small refactorings (#2485) 2022-03-17 11:24:30 +01:00
mail_ssl_letsencrypt.bats scripts: new log (#2493) 2022-03-21 07:07:52 +01:00
mail_ssl_manual.bats Improve test, get rid of sleep (#2492) 2022-03-20 13:26:23 +01:00
mail_tls_dhparams.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_undef_spam_subject.bats first refactoring fr *.bats according to shellcheck 2020-11-05 19:15:28 +01:00
mail_with_imap.bats PERMIT_DOCKER=none as new default value (#2424) 2022-03-02 16:03:40 +01:00
mail_with_ldap.bats Use FQDN as REPORT_SENDER default value. (#2487) 2022-03-18 19:41:02 +01:00
mail_with_mdbox.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_with_postgrey_disabled_by_default.bats first refactoring fr *.bats according to shellcheck 2020-11-05 19:15:28 +01:00
mail_with_postgrey.bats PERMIT_DOCKER=none as new default value (#2424) 2022-03-02 16:03:40 +01:00
mail_with_relays.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
mail_with_sdbox.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
no_container.bats setup.sh: docker_container first, then fall back to docker_image (#2134) 2021-09-06 10:13:12 +00:00
open_dkim.bats scripts: refactored scripts located under target/bin/ (#2500) 2022-03-26 09:30:09 +01:00
permit_docker.bats Rootless Podman security update (#2393) 2022-02-09 10:25:09 +01:00
security_tls_cipherlists.bats tests: remove legacy functions / tests (#2434) 2022-03-02 14:55:17 +01:00
sedfile.bats scripts: refactored scripts located under target/bin/ (#2500) 2022-03-26 09:30:09 +01:00
test_helper.bats Introduce CLAMAV_MESSAGE_SIZE_LIMIT env (#2453) 2022-03-03 16:17:01 +01:00
tests.bats scripts: refactored scripts located under target/bin/ (#2500) 2022-03-26 09:30:09 +01:00