comparison proxy_cache_convert_head.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 5a0bba53854b
children 882267679006
comparison
equal deleted inserted replaced
951:9361c7eddfc1 952:e9064d691790
37 37
38 proxy_cache_path %%TESTDIR%%/cache levels=1:2 38 proxy_cache_path %%TESTDIR%%/cache levels=1:2
39 keys_zone=NAME:1m; 39 keys_zone=NAME:1m;
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 proxy_cache NAME; 45 proxy_cache NAME;
46 46
47 proxy_cache_key $request_uri; 47 proxy_cache_key $request_uri;
49 proxy_cache_valid 200 302 2s; 49 proxy_cache_valid 200 302 2s;
50 50
51 add_header X-Cache-Status $upstream_cache_status; 51 add_header X-Cache-Status $upstream_cache_status;
52 52
53 location / { 53 location / {
54 proxy_pass http://127.0.0.1:8081/t.html; 54 proxy_pass http://127.0.0.1:%%PORT_1%%/t.html;
55 proxy_cache_convert_head off; 55 proxy_cache_convert_head off;
56 56
57 location /inner { 57 location /inner {
58 proxy_pass http://127.0.0.1:8081/t.html; 58 proxy_pass http://127.0.0.1:%%PORT_1%%/t.html;
59 proxy_cache_convert_head on; 59 proxy_cache_convert_head on;
60 } 60 }
61 } 61 }
62 62
63 location /on { 63 location /on {
64 proxy_pass http://127.0.0.1:8081/t.html; 64 proxy_pass http://127.0.0.1:%%PORT_1%%/t.html;
65 proxy_cache_convert_head on; 65 proxy_cache_convert_head on;
66 } 66 }
67 } 67 }
68 server { 68 server {
69 listen 127.0.0.1:8081; 69 listen 127.0.0.1:%%PORT_1%%;
70 server_name localhost; 70 server_name localhost;
71 71
72 location / { 72 location / {
73 add_header X-Method $request_method; 73 add_header X-Method $request_method;
74 } 74 }