Subject: | Fails a test with latest plack. |
rabbit@Ahasver:~$ cpanm -v Plack Plack::Middleware::ReverseProxy
cpanm (App::cpanminus) 1.5007 on perl 5.014002 built for
x86_64-linux-thread-multi-ld
Work directory is /home/rabbit/.cpanm/work/1336810878.1090
You have make /usr/bin/make
You have LWP 6.04
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Plack on cpanmetadb ...
Plack is up to date. (0.9988)
Searching Plack::Middleware::ReverseProxy on cpanmetadb ...
--> Working on Plack::Middleware::ReverseProxy
Fetching
http://search.cpan.org/CPAN/authors/id/D/DA/DANJOU/Plack-Middleware-ReverseProxy-0.11.tar.gz
... OK
Unpacking Plack-Middleware-ReverseProxy-0.11.tar.gz
Plack-Middleware-ReverseProxy-0.11/
Plack-Middleware-ReverseProxy-0.11/Changes
Plack-Middleware-ReverseProxy-0.11/inc/
Plack-Middleware-ReverseProxy-0.11/inc/Module/
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/AuthorTests.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/Base.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/Can.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/Fetch.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/Makefile.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/Metadata.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/Repository.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/Win32.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install/WriteAll.pm
Plack-Middleware-ReverseProxy-0.11/inc/Module/Install.pm
Plack-Middleware-ReverseProxy-0.11/lib/
Plack-Middleware-ReverseProxy-0.11/lib/Plack/
Plack-Middleware-ReverseProxy-0.11/lib/Plack/Middleware/
Plack-Middleware-ReverseProxy-0.11/lib/Plack/Middleware/ReverseProxy.pm
Plack-Middleware-ReverseProxy-0.11/Makefile.PL
Plack-Middleware-ReverseProxy-0.11/MANIFEST
Plack-Middleware-ReverseProxy-0.11/META.yml
Plack-Middleware-ReverseProxy-0.11/README
Plack-Middleware-ReverseProxy-0.11/t/
Plack-Middleware-ReverseProxy-0.11/t/00_compile.t
Plack-Middleware-ReverseProxy-0.11/t/lib/
Plack-Middleware-ReverseProxy-0.11/t/lib/Plack/
Plack-Middleware-ReverseProxy-0.11/t/lib/Plack/Middleware/
Plack-Middleware-ReverseProxy-0.11/t/lib/Plack/Middleware/MangleEnv.pm
Plack-Middleware-ReverseProxy-0.11/t/reverseproxy.t
Plack-Middleware-ReverseProxy-0.11/xt/
Plack-Middleware-ReverseProxy-0.11/xt/01_podspell.t
Plack-Middleware-ReverseProxy-0.11/xt/02_perlcritic.t
Plack-Middleware-ReverseProxy-0.11/xt/03_pod.t
Plack-Middleware-ReverseProxy-0.11/xt/perlcriticrc
Entering Plack-Middleware-ReverseProxy-0.11
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.62)
Configuring Plack-Middleware-ReverseProxy-0.11 ... Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Plack::Middleware::ReverseProxy
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have Test::Base 0 ... Yes (0.60)
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.62)
Checking if you have Plack::Middleware 0 ... Yes (undef)
Checking if you have parent 0 ... Yes (0.225)
Checking if you have YAML 0 ... Yes (0.80)
Checking if you have Plack::Request 0 ... Yes (0.9988)
Building and testing Plack-Middleware-ReverseProxy-0.11 ... cp
lib/Plack/Middleware/ReverseProxy.pm
blib/lib/Plack/Middleware/ReverseProxy.pm
Manifying blib/man3/Plack::Middleware::ReverseProxy.3
PERL_DL_NONLAZY=1 /home/rabbit/perl5/perlbrew/perls/5.14.2/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib',
'blib/arch')" t/*.t
t/00_compile.t .... ok
t/reverseproxy.t .. 1/39
# Failed test 'with https of uri'
# at t/reverseproxy.t line 33.
# got: 'https://example.com/?foo=bar'
# expected: 'https://example.com:80/?foo=bar'
# Failed test 'with https of base'
# at t/reverseproxy.t line 33.
# got: 'https://example.com/'
# expected: 'https://example.com:80/'
# Failed test 'https with HTTP_X_FORWARDED_PROTO of uri'
# at t/reverseproxy.t line 33.
# got: 'https://example.com/?foo=bar'
# expected: 'https://example.com:80/?foo=bar'
# Failed test 'https with HTTP_X_FORWARDED_PROTO of base'
# at t/reverseproxy.t line 33.
# got: 'https://example.com/'
# expected: 'https://example.com:80/'
# Looks like you failed 4 tests of 39.
t/reverseproxy.t .. Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/39 subtests
Test Summary Report
-------------------
t/reverseproxy.t (Wstat: 1024 Tests: 39 Failed: 4)
Failed tests: 2-3, 9-10
Non-zero exit status: 4
Files=2, Tests=40, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.18 cusr
0.02 csys = 0.24 CPU)
Result: FAIL
Failed 1/2 test programs. 4/40 subtests failed.
make: *** [test_dynamic] Error 4
FAIL