[Koha-bugs] [Bug 19440] XISBN tests should skip if XISBN returns overlimit error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 9 20:42:31 CEST 2017


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 67847
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67847&action=edit
Bug 19440: Identify overlimit problems in XISBN tests

This patch makes C4::XISBN::get_xisbns() return an errors hashref
including information of the failing fetches from xisbn services.

It tackles the situation of XISBN, which in some cases returns 'overlimit'
errors.

The patch makes the relevant functions check if the response->{stat} string
is 'ok' and returns the string in $errors otherwise.

This only happens when in list context. This allows to fix the randomly failing
tests while keeping the current behaviour.

All this code should be rewritten. It does the job bug doesn't have problems
handling
or reoprting. This is just a band aid.

To test:
- Make sure
 k$ prove t/db_dependent/XISBN.t
=> SUCCESS :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list