Mercurial > hg > nginx-tests
comparison proxy_cache_valid.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 | 66426ca24671 |
children |
comparison
equal
deleted
inserted
replaced
1380:f50c7d90f5c9 | 1381:97c8280de681 |
---|---|
104 | 104 |
105 like(get('/t2.html', 'X-CC: max-age=1'), qr/403 Forbidden/, 'intercept error'); | 105 like(get('/t2.html', 'X-CC: max-age=1'), qr/403 Forbidden/, 'intercept error'); |
106 | 106 |
107 $t->write_file('t2.html', 'NOOP'); | 107 $t->write_file('t2.html', 'NOOP'); |
108 | 108 |
109 TODO: { | |
110 local $TODO = 'not yet' unless $t->has_version('1.13.6'); | |
111 | |
112 like(http_get('/t2.html'), qr/403 Forbidden/, 'error cached from max-age'); | 109 like(http_get('/t2.html'), qr/403 Forbidden/, 'error cached from max-age'); |
113 | |
114 } | |
115 | 110 |
116 # ticket #1382, cache item "error" field was set regardless of u->cacheable. | 111 # ticket #1382, cache item "error" field was set regardless of u->cacheable. |
117 | 112 |
118 like(http_get('/'), qr/403 Forbidden/, 'error no-cache'); | 113 like(http_get('/'), qr/403 Forbidden/, 'error no-cache'); |
119 | 114 |
120 $t->write_file('index.html', ''); | 115 $t->write_file('index.html', ''); |
121 | 116 |
122 TODO: { | |
123 local $TODO = 'not yet' unless $t->has_version('1.13.6'); | |
124 | |
125 like(http_get('/'), qr/200 OK/, 'error no-cache - not cacheable'); | 117 like(http_get('/'), qr/200 OK/, 'error no-cache - not cacheable'); |
126 | |
127 } | |
128 | 118 |
129 ############################################################################### | 119 ############################################################################### |
130 | 120 |
131 sub get { | 121 sub get { |
132 my ($url, $extra) = @_; | 122 my ($url, $extra) = @_; |