https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383
--- Comment #90 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 209750 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209750&action=edit Bug 42383: Add tests for checkin sub-resource endpoints and messages Adds API test coverage for the Bug 42383 additions: * sub-resource confirmation endpoints (hold/transfer confirmation and cancellation): not-found, no-associated-resource (400), and the happy paths (201 + Location, hold set waiting, transfer set in transit / cancelled) * add - post-checkin messages: was_lost message serialization; the not-issued case keeps the 24401 confirmation flow (412 confirmation_required) * add - return_date and dropbox_mode coverage * module policy on error paths: the exempt_fine and return_date permission errors (403) carry the module policy in the `policy` attribute of the error object, other errors do not (the Vue app is hydrated with the policy at template load) Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/api/v1/checkins.t => SUCCESS: Tests pass! 3. Sign off :-D Assisted-by: Sonnet 4.6 (Anthropic) Signed-off-by: Brendan Lawlor <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
