added tests for the nginx core bug regarding nginx variables under HUP reload: http://mailman.nginx.org/pipermail/nginx-devel/2012-May/002223.html
This commit is contained in:
Родитель
1075c325ee
Коммит
a486c4cf00
|
@ -0,0 +1,58 @@
|
|||
# vim:set ft= ts=4 sw=4 et fdm=marker:
|
||||
|
||||
BEGIN {
|
||||
$ENV{TEST_NGINX_USE_HUP} = 1;
|
||||
}
|
||||
|
||||
use lib 'lib';
|
||||
use Test::Nginx::Socket;
|
||||
|
||||
#worker_connections(1014);
|
||||
#master_on();
|
||||
#workers(2);
|
||||
log_level('debug');
|
||||
|
||||
repeat_each(2);
|
||||
|
||||
plan tests => repeat_each() * (3 * blocks());
|
||||
|
||||
#no_diff();
|
||||
#no_long_string();
|
||||
no_shuffle();
|
||||
|
||||
run_tests();
|
||||
|
||||
__DATA__
|
||||
|
||||
=== TEST 1: nginx variable hup bug (step 1)
|
||||
http://mailman.nginx.org/pipermail/nginx-devel/2012-May/002223.html
|
||||
--- config
|
||||
location /t {
|
||||
set $vv $http_host;
|
||||
set_by_lua $i 'return ngx.var.http_host';
|
||||
echo $i;
|
||||
}
|
||||
--- request
|
||||
GET /t
|
||||
--- response_body
|
||||
localhost
|
||||
--- no_error_log
|
||||
[error]
|
||||
|
||||
|
||||
|
||||
=== TEST 2: nginx variable hup bug (step 2)
|
||||
http://mailman.nginx.org/pipermail/nginx-devel/2012-May/002223.html
|
||||
--- config
|
||||
location /t {
|
||||
#set $vv $http_host;
|
||||
set_by_lua $i 'return ngx.var.http_host';
|
||||
echo $i;
|
||||
}
|
||||
--- request
|
||||
GET /t
|
||||
--- response_body
|
||||
localhost
|
||||
--- no_error_log
|
||||
[error]
|
||||
|
Загрузка…
Ссылка в новой задаче