Mercurial > hg > nginx-tests
changeset 922:93d900bac201
Tests: added regression test for proxy with no IPv6 port specified.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 12 May 2016 13:08:43 +0300 |
parents | bc9e519ab3bc |
children | 9239393e73c8 |
files | proxy.t |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy.t Tue May 10 14:56:47 2016 +0300 +++ b/proxy.t Thu May 12 13:08:43 2016 +0300 @@ -21,7 +21,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(6); +my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(7); $t->write_file_expand('nginx.conf', <<'EOF'); @@ -71,6 +71,19 @@ like(http_get('/var?b=127.0.0.1:8081/'), qr/SEE-THIS/, 'proxy with variables'); like(http_get('/var?b=u/'), qr/SEE-THIS/, 'proxy with variables to upstream'); +SKIP: { +skip 'no ipv6', 1 unless $t->has_module('ipv6'); + +TODO: { +todo_skip 'heap-buffer-overflow', 1 + unless $ENV{TEST_NGINX_UNSAFE} or $t->has_version('1.11.0'); + +ok(http_get("/var?b=[::]"), 'proxy with variables - no ipv6 port'); + +} + +} + my $s = http('', start => 1); sleep 3;