# HG changeset patch # User Maxim Dounin # Date 1234129426 -10800 # Node ID 30d6cce3f0bdd071614ad2260c027695438dfaa0 # Parent 5f56040c39df924da52ff6636e883fb1d574d40d Tests: more checks for 235 code on successful smtp auth. Wrong code was fixed in 0.7.31, so it's now safe to convert remaining checks. diff --git a/smtp.t b/smtp.t --- a/smtp.t +++ b/smtp.t @@ -94,7 +94,7 @@ my $s = Test::Nginx::SMTP->new(); $s->check(qr/^5.. /, 'auth plain with bad password'); $s->send('AUTH PLAIN ' . encode_base64("\0test\@example.com\0secret", '')); -$s->ok('auth plain'); +$s->authok('auth plain'); # We are talking to backend from this point @@ -122,7 +122,7 @@ my $s = Test::Nginx::SMTP->new(); $s->send(encode_base64('test@example.com', '')); $s->check(qr/^334 UGFzc3dvcmQ6/, 'auth login simple password challenge'); $s->send(encode_base64('secret', '')); -$s->ok('auth login simple'); +$s->authok('auth login simple'); # Try auth plain with username. Details: #