Mercurial > hg > nginx-tests
comparison auth_request_set.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 |
---|---|
35 | 35 |
36 http { | 36 http { |
37 %%TEST_GLOBALS_HTTP%% | 37 %%TEST_GLOBALS_HTTP%% |
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 = /t1.html { | 43 location = /t1.html { |
44 auth_request /auth; | 44 auth_request /auth; |
45 auth_request_set $username $upstream_http_x_username; | 45 auth_request_set $username $upstream_http_x_username; |
78 } | 78 } |
79 | 79 |
80 location = /t5.html { | 80 location = /t5.html { |
81 auth_request /auth; | 81 auth_request /auth; |
82 auth_request_set $args "setargs"; | 82 auth_request_set $args "setargs"; |
83 proxy_pass http://127.0.0.1:%%PORT_1%%/t5.html; | 83 proxy_pass http://127.0.0.1:8081/t5.html; |
84 } | 84 } |
85 | 85 |
86 location = /t6.html { | 86 location = /t6.html { |
87 add_header X-Unset-Username "x${username}x"; | 87 add_header X-Unset-Username "x${username}x"; |
88 return 204; | 88 return 204; |
89 } | 89 } |
90 | 90 |
91 location = /auth { | 91 location = /auth { |
92 proxy_pass http://127.0.0.1:%%PORT_1%%; | 92 proxy_pass http://127.0.0.1:8081; |
93 } | 93 } |
94 location = /auth2 { | 94 location = /auth2 { |
95 proxy_pass http://127.0.0.1:%%PORT_1%%; | 95 proxy_pass http://127.0.0.1:8081; |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
99 server { | 99 server { |
100 listen 127.0.0.1:%%PORT_1%%; | 100 listen 127.0.0.1:8081; |
101 server_name localhost; | 101 server_name localhost; |
102 | 102 |
103 location = /auth { | 103 location = /auth { |
104 add_header X-Username "username"; | 104 add_header X-Username "username"; |
105 return 204; | 105 return 204; |