Changeset 922:93d900bac201 in nginx-tests


Ignore:
Timestamp:
05/12/16 10:08:43 (18 months ago)
Author:
Sergey Kandaurov <pluknet@…>
Branch:
default
Message:

Tests: added regression test for proxy with no IPv6 port specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proxy.t

    r802 r922  
    2222select STDOUT; $| = 1;
    2323
    24 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(6);
     24my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(7);
    2525
    2626$t->write_file_expand('nginx.conf', <<'EOF');
     
    7171like(http_get('/var?b=127.0.0.1:8081/'), qr/SEE-THIS/, 'proxy with variables');
    7272like(http_get('/var?b=u/'), qr/SEE-THIS/, 'proxy with variables to upstream');
     73
     74SKIP: {
     75skip 'no ipv6', 1 unless $t->has_module('ipv6');
     76
     77TODO: {
     78todo_skip 'heap-buffer-overflow', 1
     79        unless $ENV{TEST_NGINX_UNSAFE} or $t->has_version('1.11.0');
     80
     81ok(http_get("/var?b=[::]"), 'proxy with variables - no ipv6 port');
     82
     83}
     84
     85}
    7386
    7487my $s = http('', start => 1);
Note: See TracChangeset for help on using the changeset viewer.