comparison h2_limit_req.t @ 889:266e3b2e88f9

Tests: adjusted HTTP/2 TODOs, request body fixes committed.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 01 Apr 2016 17:30:18 +0300
parents 8c3fa5a94743
children b4e9d2d97b7a
comparison
equal deleted inserted replaced
888:4ab795ab2e62 889:266e3b2e88f9
24 select STDOUT; $| = 1; 24 select STDOUT; $| = 1;
25 25
26 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite limit_req/) 26 my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite limit_req/)
27 ->plan(6); 27 ->plan(6);
28 28
29 # Some systems may have also a bug in not treating zero writev iovcnt as EINVAL 29 $t->todo_alerts() unless $t->has_version('1.9.14');
30
31 $t->todo_alerts();
32 30
33 $t->write_file_expand('nginx.conf', <<'EOF'); 31 $t->write_file_expand('nginx.conf', <<'EOF');
34 32
35 %%TEST_GLOBALS%% 33 %%TEST_GLOBALS%%
36 34
82 my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; 80 my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames;
83 is(read_body_file($frame->{headers}->{'x-body-file'}), 'TEST', 81 is(read_body_file($frame->{headers}->{'x-body-file'}), 'TEST',
84 'request body - limit req'); 82 'request body - limit req');
85 83
86 # request body delayed in limit_req - with an empty DATA frame 84 # request body delayed in limit_req - with an empty DATA frame
85 # "zero size buf in output" alerts seen
87 86
88 $sess = new_session(); 87 $sess = new_session();
89 $sid = new_stream($sess, { path => '/proxy_limit_req/', body_more => 1 }); 88 $sid = new_stream($sess, { path => '/proxy_limit_req/', body_more => 1 });
90 h2_body($sess, ''); 89 h2_body($sess, '');
91 select undef, undef, undef, 1.1; 90 select undef, undef, undef, 1.1;