qpsmtpd/t/plugin_tests/auth/authdeny
Matt Simerson a5420149bd remove test counters from plugin tests
replace with done_testing(), which provides the same "make sure to kvetch if tests fail to run" without requiring humans to do the bookkeeping.
2014-09-17 00:11:32 -07:00

15 lines
376 B
Perl

#!perl -w
sub register_tests {
my $self = shift;
$self->register_test("test_authdeny");
}
sub test_authdeny {
my $self = shift;
my $address = Qpsmtpd::Address->parse('<me@example.com>');
my ($ret, $note) = $self->hook_auth($self->qp->transaction, 'bogus_method',
'bogus_user');
is ($ret, DECLINED, "bogus_user is not free to abuse my relay");
}