[Koha-bugs] [Bug 31795] REST API: POST endpoint for Authorities

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 10 21:41:03 CEST 2023


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA

--- Comment #13 from David Nind <david at davidnind.com> ---
The tests don't pass after applying the patches:

prove t/db_dependent/api/v1/authorities.t
t/db_dependent/api/v1/authorities.t .. 1/3 
    #   Failed test '409 Conflict'
    #   at t/db_dependent/api/v1/authorities.t line 204.
    #          got: '201'
    #     expected: '409'

    #   Failed test 'Location header is only set when the new resource is
created'
    #   at t/db_dependent/api/v1/authorities.t line 204.

    #   Failed test 'similar match for JSON Pointer "/error"'
    #   at t/db_dependent/api/v1/authorities.t line 204.
    #                   undef
    #     doesn't match '(?^u:Duplicate record (\d*))'

    #   Failed test 'exact match for JSON Pointer "/error_code"'
    #   at t/db_dependent/api/v1/authorities.t line 204.
    #          got: undef
    #     expected: 'duplicate'
    # Looks like you failed 4 tests of 19.
t/db_dependent/api/v1/authorities.t .. 3/3 
#   Failed test 'post() tests'
#   at t/db_dependent/api/v1/authorities.t line 227.
# Looks like you failed 1 test of 3.
t/db_dependent/api/v1/authorities.t .. Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/3 subtests 

Test Summary Report
-------------------
t/db_dependent/api/v1/authorities.t (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
Files=1, Tests=3,  4 wallclock secs ( 0.02 usr  0.00 sys +  3.67 cusr  0.14
csys =  3.83 CPU)
Result: FAIL

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


More information about the Koha-bugs mailing list