update tests for Postgrey

This commit is contained in:
georglauterbach 2023-12-04 00:44:01 +01:00
parent 0bed3a549d
commit 542fabff15
No known key found for this signature in database
GPG key ID: F367F7C43C118578

View file

@ -57,7 +57,7 @@ function teardown_file() { _default_teardown ; }
_should_have_log_entry \
'action=greylist' \
'reason=new' \
'client_address=127.0.0.1/32, sender=user@external.tld, recipient=user1@localhost.localdomain'
'client_address=127.0.0.1, sender=user@external.tld, recipient=user1@localhost.localdomain'
_repeat_until_success_or_timeout 10 _run_in_container grep \
'Recipient address rejected: Delayed by Postgrey' \
@ -75,7 +75,7 @@ function teardown_file() { _default_teardown ; }
_should_have_log_entry \
'action=pass' \
'reason=triplet found' \
'client_address=127.0.0.1/32, sender=user@external.tld, recipient=user1@localhost.localdomain'
'client_address=127.0.0.1, sender=user@external.tld, recipient=user1@localhost.localdomain'
}
@ -92,7 +92,7 @@ function teardown_file() { _default_teardown ; }
_should_have_log_entry \
'action=pass' \
'reason=client whitelist' \
'client_address=127.0.0.1/32, sender=test@whitelist.tld, recipient=user1@localhost.localdomain'
'client_address=127.0.0.1, sender=test@whitelist.tld, recipient=user1@localhost.localdomain'
}
@test "should whitelist recipient 'user2@otherdomain.tld'" {
@ -101,7 +101,7 @@ function teardown_file() { _default_teardown ; }
_should_have_log_entry \
'action=pass' \
'reason=recipient whitelist' \
'client_address=127.0.0.1/32, sender=test@nonwhitelist.tld, recipient=user2@otherdomain.tld'
'client_address=127.0.0.1, sender=test@nonwhitelist.tld, recipient=user2@otherdomain.tld'
}
function _send_test_mail() {