comparison body.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 202de1d281e5
children 882267679006
comparison
equal deleted inserted replaced
951:9361c7eddfc1 952:e9064d691790
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:8082; 40 server 127.0.0.1:%%PORT_2%%;
41 server 127.0.0.1:8080 backup; 41 server 127.0.0.1:%%PORT_0%% backup;
42 } 42 }
43 43
44 server { 44 server {
45 listen 127.0.0.1:8080; 45 listen 127.0.0.1:%%PORT_0%%;
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:8081; 54 proxy_pass http://127.0.0.1:%%PORT_1%%;
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:8081; 61 proxy_pass http://127.0.0.1:%%PORT_1%%;
62 } 62 }
63 location /small { 63 location /small {
64 client_body_in_file_only on; 64 client_body_in_file_only on;
65 add_header X-Original-Uri "$request_uri"; 65 add_header X-Original-Uri "$request_uri";
66 proxy_pass http://127.0.0.1:8080/; 66 proxy_pass http://127.0.0.1:%%PORT_0%%/;
67 } 67 }
68 location /single { 68 location /single {
69 client_body_in_single_buffer on; 69 client_body_in_single_buffer on;
70 add_header X-Body "$request_body"; 70 add_header X-Body "$request_body";
71 add_header X-Body-File "$request_body_file"; 71 add_header X-Body-File "$request_body_file";
72 proxy_pass http://127.0.0.1:8081; 72 proxy_pass http://127.0.0.1:%%PORT_1%%;
73 } 73 }
74 location /discard { 74 location /discard {
75 return 200 "TEST\n"; 75 return 200 "TEST\n";
76 } 76 }
77 location /next { 77 location /next {
78 proxy_pass http://u/; 78 proxy_pass http://u/;
79 } 79 }
80 } 80 }
81 81
82 server { 82 server {
83 listen 127.0.0.1:8081; 83 listen 127.0.0.1:%%PORT_1%%;
84 server_name localhost; 84 server_name localhost;
85 85
86 location / { 86 location / {
87 return 200 "TEST\n"; 87 return 200 "TEST\n";
88 } 88 }
89 } 89 }
90 90
91 server { 91 server {
92 listen 127.0.0.1:8082; 92 listen 127.0.0.1:%%PORT_2%%;
93 server_name localhost; 93 server_name localhost;
94 94
95 location / { 95 location / {
96 return 444; 96 return 444;
97 } 97 }