Mercurial > hg > nginx-tests
comparison h2_proxy_protocol.t @ 1987:a095b971fbcc default tip
Tests: removed TODO and try_run() checks for legacy versions.
For h2_http2.t, try_run() is preserved to ensure that deprecation
warnings for "listen ... http2" are suppressed, yet plan() is reported
before try_run(), so failure to start will be properly reported.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 18:38:01 +0300 |
parents | 11463d379570 |
children |
comparison
equal
deleted
inserted
replaced
1986:11463d379570 | 1987:a095b971fbcc |
---|---|
69 ok($frame, 'PROXY HEADERS frame'); | 69 ok($frame, 'PROXY HEADERS frame'); |
70 is($frame->{headers}->{'x-pp'}, '192.0.2.1', 'PROXY remote addr'); | 70 is($frame->{headers}->{'x-pp'}, '192.0.2.1', 'PROXY remote addr'); |
71 | 71 |
72 # invalid PROXY protocol string | 72 # invalid PROXY protocol string |
73 | 73 |
74 TODO: { | |
75 local $TODO = 'not yet' unless $t->has_version('1.25.1'); | |
76 | |
77 $proxy = 'BOGUS TCP4 192.0.2.1 192.0.2.2 1234 5678' . CRLF; | 74 $proxy = 'BOGUS TCP4 192.0.2.1 192.0.2.2 1234 5678' . CRLF; |
78 ok(!http($proxy), 'PROXY invalid protocol'); | 75 ok(!http($proxy), 'PROXY invalid protocol'); |
79 | 76 |
80 } | |
81 | |
82 ############################################################################### | 77 ############################################################################### |