mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2026-04-17 19:42:06 +02:00
tests: update tests associated with Rspamd
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
parent
55e6c28702
commit
dbcea3783f
@ -139,7 +139,7 @@ function teardown_file() { _default_teardown ; }
|
||||
_service_log_should_contain_string 'rspamd' 'S (no action)'
|
||||
|
||||
_print_mail_log_for_msgid 'rspamd-test-email-pass'
|
||||
assert_output --partial "stored mail into mailbox 'INBOX'"
|
||||
assert_output --partial 'saved mail to INBOX'
|
||||
|
||||
_count_files_in_directory_in_container /var/mail/localhost.localdomain/user1/new/ 3
|
||||
}
|
||||
@ -153,7 +153,7 @@ function teardown_file() { _default_teardown ; }
|
||||
assert_output --partial '5.7.1 Gtube pattern'
|
||||
|
||||
_print_mail_log_for_msgid 'dms-test-email-spam'
|
||||
refute_output --partial "stored mail into mailbox 'INBOX'"
|
||||
refute_output --partial 'saved mail to INBOX'
|
||||
assert_failure
|
||||
|
||||
_count_files_in_directory_in_container /var/mail/localhost.localdomain/user1/new/ 3
|
||||
@ -168,7 +168,7 @@ function teardown_file() { _default_teardown ; }
|
||||
assert_output --partial '5.7.1 ClamAV FOUND VIRUS "Eicar-Signature"'
|
||||
|
||||
_print_mail_log_for_msgid 'dms-test-email-spam'
|
||||
refute_output --partial "stored mail into mailbox 'INBOX'"
|
||||
refute_output --partial 'saved mail to INBOX'
|
||||
assert_failure
|
||||
|
||||
_count_files_in_directory_in_container /var/mail/localhost.localdomain/user1/new/ 3
|
||||
@ -258,7 +258,7 @@ function teardown_file() { _default_teardown ; }
|
||||
_service_log_should_contain_string 'rspamd' 'rewrite subject "Gtube pattern"'
|
||||
|
||||
_print_mail_log_for_msgid 'rspamd-test-email-rewrite_subject'
|
||||
assert_output --partial "stored mail into mailbox 'INBOX'"
|
||||
assert_output --partial 'saved mail to INBOX'
|
||||
|
||||
# check that the inbox contains the subject-rewritten e-mail
|
||||
_run_in_container_bash "grep --fixed-strings 'Subject: *** SPAM ***' /var/mail/localhost.localdomain/user1/new/*"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user