Mercurial > hg > nginx-tests
comparison ssi.t @ 593:6c0a5903d0ae
Tests: cleanup now duplicating tests for no alerts.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 27 May 2015 17:09:22 +0300 |
parents | 2cd00179f4b2 |
children | 35832048546e |
comparison
equal
deleted
inserted
replaced
592:355f2d5ff60f | 593:6c0a5903d0ae |
---|---|
20 | 20 |
21 select STDERR; $| = 1; | 21 select STDERR; $| = 1; |
22 select STDOUT; $| = 1; | 22 select STDOUT; $| = 1; |
23 | 23 |
24 my $t = Test::Nginx->new()->has(qw/http ssi cache proxy rewrite shmem/) | 24 my $t = Test::Nginx->new()->has(qw/http ssi cache proxy rewrite shmem/) |
25 ->plan(28); | 25 ->plan(27); |
26 | 26 |
27 $t->write_file_expand('nginx.conf', <<'EOF'); | 27 $t->write_file_expand('nginx.conf', <<'EOF'); |
28 | 28 |
29 %%TEST_GLOBALS%% | 29 %%TEST_GLOBALS%% |
30 | 30 |
188 like(http_get('/var_format.html?custom=1'), | 188 like(http_get('/var_format.html?custom=1'), |
189 qr/x\w+, \d\d:\d\d:\d\dx/, 'custom ssi'); | 189 qr/x\w+, \d\d:\d\d:\d\dx/, 'custom ssi'); |
190 like(http_get('/var_format.html'), | 190 like(http_get('/var_format.html'), |
191 qr/x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d [\w ]+x/, 'default ssi'); | 191 qr/x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d [\w ]+x/, 'default ssi'); |
192 | 192 |
193 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); | |
194 | |
195 ############################################################################### | 193 ############################################################################### |