1
0
mirror of https://github.com/tomav/docker-mailserver.git synced 2024-07-10 18:04:27 +02:00
docker-mailserver/test/tests/parallel/set1/spam_virus
Georg Lauterbach cd1721334c
scripts: Rspamd stabilization pt. 2 (#3282)
* move modules adjustment file to new location

Because we link `/tmp/docker-mailserver/rspamd/override.d` to
`/etc/rspamd/override.d`, I think it makes sense to move the modules
adjustment file into `/tmp/docker-mailserver/rspamd/` as well.

I write the code in a way that it is backwards compatible for now, so
this is NOT a breaking change.

* minor improvement to `__rspamd__handle_user_modules_adjustments`

The expansion of `ARGUMENT3` is now done in a way that only adds the
whitespace in case the variable is set and not null.

* move test file structure to respect latest changes

Because we're now linking `rspamd/override.d/`, we can simplify the
setup a bit. But this requires a change in directory structure.

The current Rspamd test will be renamed to `rspamd_full.bats`, because I
plan on adding more tests in different files for different feature sets.
This is done to make this feature well-tested!

* improved and added tests to Rspamd-full

FYI: The line

```bats
_run_in_container grep 'sieve_global_extensions.*\+vnd\.dovecot\.pipe'
"${SIEVE_CONFIG_FILE}"
```

was testing a condition that should actually not be met, but when I
started working on this feature, I thought this was the correct
configuration. Adding the `assert_success` statements revealed this
wrong line.

I also added tests to check whether `override.d` is linked correctly.

* renamed: `rspamd.bats` => `rspamd_full.bats`

* added new tests for incomplete Rspamd feature set

We now test that warnings are emitted & features are disabled correctly.

* update documentation
2023-04-23 14:02:56 +02:00
..
amavis.bats Update SA_KILL values; follow up to #3058 (#3204) 2023-03-27 01:59:43 +02:00
clamav.bats tests: improve _send_email (#3105) 2023-02-24 10:44:18 +01:00
disabled_clamav_spamassassin.bats tests: improve _send_email (#3105) 2023-02-24 10:44:18 +01:00
dnsbl.bats chore(Postfix): disable DNSBLs (#3069) 2023-02-11 00:24:09 +01:00
fail2ban.bats tests: improve _send_email (#3105) 2023-02-24 10:44:18 +01:00
postgrey_enabled.bats chore(Postfix): disable DNSBLs (#3069) 2023-02-11 00:24:09 +01:00
postscreen.bats tests: improve _send_email (#3105) 2023-02-24 10:44:18 +01:00
rspamd_full.bats scripts: Rspamd stabilization pt. 2 (#3282) 2023-04-23 14:02:56 +02:00
rspamd_partly.bats scripts: Rspamd stabilization pt. 2 (#3282) 2023-04-23 14:02:56 +02:00
spam_junk_folder.bats tests: improve _send_email (#3105) 2023-02-24 10:44:18 +01:00
undef_spam_subject.bats tests(refactor): Improve consistency and documentation for test helpers (#3012) 2023-01-22 00:05:28 +01:00