Mercurial > hg > nginx-tests
comparison body_chunked.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 | 44ce08f5259f |
comparison
equal
deleted
inserted
replaced
973:7d7aef8b9f3a | 974:882267679006 |
---|---|
35 | 35 |
36 http { | 36 http { |
37 %%TEST_GLOBALS_HTTP%% | 37 %%TEST_GLOBALS_HTTP%% |
38 | 38 |
39 upstream u { | 39 upstream u { |
40 server 127.0.0.1:%%PORT_2%%; | 40 server 127.0.0.1:8082; |
41 server 127.0.0.1:%%PORT_0%% backup; | 41 server 127.0.0.1:8080 backup; |
42 } | 42 } |
43 | 43 |
44 server { | 44 server { |
45 listen 127.0.0.1:%%PORT_0%%; | 45 listen 127.0.0.1:8080; |
46 server_name localhost; | 46 server_name localhost; |
47 | 47 |
48 client_header_buffer_size 1k; | 48 client_header_buffer_size 1k; |
49 | 49 |
50 location / { | 50 location / { |
51 client_body_buffer_size 2k; | 51 client_body_buffer_size 2k; |
52 add_header X-Body "$request_body"; | 52 add_header X-Body "$request_body"; |
53 add_header X-Body-File "$request_body_file"; | 53 add_header X-Body-File "$request_body_file"; |
54 proxy_pass http://127.0.0.1:%%PORT_1%%; | 54 proxy_pass http://127.0.0.1:8081; |
55 } | 55 } |
56 location /b { | 56 location /b { |
57 client_body_buffer_size 2k; | 57 client_body_buffer_size 2k; |
58 client_body_in_file_only on; | 58 client_body_in_file_only on; |
59 add_header X-Body "$request_body"; | 59 add_header X-Body "$request_body"; |
60 add_header X-Body-File "$request_body_file"; | 60 add_header X-Body-File "$request_body_file"; |
61 proxy_pass http://127.0.0.1:%%PORT_1%%; | 61 proxy_pass http://127.0.0.1:8081; |
62 } | 62 } |
63 location /single { | 63 location /single { |
64 client_body_in_single_buffer on; | 64 client_body_in_single_buffer on; |
65 add_header X-Body "$request_body"; | 65 add_header X-Body "$request_body"; |
66 add_header X-Body-File "$request_body_file"; | 66 add_header X-Body-File "$request_body_file"; |
67 proxy_pass http://127.0.0.1:%%PORT_1%%; | 67 proxy_pass http://127.0.0.1:8081; |
68 } | 68 } |
69 location /discard { | 69 location /discard { |
70 return 200 "TEST\n"; | 70 return 200 "TEST\n"; |
71 } | 71 } |
72 location /next { | 72 location /next { |
73 proxy_pass http://u/; | 73 proxy_pass http://u/; |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 server { | 77 server { |
78 listen 127.0.0.1:%%PORT_1%%; | 78 listen 127.0.0.1:8081; |
79 server_name localhost; | 79 server_name localhost; |
80 | 80 |
81 location / { | 81 location / { |
82 return 200 "TEST\n"; | 82 return 200 "TEST\n"; |
83 } | 83 } |
84 } | 84 } |
85 | 85 |
86 server { | 86 server { |
87 listen 127.0.0.1:%%PORT_2%%; | 87 listen 127.0.0.1:8082; |
88 server_name localhost; | 88 server_name localhost; |
89 | 89 |
90 location / { | 90 location / { |
91 return 444; | 91 return 444; |
92 } | 92 } |