]> git.koha-community.org Git - koha.git/commit
Bug 30536: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 14 Apr 2022 15:07:49 +0000 (12:07 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 3 May 2022 21:19:51 +0000 (11:19 -1000)
commit384c9396f42383cea16f594bf4237198f0b7b7ff
treee2575554b67700286beca04f64e2a39bb49dd92c
parent76e06ab7c875b5a1b3b64809fbd15c4bfb519f53
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@theke.io>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/api/v1/query.t