Mercurial > hg > nginx-tests
comparison h2_proxy_ssl.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 | af2cd0ba6ca7 |
children | 4dc302d8e04f |
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_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 | 28 |
29 $t->todo_alerts(); | 29 $t->todo_alerts() unless $t->has_version('1.9.14'); |
30 | 30 |
31 $t->write_file_expand('nginx.conf', <<'EOF'); | 31 $t->write_file_expand('nginx.conf', <<'EOF'); |
32 | 32 |
33 %%TEST_GLOBALS%% | 33 %%TEST_GLOBALS%% |
34 | 34 |
82 | 82 |
83 # request body with an empty DATA frame proxied to ssl backend | 83 # request body with an empty DATA frame proxied to ssl backend |
84 # "zero size buf in output" alerts seen | 84 # "zero size buf in output" alerts seen |
85 | 85 |
86 TODO: { | 86 TODO: { |
87 local $TODO = 'not yet'; | 87 local $TODO = 'not yet' unless $t->has_version('1.9.14'); |
88 | 88 |
89 my $sess = new_session(); | 89 my $sess = new_session(); |
90 my $sid = new_stream($sess, { path => '/proxy_ssl/', body_more => 1 }); | 90 my $sid = new_stream($sess, { path => '/proxy_ssl/', body_more => 1 }); |
91 h2_body($sess, ''); | 91 h2_body($sess, ''); |
92 my $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); | 92 my $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); |