[Koha-bugs] [Bug 17431] Fix failing test t/db_dependent/api/v1/holds.t

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 21 19:07:11 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17431

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kyle at bywatersolutions.com
             Status|Passed QA                   |Failed QA

--- Comment #9 from Kyle M Hall <kyle at bywatersolutions.com> ---
t/db_dependent/api/v1/holds.t .. 1/4
    #   Failed test '403 Forbidden'
    #   at t/db_dependent/api/v1/holds.t line 163.
    #          got: '401'
    #     expected: '403'

    #   Failed test '403 Forbidden'
    #   at t/db_dependent/api/v1/holds.t line 167.
    #          got: '401'
    #     expected: '403'

    #   Failed test '403 Forbidden'
    #   at t/db_dependent/api/v1/holds.t line 171.
    #          got: '401'
    #     expected: '403'

    #   Failed test '403 Forbidden'
    #   at t/db_dependent/api/v1/holds.t line 175.
    #          got: '401'
    #     expected: '403'

    #   Failed test '403 Forbidden'
    #   at t/db_dependent/api/v1/holds.t line 179.
    #          got: '401'
    #     expected: '403'
    # Looks like you failed 5 tests of 10.

#   Failed test 'Test endpoints without permission'
#   at t/db_dependent/api/v1/holds.t line 181.

    #   Failed test '201 Created'
    #   at t/db_dependent/api/v1/holds.t line 189.
    #          got: '401'
    #     expected: '201'

    #   Failed test 'has value for JSON Pointer "/reserve_id"'
    #   at t/db_dependent/api/v1/holds.t line 189.

    #   Failed test '200 OK'
    #   at t/db_dependent/api/v1/holds.t line 199.
    #          got: '401'
    #     expected: '200'

    #   Failed test 'exact match for JSON Pointer "/0/borrowernumber"'
    #   at t/db_dependent/api/v1/holds.t line 199.
    #          got: undef
    #     expected: '109'

    #   Failed test 'exact match for JSON Pointer "/0/biblionumber"'
    #   at t/db_dependent/api/v1/holds.t line 199.
    #          got: undef
    #     expected: '570'

    #   Failed test 'exact match for JSON Pointer "/0/itemnumber"'
    #   at t/db_dependent/api/v1/holds.t line 199.
    #          got: undef
    #     expected: '606'

    #   Failed test 'exact match for JSON Pointer "/0/expirationdate"'
    #   at t/db_dependent/api/v1/holds.t line 199.
    #          got: undef
    #     expected: '2016-10-31'

    #   Failed test 'exact match for JSON Pointer "/0/branchcode"'
    #   at t/db_dependent/api/v1/holds.t line 199.
    #          got: undef
    #     expected: 'cZD9z_'
    # Looks like you planned 15 tests but ran 10.
    # Looks like you failed 8 tests of 10 run.

#   Failed test 'Test endpoints without permission, but accessing own object'
#   at t/db_dependent/api/v1/holds.t line 212.
Can't call method "reserve_id" on an undefined value at
t/db_dependent/api/v1/holds.t line 204.
# Looks like your test exited with 255 just after 3.
t/db_dependent/api/v1/holds.t .. Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 3/4 subtests

Test Summary Report
-------------------
t/db_dependent/api/v1/holds.t (Wstat: 65280 Tests: 3 Failed: 2)
  Failed tests:  2-3
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 4 tests but ran 3.
Files=1, Tests=3,  8 wallclock secs ( 0.04 usr  0.01 sys +  7.27 cusr  0.28
csys =  7.60 CPU)
Result: FAIL

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list