Mercurial > hg > nginx-tests
comparison http_resolver_cname.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 | b1fa8e0cc27b |
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 /short { | 43 location /short { |
44 resolver 127.0.0.1:8081; | 44 resolver 127.0.0.1:%%PORT_1_UDP%%; |
45 resolver_timeout 2s; | 45 resolver_timeout 2s; |
46 | 46 |
47 proxy_pass http://$host:8080/t; | 47 proxy_pass http://$host:%%PORT_0%%/t; |
48 } | 48 } |
49 | 49 |
50 location /long { | 50 location /long { |
51 resolver 127.0.0.1:8081; | 51 resolver 127.0.0.1:%%PORT_1_UDP%%; |
52 resolver_timeout 5s; | 52 resolver_timeout 5s; |
53 | 53 |
54 proxy_pass http://$host:8080/t; | 54 proxy_pass http://$host:%%PORT_0%%/t; |
55 } | 55 } |
56 | 56 |
57 location / { } | 57 location / { } |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 EOF | 61 EOF |
62 | 62 |
63 $t->run_daemon(\&dns_daemon, 8081, $t); | 63 $t->run_daemon(\&dns_daemon, port(1), $t); |
64 | 64 |
65 $t->write_file('t', ''); | 65 $t->write_file('t', ''); |
66 $t->run(); | 66 $t->run(); |
67 | 67 |
68 $t->waitforfile($t->testdir . '/8081'); | 68 $t->waitforfile($t->testdir . '/' . port(1)); |
69 | 69 |
70 ############################################################################### | 70 ############################################################################### |
71 | 71 |
72 # CNAME pointing to name which times out | 72 # CNAME pointing to name which times out |
73 | 73 |