Mercurial > hg > nginx-tests
comparison proxy.t @ 1171:cdbdb75cf194
Tests: dropped try_run() checks for hosts without IPv6 support.
Tests for geoip are special as they depend on IPv6 support in the GeoIP library.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 04 May 2017 14:31:10 +0300 |
parents | cf14cfe9ec8c |
children | 766bcbb632ee |
comparison
equal
deleted
inserted
replaced
1170:cf14cfe9ec8c | 1171:cdbdb75cf194 |
---|---|
78 | 78 |
79 like(http_get('/var?b=127.0.0.1:' . port(8081) . '/'), qr/SEE-THIS/, | 79 like(http_get('/var?b=127.0.0.1:' . port(8081) . '/'), qr/SEE-THIS/, |
80 'proxy with variables'); | 80 'proxy with variables'); |
81 like(http_get('/var?b=u/'), qr/SEE-THIS/, 'proxy with variables to upstream'); | 81 like(http_get('/var?b=u/'), qr/SEE-THIS/, 'proxy with variables to upstream'); |
82 | 82 |
83 SKIP: { | |
84 skip 'no ipv6', 1 unless socket(my $s, &AF_INET6, &SOCK_STREAM, 0); | |
85 | |
86 TODO: { | 83 TODO: { |
87 todo_skip 'heap-buffer-overflow', 1 | 84 todo_skip 'heap-buffer-overflow', 1 |
88 unless $ENV{TEST_NGINX_UNSAFE} or $t->has_version('1.11.0'); | 85 unless $ENV{TEST_NGINX_UNSAFE} or $t->has_version('1.11.0'); |
89 | 86 |
90 ok(http_get("/var?b=[::]"), 'proxy with variables - no ipv6 port'); | 87 ok(http_get("/var?b=[::]"), 'proxy with variables - no ipv6 port'); |
91 | |
92 } | |
93 | 88 |
94 } | 89 } |
95 | 90 |
96 like(http_get('/timeout'), qr/200 OK/, 'proxy connect timeout'); | 91 like(http_get('/timeout'), qr/200 OK/, 'proxy connect timeout'); |
97 | 92 |