Mercurial > hg > nginx-tests
comparison proxy_ssi_body.t @ 1381:97c8280de681
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 08 Oct 2018 15:30:39 +0300 |
parents | 630c3e7a5d40 |
children |
comparison
equal
deleted
inserted
replaced
1380:f50c7d90f5c9 | 1381:97c8280de681 |
---|---|
56 EOF | 56 EOF |
57 | 57 |
58 $t->write_file('ssi.html', 'X<!--# include virtual="test.html" -->X'); | 58 $t->write_file('ssi.html', 'X<!--# include virtual="test.html" -->X'); |
59 $t->write_file('test.html', 'YY'); | 59 $t->write_file('test.html', 'YY'); |
60 | 60 |
61 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /sendfile on/ | |
62 and !$t->has_version('1.13.4'); | |
63 $t->run(); | 61 $t->run(); |
64 | 62 |
65 ############################################################################### | 63 ############################################################################### |
66 | 64 |
67 # Request body cache file is released once a response is got. | 65 # Request body cache file is released once a response is got. |
68 # If later a subrequest tries to use body, it fails. | 66 # If later a subrequest tries to use body, it fails. |
69 | 67 |
70 TODO: { | |
71 local $TODO = 'prematurely pruned' unless $t->has_version('1.13.4'); | |
72 | |
73 like(http_get_body('/proxy/ssi.html', "1234567890"), qr/^XYYX$/m, | 68 like(http_get_body('/proxy/ssi.html', "1234567890"), qr/^XYYX$/m, |
74 'body in file in proxied subrequest'); | 69 'body in file in proxied subrequest'); |
75 | |
76 } | |
77 | 70 |
78 ############################################################################### | 71 ############################################################################### |
79 | 72 |
80 sub http_get_body { | 73 sub http_get_body { |
81 my ($url, $body, %extra) = @_; | 74 my ($url, $body, %extra) = @_; |