Mercurial > hg > nginx-tests
changeset 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 | 4ab795ab2e62 |
children | b06beed07bc8 |
files | h2_limit_req.t h2_proxy_ssl.t h2_request_body.t |
diffstat | 3 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/h2_limit_req.t Fri Apr 01 13:16:50 2016 +0300 +++ b/h2_limit_req.t Fri Apr 01 17:30:18 2016 +0300 @@ -26,9 +26,7 @@ my $t = Test::Nginx->new()->has(qw/http http_v2 proxy rewrite limit_req/) ->plan(6); -# Some systems may have also a bug in not treating zero writev iovcnt as EINVAL - -$t->todo_alerts(); +$t->todo_alerts() unless $t->has_version('1.9.14'); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -84,6 +82,7 @@ 'request body - limit req'); # request body delayed in limit_req - with an empty DATA frame +# "zero size buf in output" alerts seen $sess = new_session(); $sid = new_stream($sess, { path => '/proxy_limit_req/', body_more => 1 });
--- a/h2_proxy_ssl.t Fri Apr 01 13:16:50 2016 +0300 +++ b/h2_proxy_ssl.t Fri Apr 01 17:30:18 2016 +0300 @@ -26,7 +26,7 @@ my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy/) ->has_daemon('openssl')->plan(1); -$t->todo_alerts(); +$t->todo_alerts() unless $t->has_version('1.9.14'); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -84,7 +84,7 @@ # "zero size buf in output" alerts seen TODO: { -local $TODO = 'not yet'; +local $TODO = 'not yet' unless $t->has_version('1.9.14'); my $sess = new_session(); my $sid = new_stream($sess, { path => '/proxy_ssl/', body_more => 1 });
--- a/h2_request_body.t Fri Apr 01 13:16:50 2016 +0300 +++ b/h2_request_body.t Fri Apr 01 17:30:18 2016 +0300 @@ -25,7 +25,7 @@ my $t = Test::Nginx->new()->has(qw/http http_v2 proxy/)->plan(35); -$t->todo_alerts(); +$t->todo_alerts() unless $t->has_version('1.9.14'); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -133,7 +133,7 @@ is($frame->{headers}->{':status'}, 200, 'request body - empty'); TODO: { -local $TODO = 'not yet'; +local $TODO = 'not yet' unless $t->has_version('1.9.14'); ok($frame->{headers}{'x-body-file'}, 'request body - empty body file'); @@ -151,7 +151,7 @@ # RST_STREAM with zero code received TODO: { -local $TODO = 'not yet'; +local $TODO = 'not yet' unless $t->has_version('1.9.14'); $sess = new_session(); $sid = new_stream($sess, { body_more => 1 });