comparison proxy_cache_bypass.t @ 974:882267679006

Tests: simplified parallel modifications in tests. Mail tests were simplified in c227348453db.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 12 Jul 2016 17:39:03 +0300
parents e9064d691790
children 196d33c2bb45
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
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:%%PORT_0%%; 40 listen 127.0.0.1:8080;
41 server_name localhost; 41 server_name localhost;
42 42
43 location / { 43 location / {
44 proxy_pass http://127.0.0.1:%%PORT_1%%; 44 proxy_pass http://127.0.0.1:8081;
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:%%PORT_1%%; 63 listen 127.0.0.1:8081;
64 server_name localhost; 64 server_name localhost;
65 65
66 location / { 66 location / {
67 } 67 }
68 } 68 }