PerlDancer / Dancer2-Plugin-Auth-Extensible-Provider-LDAP

LDAP provider for Dancer2::Plugin::Auth::Extensible
1 stars 4 forks source link

Test suite fails (with older Dancer2::Plugin::Auth::Extensible?) #9

Closed eserte closed 4 years ago

eserte commented 4 years ago

t/plugin-provider-ldap.t fails on some of my smoker systems:

    #   Failed test '/logout redirected to / (exit_page) after logging out'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 1613.
    #          got: '/'
    #     expected: 'http://localhost/'

    #   Failed test '/logout redirected to / (exit_page) after logging out'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 1709.
    #          got: '/'
    #     expected: 'http://localhost/'
    # Looks like you failed 2 tests of 40.

#   Failed test 'Plugin roles tests'
#   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 122.

    #   Failed test '... and redirect location is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 1034.
    #          got: '/'
    #     expected: 'http://localhost/'

    #   Failed test '... and redirect location is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 1057.
    #          got: '/'
    #     expected: 'http://localhost/'
    # Looks like you failed 2 tests of 17.

#   Failed test 'Plugin logged_in_user tests'
#   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 122.

    #   Failed test '... and redirect location is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 1364.
    #          got: '/'
    #     expected: 'http://localhost/'
    # Looks like you failed 1 test of 17.

#   Failed test 'Plugin require_login tests'
#   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 122.

    #   Failed test '... and redirect location is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 804.
    #          got: '/'
    #     expected: 'http://localhost/'

    #   Failed test '... and redirect location is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 822.
    #          got: '/'
    #     expected: 'http://localhost/'

    #   Failed test '... and redirect location is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 830.
    #          got: '/foo'
    #     expected: 'http://localhost/foo'

    #   Failed test '... and redirect location is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 843.
    #          got: '/'
    #     expected: 'http://localhost/'

    #   Failed test '... and redirect location is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 860.
    #          got: '/'
    #     expected: 'http://localhost/'

    #   Failed test '... and redirect location /foo/bar is correct.'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 878.
    #          got: '/foo/bar'
    #     expected: 'http://localhost/foo/bar'

    #   Failed test 'Redirect after login to given return_url works'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 953.
    #          got: '/foobar'
    #     expected: 'http://localhost/foobar'

    #   Failed test '/logout redirected to / (exit_page) after logging out'
    #   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 981.
    #          got: '/'
    #     expected: 'http://localhost/'
    # Looks like you failed 8 tests of 58.

#   Failed test 'Plugin login_logout tests'
#   at /usr/perl5.22.2p/lib/site_perl/5.22.2/Dancer2/Plugin/Auth/Extensible/Test.pm line 122.
# Looks like you failed 4 tests of 23.
t/plugin-provider-ldap.t .. 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/23 subtests 
    (less 12 skipped subtests: 7 okay)

This seems to happen if Dancer2::Plugin::Auth::Extensible < 0.709 is installed. Statistical analysis:

****************************************************************
Regression 'mod:Dancer2::Plugin::Auth::Extensible'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']          -0.0000          0.0000      -2.94
[1='eq_0.704']        0.0000          0.0000       2.59
[2='eq_0.706']        0.0000          0.0000       2.40
[3='eq_0.708']        0.0000          0.0000       2.40
[4='eq_0.709']        1.0000          0.0000    12988277856812182.00

R^2= 1.000, N= 69, K= 5
****************************************************************
SysPete commented 4 years ago

Thanks @eserte, updated version on its way to CPAN.