Mercurial > hg > nginx-tests
comparison grpc_request_buffering.t @ 1415:01d806268a12
Tests: removed TODOs for gRPC fixes merged in 1.14.2.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 11 Dec 2018 18:59:31 +0300 |
parents | 97c8280de681 |
children | 236d038dc04a |
comparison
equal
deleted
inserted
replaced
1414:f5b18471e17a | 1415:01d806268a12 |
---|---|
89 is($frame->{headers}{'x-body'}, 'Hello', 'request body in memory'); | 89 is($frame->{headers}{'x-body'}, 'Hello', 'request body in memory'); |
90 | 90 |
91 # tcp_nopush usage on peer connections | 91 # tcp_nopush usage on peer connections |
92 # reopen window for request body after initial window was exhausted | 92 # reopen window for request body after initial window was exhausted |
93 | 93 |
94 TODO: { | |
95 local $TODO = 'not yet' if $t->read_file('nginx.conf') =~ /sendfile on/ | |
96 and !$t->has_version('1.15.1') and $^O eq 'freebsd'; | |
97 | |
98 $frames = $f->{http_start}('/proxy'); | 94 $frames = $f->{http_start}('/proxy'); |
99 is(eval(join '+', map { $_->{length} } grep { $_->{type} eq "DATA" } @$frames), | 95 is(eval(join '+', map { $_->{length} } grep { $_->{type} eq "DATA" } @$frames), |
100 65535, 'preserve_output - first body bytes'); | 96 65535, 'preserve_output - first body bytes'); |
101 | 97 |
102 } | |
103 | |
104 # expect body cleanup is disabled with preserve_output (ticket #1565). | 98 # expect body cleanup is disabled with preserve_output (ticket #1565). |
105 # after request body first bytes were proxied on behalf of initial window size, | 99 # after request body first bytes were proxied on behalf of initial window size, |
106 # send response header from upstream, this leads to body cleanup code path | 100 # send response header from upstream, this leads to body cleanup code path |
107 | |
108 TODO: { | |
109 local $TODO = 'not yet' unless $t->has_version('1.15.1'); | |
110 | 101 |
111 $frames = $f->{http_end}(); | 102 $frames = $f->{http_end}(); |
112 is(eval(join '+', map { $_->{length} } grep { $_->{type} eq "DATA" } @$frames), | 103 is(eval(join '+', map { $_->{length} } grep { $_->{type} eq "DATA" } @$frames), |
113 465, 'preserve_output - last body bytes'); | 104 465, 'preserve_output - last body bytes'); |
114 | 105 |
115 like(`grep -F '[crit]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no crits'); | 106 like(`grep -F '[crit]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no crits'); |
116 | |
117 } | |
118 | |
119 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /sendfile on/ | |
120 and !$t->has_version('1.15.1'); | |
121 | 107 |
122 ############################################################################### | 108 ############################################################################### |
123 | 109 |
124 sub grpc { | 110 sub grpc { |
125 my ($server, $client, $f, $s, $c, $sid, $uri); | 111 my ($server, $client, $f, $s, $c, $sid, $uri); |