[Koha-bugs] [Bug 30536] Embeds should be defined in a single place

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 14 18:02:59 CEST 2022


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

--- Comment #14 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 133327
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=133327&action=edit
Bug 30536: Unit tests

This patch adds tests to make sure there's no behavior change regarding
error conditions. When requests include wrong x-koha-embed values, a 400
error should be returned, both in our original implementation or relying
on the Mojolicious::Plugin::OpenAPI features.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/query.t
=> SUCCESS: Tests pass
3. Apply the rest of the patches
4. Repeat 2
=> SUCCESS: Tests still pass
5. Sign off :-D

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

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


More information about the Koha-bugs mailing list