Mercurial > hg > nginx-tests
comparison sub_filter_multi.t @ 952:e9064d691790
Tests: converted tests to run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:39:13 +0300 |
parents | 2f1b10b3ff61 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
37 | 37 |
38 http { | 38 http { |
39 %%TEST_GLOBALS_HTTP%% | 39 %%TEST_GLOBALS_HTTP%% |
40 | 40 |
41 server { | 41 server { |
42 listen 127.0.0.1:8080; | 42 listen 127.0.0.1:%%PORT_0%%; |
43 server_name localhost; | 43 server_name localhost; |
44 | 44 |
45 sub_filter_types *; | 45 sub_filter_types *; |
46 sub_filter foo bar; | 46 sub_filter foo bar; |
47 | 47 |
196 | 196 |
197 location /shortbuf/match1 { | 197 location /shortbuf/match1 { |
198 sub_filter_once off; | 198 sub_filter_once off; |
199 sub_filter abpatternyz +; | 199 sub_filter abpatternyz +; |
200 | 200 |
201 proxy_pass http://127.0.0.1:8081/; | 201 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
202 proxy_buffering off; | 202 proxy_buffering off; |
203 } | 203 } |
204 | 204 |
205 location /shortbuf/match2 { | 205 location /shortbuf/match2 { |
206 sub_filter_once off; | 206 sub_filter_once off; |
207 sub_filter abpatternyz +; | 207 sub_filter abpatternyz +; |
208 sub_filter abpaernyz -; | 208 sub_filter abpaernyz -; |
209 | 209 |
210 proxy_pass http://127.0.0.1:8081/; | 210 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
211 proxy_buffering off; | 211 proxy_buffering off; |
212 } | 212 } |
213 | 213 |
214 location /shortbuf/match3 { | 214 location /shortbuf/match3 { |
215 sub_filter_once off; | 215 sub_filter_once off; |
216 sub_filter abpatternyz +; | 216 sub_filter abpatternyz +; |
217 sub_filter abpaernyz -; | 217 sub_filter abpaernyz -; |
218 sub_filter _ *; | 218 sub_filter _ *; |
219 | 219 |
220 proxy_pass http://127.0.0.1:8081/; | 220 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
221 proxy_buffering off; | 221 proxy_buffering off; |
222 } | 222 } |
223 | 223 |
224 location /shortbuf/match4 { | 224 location /shortbuf/match4 { |
225 sub_filter_once off; | 225 sub_filter_once off; |
226 sub_filter patt +; | 226 sub_filter patt +; |
227 | 227 |
228 proxy_pass http://127.0.0.1:8081/; | 228 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
229 proxy_buffering off; | 229 proxy_buffering off; |
230 } | 230 } |
231 | 231 |
232 location /shortbuf/match5 { | 232 location /shortbuf/match5 { |
233 sub_filter_once off; | 233 sub_filter_once off; |
234 sub_filter abpatternyz +; | 234 sub_filter abpatternyz +; |
235 sub_filter abpa -; | 235 sub_filter abpa -; |
236 sub_filter tter *; | 236 sub_filter tter *; |
237 | 237 |
238 proxy_pass http://127.0.0.1:8081/; | 238 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
239 proxy_buffering off; | 239 proxy_buffering off; |
240 } | 240 } |
241 } | 241 } |
242 | 242 |
243 server { | 243 server { |
244 listen 127.0.0.1:8081; | 244 listen 127.0.0.1:%%PORT_1%%; |
245 | 245 |
246 limit_rate 4; | 246 limit_rate 4; |
247 limit_rate_after 160; | 247 limit_rate_after 160; |
248 | 248 |
249 location / { | 249 location / { |