mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 01:55:29 +02:00
Rspamd: update history key in Redis configuration (#3927)
This commit is contained in:
parent
b5b193ca4c
commit
e21e5e0490
3 changed files with 24 additions and 1 deletions
|
@ -86,6 +86,18 @@ function teardown_file() { _default_teardown ; }
|
|||
refute_line --regexp 'rewrite_subject = [0-9]+;'
|
||||
}
|
||||
|
||||
@test 'Rspamd Redis configuration is correct' {
|
||||
_run_in_container rspamadm configdump redis
|
||||
assert_success
|
||||
assert_line 'expand_keys = true;'
|
||||
assert_line 'servers = "127.0.0.1:6379";'
|
||||
|
||||
_run_in_container rspamadm configdump history_redis
|
||||
assert_success
|
||||
assert_line 'compress = true;'
|
||||
assert_line 'key_prefix = "rs_history{{COMPRESS}}";'
|
||||
}
|
||||
|
||||
@test "contents of '/etc/rspamd/override.d/' are copied" {
|
||||
local OVERRIDE_D='/etc/rspamd/override.d'
|
||||
_file_exists_in_container "${OVERRIDE_D}/testmodule_complicated.conf"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue