[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 22:00:43 CET 2016


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

--- Comment #16 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 57285
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57285&action=edit
[SIGNED-OFF] 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

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list