[Koha-bugs] [Bug 17314] Routes to create, list and delete a purchase suggestion

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 18 11:28:48 CEST 2021


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

--- Comment #67 from Arthur Suzuki <arthur.suzuki at biblibre.com> ---
Hi Thomas,
Tests are failing!
I also tried in "real" with rester, although I get error 500, status property
in the reply is 201 and the suggestion is created in Koha :
<pre>
{
    "errors": [
        {
            "message": "/anyOf Expected string/null - got scalar.",
            "path": "/date_created"
        }
    ],
    "status": 201
}
</pre>

Tests :
<pre>
root at kohadevbox:koha(bz17314)$ prove t/db_dependent/api/v1/suggestions.t 
t/db_dependent/api/v1/suggestions.t .. 2/5 
    #   Failed test 'SWAGGER3.2.1'
    #   at t/db_dependent/api/v1/suggestions.t line 211.
    #          got: '500'
    #     expected: '201'
    # Looks like you planned 15 tests but ran 8.
    # Looks like you failed 1 test of 8 run.
t/db_dependent/api/v1/suggestions.t .. 3/5 
#   Failed test 'add() tests'
#   at t/db_dependent/api/v1/suggestions.t line 243.
Can't call method "to_api" on an undefined value at
t/db_dependent/api/v1/suggestions.t line 219.
# Looks like your test exited with 255 just after 3.
t/db_dependent/api/v1/suggestions.t .. Dubious, test returned 255 (wstat 65280,
0xff00)
Failed 3/5 subtests 

Test Summary Report
-------------------
t/db_dependent/api/v1/suggestions.t (Wstat: 65280 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 5 tests but ran 3.
Files=1, Tests=3,  7 wallclock secs ( 0.02 usr  0.00 sys +  6.05 cusr  0.61
csys =  6.68 CPU)
Result: FAIL
</pre>

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


More information about the Koha-bugs mailing list