Mercurial > hg > nginx-tests
comparison mail_imap.t @ 1937:2a0a6035a1af
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 25 Aug 2023 18:12:08 +0400 |
parents | 156cb84b3c23 |
children |
comparison
equal
deleted
inserted
replaced
1936:716d7500317d | 1937:2a0a6035a1af |
---|---|
221 $s = Test::Nginx::IMAP->new(); | 221 $s = Test::Nginx::IMAP->new(); |
222 $s->read(); | 222 $s->read(); |
223 | 223 |
224 $s->send('a01 LOGIN {18+}' . CRLF | 224 $s->send('a01 LOGIN {18+}' . CRLF |
225 . 'te\"st@example.com' . ' "se\\\\\"cret"'); | 225 . 'te\"st@example.com' . ' "se\\\\\"cret"'); |
226 | |
227 TODO: { | |
228 local $TODO = 'not yet' unless $t->has_version('1.21.0'); | |
229 | |
230 $s->ok('backslash in literal'); | 226 $s->ok('backslash in literal'); |
231 | |
232 } | |
233 | 227 |
234 # pipelining | 228 # pipelining |
235 | 229 |
236 $s = Test::Nginx::IMAP->new(); | 230 $s = Test::Nginx::IMAP->new(); |
237 $s->read(); | 231 $s->read(); |
238 | 232 |
239 $s->send('a01 INVALID COMMAND WITH ARGUMENTS' . CRLF | 233 $s->send('a01 INVALID COMMAND WITH ARGUMENTS' . CRLF |
240 . 'a02 NOOP'); | 234 . 'a02 NOOP'); |
241 $s->check(qr/^a01 BAD/, 'pipelined invalid command'); | 235 $s->check(qr/^a01 BAD/, 'pipelined invalid command'); |
242 | |
243 TODO: { | |
244 local $TODO = 'not yet' unless $t->has_version('1.21.0'); | |
245 | |
246 $s->ok('pipelined noop after invalid command'); | 236 $s->ok('pipelined noop after invalid command'); |
247 | |
248 } | |
249 | 237 |
250 $s->send('a03 FOOBAR {10+}' . CRLF | 238 $s->send('a03 FOOBAR {10+}' . CRLF |
251 . 'test test ' . CRLF | 239 . 'test test ' . CRLF |
252 . 'a04 NOOP'); | 240 . 'a04 NOOP'); |
253 $s->check(qr/^a03 BAD/, 'invalid with non-sync literal'); | 241 $s->check(qr/^a03 BAD/, 'invalid with non-sync literal'); |
254 $s->check(qr/^(a04 |$)/, 'literal not command'); | 242 $s->check(qr/^(a04 |$)/, 'literal not command'); |
255 | 243 |
256 TODO: { | |
257 todo_skip('not yet', 2) unless $t->has_version('1.21.0'); | |
258 | |
259 # skipped without a fix, since with level-triggered event methods | 244 # skipped without a fix, since with level-triggered event methods |
260 # this hogs cpu till the connection is closed by the backend server, | 245 # this hogs cpu till the connection is closed by the backend server, |
261 # and generates a lot of debug logs | 246 # and generates a lot of debug logs |
262 | 247 |
263 $s = Test::Nginx::IMAP->new(); | 248 $s = Test::Nginx::IMAP->new(); |
266 $s->send('a01 LOGIN test@example.com secret' . CRLF | 251 $s->send('a01 LOGIN test@example.com secret' . CRLF |
267 . 'a02 LOGOUT'); | 252 . 'a02 LOGOUT'); |
268 $s->ok('pipelined login'); | 253 $s->ok('pipelined login'); |
269 $s->ok('pipelined logout'); | 254 $s->ok('pipelined logout'); |
270 | 255 |
271 } | 256 ############################################################################### |
272 | |
273 ############################################################################### |