adjust Rspamd tests to new implementation

This commit is contained in:
georglauterbach 2024-01-26 14:44:21 +01:00
parent c243a0ac9b
commit b74266c17b
No known key found for this signature in database
GPG Key ID: F367F7C43C118578
1 changed files with 2 additions and 2 deletions

View File

@ -255,8 +255,8 @@ function teardown_file() { _default_teardown ; }
} }
@test 'SPAM_SUBJECT works' { @test 'SPAM_SUBJECT works' {
_file_exists_in_container /usr/lib/dovecot/sieve-global/before/rspamd_spam_subject.sieve _file_exists_in_container /usr/lib/dovecot/sieve-global/before/spam_subject.sieve
_file_exists_in_container /usr/lib/dovecot/sieve-global/before/rspamd_spam_subject.svbin _file_exists_in_container /usr/lib/dovecot/sieve-global/before/spam_subject.svbin
# we only have one e-mail in the junk folder, hence using '*' is fine # we only have one e-mail in the junk folder, hence using '*' is fine
_run_in_container_bash "grep --fixed-strings 'Subject: [POTENTIAL SPAM]' /var/mail/localhost.localdomain/user1/.Junk/new/*" _run_in_container_bash "grep --fixed-strings 'Subject: [POTENTIAL SPAM]' /var/mail/localhost.localdomain/user1/.Junk/new/*"