Mercurial > hg > nginx-tests
comparison h2.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 | 236d038dc04a |
children |
comparison
equal
deleted
inserted
replaced
1936:716d7500317d | 1937:2a0a6035a1af |
---|---|
302 ($frame) = grep { $_->{type} eq "DATA" } @$frames; | 302 ($frame) = grep { $_->{type} eq "DATA" } @$frames; |
303 is($frame, undef, 'HEAD - no body'); | 303 is($frame, undef, 'HEAD - no body'); |
304 | 304 |
305 # CONNECT | 305 # CONNECT |
306 | 306 |
307 TODO: { | |
308 local $TODO = 'not yet' unless $t->has_version('1.21.1'); | |
309 | |
310 $s = Test::Nginx::HTTP2->new(); | 307 $s = Test::Nginx::HTTP2->new(); |
311 $sid = $s->new_stream({ method => 'CONNECT' }); | 308 $sid = $s->new_stream({ method => 'CONNECT' }); |
312 $frames = $s->read(all => [{ sid => $sid, fin => 1 }]); | 309 $frames = $s->read(all => [{ sid => $sid, fin => 1 }]); |
313 | 310 |
314 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; | 311 ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; |
315 is($frame->{headers}->{':status'}, 405, 'CONNECT - not allowed'); | 312 is($frame->{headers}->{':status'}, 405, 'CONNECT - not allowed'); |
316 | |
317 } | |
318 | 313 |
319 # TRACE | 314 # TRACE |
320 | 315 |
321 $s = Test::Nginx::HTTP2->new(); | 316 $s = Test::Nginx::HTTP2->new(); |
322 $sid = $s->new_stream({ method => 'TRACE' }); | 317 $sid = $s->new_stream({ method => 'TRACE' }); |