Mercurial > hg > nginx-tests
changeset 434:a8596c7b33cc
Tests: style.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 11 Jul 2014 17:37:38 +0400 |
parents | 4a045c74a77c |
children | a7d04159e52b |
files | proxy.t |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy.t Fri Jul 11 17:00:06 2014 +0400 +++ b/proxy.t Fri Jul 11 17:37:38 2014 +0400 @@ -43,8 +43,10 @@ proxy_pass http://127.0.0.1:8081; proxy_read_timeout 1s; } + location /var { - proxy_pass http://$arg_ip:$arg_port/; + proxy_pass http://$arg_b; + proxy_read_timeout 1s; } } } @@ -61,8 +63,7 @@ unlike(http_head('/'), qr/SEE-THIS/, 'proxy head request'); -like(http_get('/var?ip=127.0.0.1&port=8081'), qr/SEE-THIS/, - 'proxy url with IP literal and variable'); +like(http_get('/var?b=127.0.0.1:8081/'), qr/SEE-THIS/, 'proxy with variables'); ###############################################################################