Mercurial > hg > nginx-tests
comparison http_host.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 | d5bf5942a8b2 |
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 server { | 39 server { |
40 listen 127.0.0.1:8080; | 40 listen 127.0.0.1:%%PORT_0%%; |
41 server_name localhost; | 41 server_name localhost; |
42 | 42 |
43 location / { | 43 location / { |
44 return 200 $host; | 44 return 200 $host; |
45 } | 45 } |
53 ############################################################################### | 53 ############################################################################### |
54 | 54 |
55 | 55 |
56 is(http_host_header('www.abcd-ef.g02.xyz'), 'www.abcd-ef.g02.xyz', | 56 is(http_host_header('www.abcd-ef.g02.xyz'), 'www.abcd-ef.g02.xyz', |
57 'domain w/o port (host header)'); | 57 'domain w/o port (host header)'); |
58 is(http_host_header('abcd-ef.g02.xyz:8080'), 'abcd-ef.g02.xyz', | 58 is(http_host_header('abcd-ef.g02.xyz:' . port(0)), 'abcd-ef.g02.xyz', |
59 'domain w/port (host header)'); | 59 'domain w/port (host header)'); |
60 | 60 |
61 is(http_absolute_path('abcd-ef.g02.xyz'), 'abcd-ef.g02.xyz', | 61 is(http_absolute_path('abcd-ef.g02.xyz'), 'abcd-ef.g02.xyz', |
62 'domain w/o port (absolute request)'); | 62 'domain w/o port (absolute request)'); |
63 is(http_absolute_path('www.abcd-ef.g02.xyz:10'), 'www.abcd-ef.g02.xyz', | 63 is(http_absolute_path('www.abcd-ef.g02.xyz:10'), 'www.abcd-ef.g02.xyz', |