[Koha-bugs] [Bug 18526] New: Test t/Token.t fails on master
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 3 03:30:16 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18526
Bug ID: 18526
Summary: Test t/Token.t fails on master
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Test Suite
Assignee: chris at bigballofwax.co.nz
Reporter: mtj at kohaaloha.com
QA Contact: gmcharlt at gmail.com
this seems to fail on 16.11.x and 16.05.x too
can anyone else verify this please
--------------------
$ prove t/Token.t
1..10
ok 1 - Generate without parameters
ok 2 - Token :|%}VN^o\GFJ~fz~U.L7 has 20 chars
Use of uninitialized value $csrftoken in concatenation (.) or string at
t/Token.t line 38.
ok 3 - Token should not be empty
ok 4 - Check without any parameters
not ok 5 - CSRF token verified
# Failed test 'CSRF token verified'
# at t/Token.t line 44.
# got: undef
# expected: '1'
ok 6 - This token is no CSRF token
not ok 7 - CSRF token still valid within one second
# Failed test 'CSRF token still valid within one second'
# at t/Token.t line 56.
# got: undef
# expected: '1'
ok 8 - CSRF token expired after one second
# Subtest: Same id (cookie CGISESSID) with an other logged in user
1..2
not ok 1 - CSRF token verified
# Failed test 'CSRF token verified'
# at t/Token.t line 69.
# got: undef
# expected: '1'
not ok 2 - CSRF token is not verified if another logged in user is using
the same id
# Failed test 'CSRF token is not verified if another logged in user is
using the same id'
# at t/Token.t line 74.
# got: undef
# expected: ''
# Looks like you failed 2 tests of 2.
not ok 9 - Same id (cookie CGISESSID) with an other logged in user
# Failed test 'Same id (cookie CGISESSID) with an other logged in user'
# at t/Token.t line 75.
# Subtest: Same logged in user with another session (cookie CGISESSID)
1..2
not ok 1 - CSRF token verified
# Failed test 'CSRF token verified'
# at t/Token.t line 84.
# got: undef
# expected: '1'
not ok 2 - CSRF token is not verified if another session is used
# Failed test 'CSRF token is not verified if another session is used'
# at t/Token.t line 90.
# got: undef
# expected: ''
# Looks like you failed 2 tests of 2.
not ok 10 - Same logged in user with another session (cookie CGISESSID)
# Failed test 'Same logged in user with another session (cookie CGISESSID)'
# at t/Token.t line 91.
# Looks like you failed 4 tests of 10.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list