comparison debug_connection_syslog.t @ 1237:e4974af3fb12

Tests: adjusted udp ports to match allocated ports range.
author Andrey Zelenkov <zelenkov@nginx.com>
date Wed, 13 Sep 2017 19:04:25 +0300
parents fcd65708672d
children
comparison
equal deleted inserted replaced
1236:93f749c1d5c5 1237:e4974af3fb12
36 } 36 }
37 37
38 http { 38 http {
39 %%TEST_GLOBALS_HTTP%% 39 %%TEST_GLOBALS_HTTP%%
40 40
41 error_log syslog:server=127.0.0.1:%%PORT_8081_UDP%% alert; 41 error_log syslog:server=127.0.0.1:%%PORT_8981_UDP%% alert;
42 error_log syslog:server=127.0.0.1:%%PORT_8082_UDP%% alert; 42 error_log syslog:server=127.0.0.1:%%PORT_8982_UDP%% alert;
43 43
44 server { 44 server {
45 listen 127.0.0.1:8080; 45 listen 127.0.0.1:8080;
46 listen [::1]:%%PORT_8080%%; 46 listen [::1]:%%PORT_8080%%;
47 server_name localhost; 47 server_name localhost;
62 IO::Socket::INET->new( 62 IO::Socket::INET->new(
63 Proto => 'udp', 63 Proto => 'udp',
64 LocalAddr => "127.0.0.1:$_" 64 LocalAddr => "127.0.0.1:$_"
65 ) 65 )
66 or die "Can't open syslog socket $_: $!"; 66 or die "Can't open syslog socket $_: $!";
67 } port(8081), port(8082); 67 } port(8981), port(8982);
68 68
69 is(get_syslog('/', $s1), '', 'no debug_connection syslog 1'); 69 is(get_syslog('/', $s1), '', 'no debug_connection syslog 1');
70 is(get_syslog('/', $s2), '', 'no debug_connection syslog 2'); 70 is(get_syslog('/', $s2), '', 'no debug_connection syslog 2');
71 71
72 my @msgs = get_syslog('/debug', $s1, $s2); 72 my @msgs = get_syslog('/debug', $s1, $s2);