Subject: | Three tests fail in 01-http.t |
Tried to install the distribution on fresh ubuntu server 14.04 with Perl 5.18.2:
t/01-http.t ....... 1/?
# Failed test 'Module error thrown'
# at t/01-http.t line 77.
# expecting: Regexp ((?^:he 'secret' parameter \(""\) to Google::reCAPTCHA::new did not pass the 'is a secret key' callback:))
# found: The 'secret' parameter ("") to Google::reCAPTCHA::new did not pass the 'is a secret key' callback
# at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670.
# Params::Validate::PP::__ANON__() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580
# Params::Validate::PP::_validate_one_param() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340
# Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA-0.05/blib/lib/Google/reCAPTCHA.pm line 44
# Google::reCAPTCHA::new() called at t/01-http.t line 76
# Test::Exception::throws_ok() called at t/01-http.t line 77
# main::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 261
# Test::Builder::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266
# eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266
# Test::Builder::subtest() called at /usr/local/share/perl/5.18.2/Test/More.pm line 771
# Test::More::subtest() called at t/01-http.t line 78
# Looks like you failed 1 test of 1.
# Failed test 'croaks if empty secret'
# at t/01-http.t line 78.
# Failed test 'Module error thrown'
# at t/01-http.t line 93.
# expecting: Regexp ((?^:did not pass the 'is a remote ipv4 or ipv6 address' callback:))
# found: The 'remoteip' parameter ("failed") to Google::reCAPTCHA::siteverify did not pass the 'is a remote ipv4 or ipv6 address' callback
# at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670.
# Params::Validate::PP::__ANON__() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580
# Params::Validate::PP::_validate_one_param() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340
# Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA-0.05/blib/lib/Google/reCAPTCHA.pm line 69
# Google::reCAPTCHA::siteverify() called at t/01-http.t line 92
# Test::Exception::throws_ok() called at t/01-http.t line 93
# main::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 261
# Test::Builder::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266
# eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266
# Test::Builder::subtest() called at /usr/local/share/perl/5.18.2/Test/More.pm line 771
# Test::More::subtest() called at t/01-http.t line 94
# Looks like you failed 1 test of 1.
# Failed test 'croaks if not valid ipv4 or ipv6'
# at t/01-http.t line 94.
# Failed test 'Module error thrown'
# at t/01-http.t line 101.
# expecting: Regexp ((?^:The 'response' parameter \(""\) to Google::reCAPTCHA::siteverify did not pass the 'is a response code' callback:))
# found: The 'response' parameter ("") to Google::reCAPTCHA::siteverify did not pass the 'is a response code' callback
# at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 670.
# Params::Validate::PP::__ANON__() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 580
# Params::Validate::PP::_validate_one_param() called at /usr/local/share/perl/5.18.2/Params/Validate/PP.pm line 340
# Params::Validate::PP::validate() called at /tmp/Google-reCAPTCHA-0.05/blib/lib/Google/reCAPTCHA.pm line 69
# Google::reCAPTCHA::siteverify() called at t/01-http.t line 100
# Test::Exception::throws_ok() called at t/01-http.t line 101
# main::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 261
# Test::Builder::__ANON__() called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266
# eval {...} called at /usr/local/share/perl/5.18.2/Test/Builder.pm line 266
# Test::Builder::subtest() called at /usr/local/share/perl/5.18.2/Test/More.pm line 771
# Test::More::subtest() called at t/01-http.t line 102
# Looks like you failed 1 test of 1.
# Failed test 'croaks if empty response'
# at t/01-http.t line 102.
# Looks like you failed 3 tests of 9.
After removing ending colon from throws_ok REs, all three tests passed.