Mercurial > hg > nginx-tests
comparison proxy.t @ 1434:fc8341cf92a3
Tests: removed ngx_parse_inet6_url() "::" test from proxy.t.
It results in WSAEADDRNOTAVAIL on win32, be the connection errors detected,
which leads to connect() alert. On other systems, connect() is successful
but it uses the default port (80), which is out of documented ports range.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 24 Jan 2019 17:05:04 +0300 |
parents | 16a8962ff246 |
children | fbb90184102e |
comparison
equal
deleted
inserted
replaced
1433:3e0dcf1e7752 | 1434:fc8341cf92a3 |
---|---|
21 ############################################################################### | 21 ############################################################################### |
22 | 22 |
23 select STDERR; $| = 1; | 23 select STDERR; $| = 1; |
24 select STDOUT; $| = 1; | 24 select STDOUT; $| = 1; |
25 | 25 |
26 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(31); | 26 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(30); |
27 | 27 |
28 $t->write_file_expand('nginx.conf', <<'EOF'); | 28 $t->write_file_expand('nginx.conf', <<'EOF'); |
29 | 29 |
30 %%TEST_GLOBALS%% | 30 %%TEST_GLOBALS%% |
31 | 31 |
109 unlike(http_head('/'), qr/SEE-THIS/, 'proxy head request'); | 109 unlike(http_head('/'), qr/SEE-THIS/, 'proxy head request'); |
110 | 110 |
111 like(http_get('/var?b=127.0.0.1:' . port(8081) . '/'), qr/SEE-THIS/, | 111 like(http_get('/var?b=127.0.0.1:' . port(8081) . '/'), qr/SEE-THIS/, |
112 'proxy with variables'); | 112 'proxy with variables'); |
113 like(http_get('/var?b=u/'), qr/SEE-THIS/, 'proxy with variables to upstream'); | 113 like(http_get('/var?b=u/'), qr/SEE-THIS/, 'proxy with variables to upstream'); |
114 ok(http_get("/var?b=[::]"), 'proxy with variables - no ipv6 port'); | |
115 | 114 |
116 like(http_get('/timeout'), qr/200 OK/, 'proxy connect timeout'); | 115 like(http_get('/timeout'), qr/200 OK/, 'proxy connect timeout'); |
117 | 116 |
118 my $re = qr/(\d\.\d{3})/; | 117 my $re = qr/(\d\.\d{3})/; |
119 my $p0 = port(8080); | 118 my $p0 = port(8080); |