Mercurial > hg > nginx-tests
comparison http_include.t @ 1693:5ac6efbe5552
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:18 +0300 |
parents | ed2be714a3af |
children |
comparison
equal
deleted
inserted
replaced
1692:f6795e2e6a4b | 1693:5ac6efbe5552 |
---|---|
75 $t->write_file('sif.conf', 'return 200 SIF;'); | 75 $t->write_file('sif.conf', 'return 200 SIF;'); |
76 $t->write_file('lif.conf', 'return 200 LIF;'); | 76 $t->write_file('lif.conf', 'return 200 LIF;'); |
77 $t->write_file('lmt.conf', 'deny all;'); | 77 $t->write_file('lmt.conf', 'deny all;'); |
78 $t->write_file('ups.conf', "server 127.0.0.1:$p;"); | 78 $t->write_file('ups.conf', "server 127.0.0.1:$p;"); |
79 | 79 |
80 $t->try_run('no include in any context')->plan(5); | 80 $t->run()->plan(5); |
81 | 81 |
82 ############################################################################### | 82 ############################################################################### |
83 | 83 |
84 like(http_get('/?s=1'), qr/SIF/, 'include in server if'); | 84 like(http_get('/?s=1'), qr/SIF/, 'include in server if'); |
85 like(http_get('/?l=1'), qr/LIF/, 'include in location if'); | 85 like(http_get('/?l=1'), qr/LIF/, 'include in location if'); |