https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383 --- Comment #30 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 209563 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209563&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 * X-Koha-Module-Policy header on error paths: the module policy JWT is attached on the exempt_fine permission error (403), not on success responses (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 <blawlor@clamsnet.org> -- You are receiving this mail because: You are watching all bug changes.