Mercurial > hg > nginx-tests
comparison post_action.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 | 56c3a8310076 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
592:355f2d5ff60f | 593:6c0a5903d0ae |
---|---|
20 ############################################################################### | 20 ############################################################################### |
21 | 21 |
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(6); | 25 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(5); |
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 |
76 | 76 |
77 $t->stop(); | 77 $t->stop(); |
78 | 78 |
79 like(`cat ${\($t->testdir())}/access.log`, qr/post/, 'post action in logs'); | 79 like(`cat ${\($t->testdir())}/access.log`, qr/post/, 'post action in logs'); |
80 | 80 |
81 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); | |
82 | |
83 ############################################################################### | 81 ############################################################################### |