[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
Mon Nov 7 14:38:36 CET 2016


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

--- Comment #11 from Lari Taskula <lari.taskula at jns.fi> ---
Created attachment 57258
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57258&action=edit
Bug 17431: Fix another fail in t/db_dependent/api/v1/holds.t

perl t/db_dependent/api/v1/holds.t fails with 500

ok 2 - Test endpoints without permission
    # Subtest: Test endpoints without permission, but accessing own object
    1..15
    ok 1 - POST /api/v1/holds
    not ok 2 - 201 Created
    #   Failed test '201 Created'
    #   at t/db_dependent/api/v1/holds.t line 189.
    #          got: '500'
    #     expected: '201'
    not ok 3 - has value for JSON Pointer "/reserve_id"
    #   Failed test 'has value for JSON Pointer "/reserve_id"'
    #   at t/db_dependent/api/v1/holds.t line 189.
    ok 4 - GET /api/v1/holds?borrowernumber=659207
    ok 5 - 200 OK
    not ok 6 - exact match for JSON Pointer "/0/borrowernumber"
    #   Failed test 'exact match for JSON Pointer "/0/borrowernumber"'
    #   at t/db_dependent/api/v1/holds.t line 199.
    #          got: undef
    #     expected: '659207'

To test:
1. Run t/db_dependent/api/v1/holds.t
2. Observe above failure
3. Apply patch
4. Observe test pass

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


More information about the Koha-bugs mailing list