Mercurial > hg > nginx-tests
diff grpc.t @ 1693:5ac6efbe5552
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:18 +0300 |
parents | 816d6ceefe50 |
children | 90201294e1b6 |
line wrap: on
line diff
--- a/grpc.t +++ b/grpc.t @@ -47,8 +47,6 @@ http { listen 127.0.0.1:8080 http2; server_name localhost; - http2_max_field_size 128k; - http2_max_header_size 128k; http2_body_preread_size 128k; large_client_header_buffers 4 32k; @@ -92,11 +90,7 @@ http { EOF -# suppress deprecation warning - -open OLDERR, ">&", \*STDERR; close STDERR; $t->run(); -open STDERR, ">&", \*OLDERR; ############################################################################### @@ -284,9 +278,6 @@ ok(!$frame, 'grpc error - no DATA frame' # malformed response body length not equal to content-length -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.1'); - $f->{http_start}('/SayHello'); $f->{data}('Hello'); $frames = $f->{http_err2}(cl => 42); @@ -299,8 +290,6 @@ ok($frame, 'response body less than cont ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; ok($frame, 'response body more than content-length'); -} - # continuation from backend, expect parts assembled $f->{http_start}('/SayHello'); @@ -481,10 +470,6 @@ is($frame->{flags}, 0, 'DATA padding - f # DATA padding with Content-Length -TODO: { -local $TODO = 'not yet' - if $t->has_version('1.19.1') and !$t->has_version('1.19.9'); - $f->{http_start}('/SayPadding'); $f->{data}('Hello'); $frames = $f->{http_end}(body_padding => 42, cl => length('Hello world')); @@ -493,8 +478,6 @@ is($frame->{data}, 'Hello world', 'DATA is($frame->{length}, 11, 'DATA padding cl - length'); is($frame->{flags}, 0, 'DATA padding cl - flags'); -} - # :authority inheritance $frames = $f->{http_start}('/SayHello?if=1'); @@ -548,9 +531,6 @@ is($frame->{headers}{':method'}, 'HEAD', $f->{data}('Hello'); $f->{http_end}(); -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.0'); - # receiving END_STREAM followed by WINDOW_UPDATE on incomplete request body $f->{http_start}('/Discard_WU'); @@ -565,8 +545,6 @@ is($frame->{flags}, 5, 'discard WINDOW_U (undef, $frame) = grep { $_->{type} eq "HEADERS" } @$frames; is($frame->{flags}, 5, 'discard NO_ERROR - trailers'); -} - # receiving END_STREAM followed by several RST_STREAM NO_ERROR $f->{http_start}('/Discard_NE3'); @@ -595,14 +573,8 @@ ok($frame->{headers}{'grpc-status'}, 'ke $frames = $f->{http_start}('/KeepAlive', reuse => 1); ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; - -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.5'); - ok($frame, 'keepalive 3 - connection reused'); -} - undef $f; $f = grpc();