Mercurial > hg > nginx-tests
comparison h2_proxy_ssl.t @ 1020:196d33c2bb45
Tests: removed TODO and try_run() checks for legacy versions.
Also removed now unused spdy.t and shmem prerequisite.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 31 Aug 2016 18:21:07 +0300 |
parents | 882267679006 |
children | 8ef51dbb5d69 |
comparison
equal
deleted
inserted
replaced
1019:41139d6f8b7b | 1020:196d33c2bb45 |
---|---|
23 select STDERR; $| = 1; | 23 select STDERR; $| = 1; |
24 select STDOUT; $| = 1; | 24 select STDOUT; $| = 1; |
25 | 25 |
26 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy/) | 26 my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy/) |
27 ->has_daemon('openssl')->plan(1); | 27 ->has_daemon('openssl')->plan(1); |
28 | |
29 $t->todo_alerts() unless $t->has_version('1.9.14'); | |
30 | 28 |
31 $t->write_file_expand('nginx.conf', <<'EOF'); | 29 $t->write_file_expand('nginx.conf', <<'EOF'); |
32 | 30 |
33 %%TEST_GLOBALS%% | 31 %%TEST_GLOBALS%% |
34 | 32 |
81 ############################################################################### | 79 ############################################################################### |
82 | 80 |
83 # request body with an empty DATA frame proxied to ssl backend | 81 # request body with an empty DATA frame proxied to ssl backend |
84 # "zero size buf in output" alerts seen | 82 # "zero size buf in output" alerts seen |
85 | 83 |
86 TODO: { | |
87 local $TODO = 'not yet' unless $t->has_version('1.9.14'); | |
88 | |
89 my $s = Test::Nginx::HTTP2->new(); | 84 my $s = Test::Nginx::HTTP2->new(); |
90 my $sid = $s->new_stream({ path => '/proxy_ssl/', body_more => 1 }); | 85 my $sid = $s->new_stream({ path => '/proxy_ssl/', body_more => 1 }); |
91 $s->h2_body(''); | 86 $s->h2_body(''); |
92 my $frames = $s->read(all => [{ sid => $sid, fin => 1 }]); | 87 my $frames = $s->read(all => [{ sid => $sid, fin => 1 }]); |
93 | 88 |
94 my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; | 89 my ($frame) = grep { $_->{type} eq "HEADERS" } @$frames; |
95 is($frame->{headers}->{':status'}, 200, 'empty request body'); | 90 is($frame->{headers}->{':status'}, 200, 'empty request body'); |
96 | 91 |
97 } | |
98 | |
99 ############################################################################### | 92 ############################################################################### |