sukria/Dancer — Issue #710: test with HTTP::Headers 6.00 installed
Author: mw333
Created: 2011-12-13 11:55:50+00:00
State: open

While testing Dancer [1.3080] (via command line cpan) I noticed
t/12_response/04_charset_server.t .............. skipped: HTTP::Headers 5.827 required (use of content_type_charset)
and so I installed HTTP::Headers ..

> install HTTP::Headers
Running install for module 'HTTP::Headers'
Running make for G/GA/GAAS/HTTP-Message-6.02.tar.gz

and that tested and installed fine:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/common-req.t .......... ok
t/headers-auth.t ........ ok
t/headers-etag.t ........ ok
t/headers-util.t ........ ok
t/headers.t ............. ok
t/http-config.t ......... ok
t/message-charset.t ..... ok
t/message-decode-xml.t .. ok
t/message-old.t ......... ok
t/message-parts.t ....... ok
t/message.t ............. ok
t/request.t ............. ok
t/response.t ............ ok
t/status-old.t .......... ok
t/status.t .............. ok
All tests successful.
Files=15, Tests=529, 1 wallclock secs ( 0.09 usr 0.03 sys + 0.51 cusr 0.08 csys = 0.71 CPU)
Result: PASS
GAAS/HTTP-Message-6.02.tar.gz
/usr/bin/make test -- OK
Running make install
...
but now a fresh
clean Dancer; test Dancer has a few extra problems.

basically these are generally:
500 Can't locate object method "_is_html" via package "HTTP::Headers"

-- This causes installation to fail (without a force)

.. This could all be just my bad luck,
.. A problem with the latest HTTP::Headers (never used the module myself)
.. Or that the machine has perl 5.10 on it.
.. Or these tests never passed.

More error reports below:

t/00_base/001_load.t ........................... 1/1 # Testing Dancer 1.3080, Perl 5.010000, /usr/bin/perl
..
t/00_base/12_utf8_charset.t .................... 1/4
# Failed test 'utf8 static response'
# at t/00_base/12_utf8_charset.t line 22.
Wide character in print at /www/www-live/sites/gliders.sanger.ac.uk/lib/perl5/Test/Builder.pm line 1759.
# got: '500 Can't locate object method "_is_html" via package "HTTP::Headers"
# '
# expected: 'Ʃ'

# Failed test 'utf8 response through forward'
# at t/00_base/12_utf8_charset.t line 25.
Wide character in print at /www/www-live/sites/gliders.sanger.ac.uk/lib/perl5/Test/Builder.pm line 1759.
# got: '500 Can't locate object method "_is_html" via package "HTTP::Headers"
# '
# expected: 'Ʃ'

# Failed test 'utf8 route param'
# at t/00_base/12_utf8_charset.t line 28.
Wide character in print at /www/www-live/sites/gliders.sanger.ac.uk/lib/perl5/Test/Builder.pm line 1759.
# got: '500 Can't locate object method "_is_html" via package "HTTP::Headers"
# '
# expected: 'Ʃ'

# Failed test 'params and tokens are valid unicode'
# at t/00_base/12_utf8_charset.t line 31.
Wide character in print at /www/www-live/sites/gliders.sanger.ac.uk/lib/perl5/Test/Builder.pm line 1759.
# got: '500 Can't locate object method "_is_html" via package "HTTP::Headers"
# '
# expected: 'sigma: 'Ʃ'
# pure_token: 'Ʃ'
# param_token: 'é'
# '
# Looks like you failed 4 tests of 4.
t/00_base/12_utf8_charset.t .................... Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/4 subtests

..
t/02_request/07_raw_data.t ..................... 1/2
# Failed test 'req is success'
# at t/02_request/07_raw_data.t line 29.

# Failed test 'raw_data is OK'
# at t/02_request/07_raw_data.t line 30.
# got: '500 Can't locate object method "_is_html" via package "HTTP::Headers"
# '
# expected: 'var: 2; foo: 42; bar: 57
# Hey I'm here.
#
# '
# Looks like you failed 2 tests of 2.
t/02_request/07_raw_data.t ..................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests

t/14_serializer/17_clear_serializer.t .......... 1/4
# Failed test 'Successful response from server'
# at t/14_serializer/17_clear_serializer.t line 28.

# Failed test 'Correct content'
# at t/14_serializer/17_clear_serializer.t line 29.
# '500 Can't locate object method "_is_html" via package "HTTP::Headers"
# '
# doesn't match '(?x-ism:"foo" \s \: \s "bar")'

# Failed test 'Successful response from server'
# at t/14_serializer/17_clear_serializer.t line 37.

# Failed test 'Serializer undef, response not serialised'
# at t/14_serializer/17_clear_serializer.t line 38.
# '500 Can't locate object method "_is_html" via package "HTTP::Headers"
# '
# doesn't match '(?-xism:HASH\(0x.+\))'
# Looks like you failed 4 tests of 4.
t/14_serializer/17_clear_serializer.t .......... Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/4 subtests