Mercurial > hg > nginx-tests
comparison proxy_set_body.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 |
comparison
equal
deleted
inserted
replaced
973:7d7aef8b9f3a | 974:882267679006 |
---|---|
33 | 33 |
34 http { | 34 http { |
35 %%TEST_GLOBALS_HTTP%% | 35 %%TEST_GLOBALS_HTTP%% |
36 | 36 |
37 server { | 37 server { |
38 listen 127.0.0.1:%%PORT_0%%; | 38 listen 127.0.0.1:8080; |
39 server_name localhost; | 39 server_name localhost; |
40 | 40 |
41 location / { | 41 location / { |
42 proxy_pass http://127.0.0.1:%%PORT_0%%/body; | 42 proxy_pass http://127.0.0.1:8080/body; |
43 proxy_set_body "body"; | 43 proxy_set_body "body"; |
44 } | 44 } |
45 | 45 |
46 location /p1 { | 46 location /p1 { |
47 proxy_pass http://127.0.0.1:%%PORT_0%%/x1; | 47 proxy_pass http://127.0.0.1:8080/x1; |
48 proxy_set_body "body"; | 48 proxy_set_body "body"; |
49 } | 49 } |
50 | 50 |
51 location /p2 { | 51 location /p2 { |
52 proxy_pass http://127.0.0.1:%%PORT_0%%/body; | 52 proxy_pass http://127.0.0.1:8080/body; |
53 proxy_set_body "body two"; | 53 proxy_set_body "body two"; |
54 } | 54 } |
55 | 55 |
56 location /x1 { | 56 location /x1 { |
57 add_header X-Accel-Redirect /p2; | 57 add_header X-Accel-Redirect /p2; |
58 return 204; | 58 return 204; |
59 } | 59 } |
60 | 60 |
61 location /body { | 61 location /body { |
62 add_header X-Body $request_body; | 62 add_header X-Body $request_body; |
63 proxy_pass http://127.0.0.1:%%PORT_0%%/empty; | 63 proxy_pass http://127.0.0.1:8080/empty; |
64 } | 64 } |
65 | 65 |
66 location /empty { | 66 location /empty { |
67 return 204; | 67 return 204; |
68 } | 68 } |