Mercurial > hg > nginx-tests
comparison scgi.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 | be3ada2e9d24 |
children |
comparison
equal
deleted
inserted
replaced
1986:11463d379570 | 1987:a095b971fbcc |
---|---|
79 | 79 |
80 like(http_get('/var?b=127.0.0.1:' . port(8081)), qr/SEE-THIS/, | 80 like(http_get('/var?b=127.0.0.1:' . port(8081)), qr/SEE-THIS/, |
81 'scgi with variables'); | 81 'scgi with variables'); |
82 like(http_get('/var?b=u'), qr/SEE-THIS/, 'scgi with variables to upstream'); | 82 like(http_get('/var?b=u'), qr/SEE-THIS/, 'scgi with variables to upstream'); |
83 | 83 |
84 TODO: { | |
85 local $TODO = 'not yet' unless $t->has_version('1.23.0'); | |
86 | |
87 my $r = http(<<EOF); | 84 my $r = http(<<EOF); |
88 GET / HTTP/1.0 | 85 GET / HTTP/1.0 |
89 Host: localhost | 86 Host: localhost |
90 X-Forwarded-For: foo | 87 X-Forwarded-For: foo |
91 X-Forwarded-For: bar | 88 X-Forwarded-For: bar |
103 'scgi with multiple X-Forwarded-For headers'); | 100 'scgi with multiple X-Forwarded-For headers'); |
104 like($r, qr/X-Cookie: foo; bar; bazz/, | 101 like($r, qr/X-Cookie: foo; bar; bazz/, |
105 'scgi with multiple Cookie headers'); | 102 'scgi with multiple Cookie headers'); |
106 like($r, qr/X-Foo: foo, bar, bazz/, | 103 like($r, qr/X-Foo: foo, bar, bazz/, |
107 'scgi with multiple unknown headers'); | 104 'scgi with multiple unknown headers'); |
108 | |
109 } | |
110 | 105 |
111 ############################################################################### | 106 ############################################################################### |
112 | 107 |
113 sub http_get_headers { | 108 sub http_get_headers { |
114 my ($url, %extra) = @_; | 109 my ($url, %extra) = @_; |