Mercurial > hg > nginx-tests
comparison smtp.t @ 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 | d053b4bf6ec6 |
children | 726c3c2a8b8c |
comparison
equal
deleted
inserted
replaced
59:bc3351f157ef | 60:11e33ba0656a |
---|---|
139 $s->read(); | 139 $s->read(); |
140 | 140 |
141 $s->send('AUTH LOGIN ' . encode_base64('test@example.com', '')); | 141 $s->send('AUTH LOGIN ' . encode_base64('test@example.com', '')); |
142 $s->check(qr/^334 UGFzc3dvcmQ6/, 'auth login with username password challenge'); | 142 $s->check(qr/^334 UGFzc3dvcmQ6/, 'auth login with username password challenge'); |
143 $s->send(encode_base64('secret', '')); | 143 $s->send(encode_base64('secret', '')); |
144 $s->ok('auth login with username'); | 144 $s->authok('auth login with username'); |
145 | 145 |
146 } | 146 } |
147 | 147 |
148 # Try auth plain with pipelining | 148 # Try auth plain with pipelining |
149 | 149 |