Mercurial > hg > nginx-tests
comparison proxy_cache_bypass.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 | bf86f9ad0c23 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
35 %%TEST_GLOBALS_HTTP%% | 35 %%TEST_GLOBALS_HTTP%% |
36 | 36 |
37 proxy_cache_path %%TESTDIR%%/cache keys_zone=one:1m; | 37 proxy_cache_path %%TESTDIR%%/cache keys_zone=one:1m; |
38 | 38 |
39 server { | 39 server { |
40 listen 127.0.0.1:8080; | 40 listen 127.0.0.1:%%PORT_0%%; |
41 server_name localhost; | 41 server_name localhost; |
42 | 42 |
43 location / { | 43 location / { |
44 proxy_pass http://127.0.0.1:8081; | 44 proxy_pass http://127.0.0.1:%%PORT_1%%; |
45 | 45 |
46 proxy_cache one; | 46 proxy_cache one; |
47 proxy_cache_key $uri; | 47 proxy_cache_key $uri; |
48 proxy_cache_bypass $arg_bypass; | 48 proxy_cache_bypass $arg_bypass; |
49 proxy_cache_valid any 1y; | 49 proxy_cache_valid any 1y; |
58 | 58 |
59 add_header X-Cache-Status $upstream_cache_status; | 59 add_header X-Cache-Status $upstream_cache_status; |
60 } | 60 } |
61 | 61 |
62 server { | 62 server { |
63 listen 127.0.0.1:8081; | 63 listen 127.0.0.1:%%PORT_1%%; |
64 server_name localhost; | 64 server_name localhost; |
65 | 65 |
66 location / { | 66 location / { |
67 } | 67 } |
68 } | 68 } |