comparison mail_smtp.t @ 1689:dbd19195df8a

Tests: adjusted mail_smtp.t "long pipelined" TODO. Prior to fixed reading with fully filled buffer in 2851e4c7de03 (1.21.0), test for long pipelined commands leads to connection close by nginx, which can result in RST and no response seen by the client, notably on win32. While here, cleaned up permitted smtp_auth methods in that particular server.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 24 May 2021 22:09:54 +0300
parents 57ff83315818
children 2a0a6035a1af
comparison
equal deleted inserted replaced
1688:31ea330ac360 1689:dbd19195df8a
50 } 50 }
51 51
52 server { 52 server {
53 listen 127.0.0.1:8027; 53 listen 127.0.0.1:8027;
54 protocol smtp; 54 protocol smtp;
55 smtp_auth login plain none cram-md5 external; 55 smtp_auth none;
56 smtp_client_buffer 128; 56 smtp_client_buffer 128;
57 } 57 }
58 } 58 }
59 59
60 http { 60 http {
283 . 'RCPT TO:<bar@example.com>' . CRLF 283 . 'RCPT TO:<bar@example.com>' . CRLF
284 . 'RCPT TO:<baz@example.com>' . CRLF 284 . 'RCPT TO:<baz@example.com>' . CRLF
285 . 'RCPT TO:<foobar@example.com>' . CRLF 285 . 'RCPT TO:<foobar@example.com>' . CRLF
286 . 'RSET'); 286 . 'RSET');
287 287
288 TODO: {
289 todo_skip 'long pipelined - not yet', 6 unless $t->has_version('1.21.0');
290
288 $s->ok('long pipelined mail from'); 291 $s->ok('long pipelined mail from');
289
290 TODO: {
291 local $TODO = 'not yet' unless $t->has_version('1.21.0');
292
293 $s->ok('long pipelined rcpt to'); 292 $s->ok('long pipelined rcpt to');
294 $s->ok('long pipelined rcpt to 2'); 293 $s->ok('long pipelined rcpt to 2');
295 $s->ok('long pipelined rcpt to 3'); 294 $s->ok('long pipelined rcpt to 3');
296 $s->ok('long pipelined rcpt to 4'); 295 $s->ok('long pipelined rcpt to 4');
297 $s->ok('long pipelined rset'); 296 $s->ok('long pipelined rset');