comparison mail_smtp.t @ 397:847ea345becb

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 05 May 2014 11:46:01 +0400
parents c6b1430afc66
children 481d705b8610
comparison
equal deleted inserted replaced
396:5eb0df61f371 397:847ea345becb
138 $s->send(encode_base64('secret', '')); 138 $s->send(encode_base64('secret', ''));
139 $s->authok('auth login with username'); 139 $s->authok('auth login with username');
140 140
141 # Try auth plain with pipelining 141 # Try auth plain with pipelining
142 142
143 TODO: {
144 local $TODO = 'not yet' unless $t->has_version('1.5.6');
145 local $SIG{__WARN__} = sub {};
146
147 $s = Test::Nginx::SMTP->new(); 143 $s = Test::Nginx::SMTP->new();
148 $s->read(); 144 $s->read();
149 $s->send('EHLO example.com'); 145 $s->send('EHLO example.com');
150 $s->read(); 146 $s->read();
151 147
164 . encode_base64("\0test\@example.com\0secret", '') . CRLF 160 . encode_base64("\0test\@example.com\0secret", '') . CRLF
165 . 'MAIL FROM:<test@example.com> SIZE=100'); 161 . 'MAIL FROM:<test@example.com> SIZE=100');
166 $s->read(); 162 $s->read();
167 $s->ok('mail from after pipelined auth'); 163 $s->ok('mail from after pipelined auth');
168 164
169 }
170
171 # Try auth none 165 # Try auth none
172 166
173 $s = Test::Nginx::SMTP->new(); 167 $s = Test::Nginx::SMTP->new();
174 $s->read(); 168 $s->read();
175 $s->send('EHLO example.com'); 169 $s->send('EHLO example.com');
194 $s->send('MAIL FROM:<test@example.com> SIZE=100' . CRLF 188 $s->send('MAIL FROM:<test@example.com> SIZE=100' . CRLF
195 . 'RCPT TO:<test@example.com>' . CRLF 189 . 'RCPT TO:<test@example.com>' . CRLF
196 . 'RSET'); 190 . 'RSET');
197 191
198 $s->ok('pipelined mail from'); 192 $s->ok('pipelined mail from');
199
200 TODO: {
201 local $TODO = 'not yet' unless $t->has_version('1.5.6');
202 local $SIG{__WARN__} = sub {};
203
204 $s->ok('pipelined rcpt to'); 193 $s->ok('pipelined rcpt to');
205 $s->ok('pipelined rset'); 194 $s->ok('pipelined rset');
206
207 }
208 195
209 # Connection must stay even if error returned to rcpt to command 196 # Connection must stay even if error returned to rcpt to command
210 197
211 $s = Test::Nginx::SMTP->new(); 198 $s = Test::Nginx::SMTP->new();
212 $s->read(); 199 $s->read();