Mercurial > hg > nginx-tests
comparison proxy_protocol2_tlv.t @ 1803:4627e750efdd
Tests: removed rewrite dependency in proxy_protocol2_tlv.t.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 10 Nov 2022 16:40:05 +0400 |
parents | 506e1a716fe8 |
children | 35e88bf538c1 |
comparison
equal
deleted
inserted
replaced
1802:506e1a716fe8 | 1803:4627e750efdd |
---|---|
21 ############################################################################### | 21 ############################################################################### |
22 | 22 |
23 select STDERR; $| = 1; | 23 select STDERR; $| = 1; |
24 select STDOUT; $| = 1; | 24 select STDOUT; $| = 1; |
25 | 25 |
26 my $t = Test::Nginx->new()->has(qw/http map rewrite/) | 26 my $t = Test::Nginx->new()->has(qw/http map/) |
27 ->write_file_expand('nginx.conf', <<'EOF'); | 27 ->write_file_expand('nginx.conf', <<'EOF'); |
28 | 28 |
29 %%TEST_GLOBALS%% | 29 %%TEST_GLOBALS%% |
30 | 30 |
31 daemon off; | 31 daemon off; |
71 | 71 |
72 server { | 72 server { |
73 listen 127.0.0.1:8080 proxy_protocol; | 73 listen 127.0.0.1:8080 proxy_protocol; |
74 server_name localhost; | 74 server_name localhost; |
75 | 75 |
76 location / { return 200; } | 76 location / { } |
77 } | 77 } |
78 } | 78 } |
79 | 79 |
80 EOF | 80 EOF |
81 | |
82 $t->write_file('t1', 'SEE-THIS'); | |
81 | 83 |
82 plan(skip_all => 'not yet') unless $t->has_version('1.23.2'); | 84 plan(skip_all => 'not yet') unless $t->has_version('1.23.2'); |
83 $t->plan(15); | 85 $t->plan(15); |
84 | 86 |
85 $t->run(); | 87 $t->run(); |