Mercurial > hg > nginx-tests
diff referer.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 |
line wrap: on
line diff
--- a/referer.t Sun Jul 10 18:57:12 2016 +0300 +++ b/referer.t Tue Jul 12 17:39:03 2016 +0300 @@ -36,7 +36,7 @@ %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:%%PORT_0%%; + listen 127.0.0.1:8080; server_name another; valid_referers server_names; @@ -44,7 +44,7 @@ } server { - listen 127.0.0.1:%%PORT_0%%; + listen 127.0.0.1:8080; server_name _; location / { @@ -55,7 +55,7 @@ } server { - listen 127.0.0.1:%%PORT_0%%; + listen 127.0.0.1:8080; server_name localhost ~bar ~^anchoredre$; location /blocked { @@ -117,7 +117,7 @@ ok(valid('/simple', 'http://www.example.org'), 'simple'); ok(valid('/simple', 'http://www.example.org/uri'), 'simple uri'); -ok(valid('/simple', 'http://www.example.org:' . port(0) . '/uri'), +ok(valid('/simple', 'http://www.example.org:' . port(8080) . '/uri'), 'simple port uri'); ok(!valid('/simple', 'localhost'), 'simple invalid'); ok(valid('/simple', 'https://www.example.org'), 'https'); @@ -144,7 +144,7 @@ ok(valid('/uri', 'http://www.example.org/uri'), 'uri'); ok(valid('/uri', 'http://www.example.org/urii'), 'uri prefix'); ok(!valid('/uri', 'http://www.example.org/uRi'), 'uri case'); -ok(valid('/uri', 'http://www.example.org:' . port(0) . '/urii'), 'uri port'); +ok(valid('/uri', 'http://www.example.org:' . port(8080) . '/urii'), 'uri port'); ok(!valid('/uri', 'http://www.example.org/ur'), 'uri invalid len'); ok(!valid('/uri', 'http://www.example.org/urd'), 'uri invalid cmp');