Mercurial > hg > nginx-tests
diff lib/Test/Nginx/SMTP.pm @ 60:11e33ba0656a
Tests: check for 235 code on successful smtp auth.
For now, convert only check for auth login with username test since it's
already marked as TODO.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 12 Jan 2009 21:53:49 +0300 |
parents | b5b4271554b0 |
children | 5f56040c39df |
line wrap: on
line diff
--- a/lib/Test/Nginx/SMTP.pm Mon Jan 12 06:08:05 2009 +0300 +++ b/lib/Test/Nginx/SMTP.pm Mon Jan 12 21:53:49 2009 +0300 @@ -67,6 +67,11 @@ Test::More->builder->like($self->read(), qr/^2\d\d /, @_); } +sub authok { + my $self = shift; + Test::More->builder->like($self->read(), qr/^235 /, @_); +} + ############################################################################### sub smtp_test_daemon {