Mercurial > hg > nginx-tests
changeset 1229:6979619de0e3
Tests: added stream $status test with invalid PROXY header.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 13 Oct 2017 18:14:59 +0300 |
parents | 31045e639732 |
children | a3d23d16712d |
files | stream_status_variable.t |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream_status_variable.t +++ b/stream_status_variable.t @@ -77,12 +77,13 @@ stream { server { listen 127.0.0.1:8086 proxy_protocol; return SEE-THIS; + access_log %%TESTDIR%%/400.log status; } } EOF -$t->try_run('no stream access_log')->plan(5); +$t->try_run('no stream access_log')->plan(6); ############################################################################### @@ -98,6 +99,7 @@ undef $s; $t->stop(); is($t->read_file('200.log'), "200\n", 'stream status 200'); +is($t->read_file('400.log'), "400\n", 'stream status 400'); is($t->read_file('403.log'), "403\n", 'stream status 403'); is($t->read_file('500.log'), "500\n", 'stream status 500'); is($t->read_file('502.log'), "502\n", 'stream status 502');