# HG changeset patch # User Eugene Grebenschikov # Date 1666816159 25200 # Node ID f129b693d83e86c9739385ab08f8e5e002d64283 # Parent 074974eb9182ebc848cf16bdb58be85a9fd986bd Tests: skip proxy_protocol2_tlv.t for nginx stable. It fails with the nginx 1.22.1 due to lack of support $proxy_protocol_tlv_* variables. diff --git a/proxy_protocol2_tlv.t b/proxy_protocol2_tlv.t --- a/proxy_protocol2_tlv.t +++ b/proxy_protocol2_tlv.t @@ -23,7 +23,7 @@ use Test::Nginx; select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http access rewrite/)->plan(15) +my $t = Test::Nginx->new()->has(qw/http access rewrite/) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -79,6 +79,9 @@ http { EOF +plan(skip_all => 'not yet') unless $t->has_version('1.23.2'); +$t->plan(15); + $t->run(); ############################################################################### @@ -113,9 +116,6 @@ my $tlv = $p . pack("CnN2n2N21nN2nN2nN4" 0xae000531, 0x32333435); my $r; -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.23.2'); - $r = pp_get('/t1', $tlv); like($r, qr/X-ALPN: ALPN1-ALPN1\x0d/, 'ALPN - tlv named variable'); like($r, qr/X-AUTHORITY: localhost-localhost\x0d/, @@ -139,8 +139,6 @@ like($r, qr/X-TLV-CUSTOM: 12345\x0d/, 'custom - tlv numeric variable'); like($r, qr/X-TLV-X: -\x0d/, 'non-existent - tlv numeric variable'); -} - ############################################################################### sub pp_get {