Koha-clms/t/db_dependent/api/v1
Tomas Cohen Arazi 185b431ebf
Bug 33227: Remove invalid spec and adjust the code accordingly
The spec contains a non-standard definition for the body param. Removing
it from the spec makes us need to handle the 'body' manually in the case
of JSON data.

This patch basically does that. It also changes the uses of
$c->validation, which are discouraged by the
Mojolicious::Plugin::OpenAPI dev/maintainer. I do it to highlight what
we must do in other places and the fact that there's no behavior change.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/biblios.t \
           xt/api.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-20 09:39:50 -03:00
..
acquisitions_baskets.t Bug 30596: Prevent api/v1/acquisitions_baskets.t and api/v1/acquisitions_funds.t to fail randomly 2022-04-25 20:52:28 -10:00
acquisitions_funds.t Bug 30596: Prevent api/v1/acquisitions_baskets.t and api/v1/acquisitions_funds.t to fail randomly 2022-04-25 20:52:28 -10:00
acquisitions_orders.t Bug 30677: Add tests 2022-06-28 09:35:45 -03:00
acquisitions_vendors.t Bug 27587: Use Basic auth on API tests - acquisitions_vendors.t 2021-02-08 17:09:34 +01:00
advanced_editor_macros.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
article_requests.t Bug 29759: (follow-up) Fix api/v1/article_requests.t 2022-02-02 09:48:33 -10:00
auth.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
auth_authenticate_api_request.t Bug 28948: Make is_public stashed on public routes 2021-10-28 17:32:34 +02:00
auth_basic.t Bug 29924: Add tests for API Basic auth behavior 2022-05-06 10:33:09 -10:00
authorised_values.t Bug 32997: (QA follow-up) values => authorised_values 2023-03-02 12:00:17 -03:00
authorities.t Bug 31793: (QA follow-up) Require editauthorities flag 2023-03-10 10:21:19 -03:00
biblios.t Bug 33227: Remove invalid spec and adjust the code accordingly 2023-03-20 09:39:50 -03:00
cashups.t Bug 26274: (QA follow-up) Minor fixes 2021-02-12 12:33:41 +01:00
checkouts.t Bug 30642: Make renewal_type an enum in spec and add test 2023-02-10 11:08:00 -03:00
cities.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
clubs_holds.t Bug 27593: Regression tests 2021-02-23 13:16:07 +01:00
erm_agreements.t Bug 32353: Fix erm_agreements.t 2023-02-23 07:43:00 -03:00
erm_documents.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_eholdings_packages.t Bug 32923: Some fixes in ERM specs 2023-02-27 11:07:19 -03:00
erm_eholdings_resources.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_eholdings_titles.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_licenses.t Bug 32030: (QA follow-up) Enable BasicAuth for ERM tests 2022-11-08 11:55:23 -03:00
erm_users.t Bug 32240: Prevent erm_users.t to fail if checkout exist 2022-11-17 13:39:44 -03:00
holds.t Bug 24860: (QA follow-up) Add unit tests to cover Koha::REST::V1::Holds::add 2022-11-04 19:41:44 -03:00
idp.t Bug 31378: (QA follow-up) Tidy tests 2022-11-08 14:40:17 -03:00
illrequests.t Bug 27587: Use Basic auth on API tests - illrequests.t 2021-02-08 17:09:34 +01:00
import_batch_profiles.t Bug 28272: Fix many things... 2021-05-11 09:04:13 +02:00
import_record_matches.t Bug 30855: (follow-up) Rewrite tests using Basic authentication 2022-06-02 13:42:28 -03:00
item_groups.t Bug 24857: API spec 2022-07-08 15:59:55 -03:00
items.t Bug 31797: Add DELETE /items/:item_id endpoint 2023-01-30 12:20:44 -03:00
jobs.t Bug 30982: API tweaks 2022-09-23 08:57:49 -03:00
libraries.t Bug 29144: Remove opac_info from a few tests 2022-09-16 09:55:20 -03:00
oauth.t Bug 28722: Regression tests 2021-09-30 09:19:05 +02:00
pagination.t Bug 30125: (QA follow-up) Rename variable as cities 2022-03-03 16:11:49 -10:00
password_validation.t Bug 30962: (QA follow-up) Rename attribute and simplify tests 2023-02-03 10:30:13 -03:00
patrons.t Bug 32351: Fix t/db_dependent/api/v1/patrons.t 2022-11-30 15:58:19 -03:00
patrons_accounts.t Bug 22435: Update unit tests 2021-08-04 14:06:43 +02:00
patrons_extended_attributes.t Bug 31381: Add tests 2022-11-30 15:58:13 -03:00
patrons_holds.t Bug 28670: Prevent api/v1/patrons_holds.t to fail randomly 2023-01-18 16:10:19 +00:00
patrons_password.t Bug 29272: (QA follow-up) Category setup overrides syspref 2021-10-28 12:16:37 +02:00
patrons_password_expiration.t Bug 29926: (QA follow-up) Date format missing in spec 2022-05-06 10:33:10 -10:00
query.t Bug 32713: Unit tests 2023-03-16 16:12:26 -03:00
return_claims.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
search_filters.t Bug 17170: (QA follow-up) Spec cleanup 2022-10-21 11:15:22 -03:00
smtp_servers.t Bug 22343: Add exec flag on .t files 2020-10-05 11:14:32 +02:00
stockrotationstage.t Bug 27587: Use Basic auth on API tests - stockrotationstage.t 2021-02-08 17:09:34 +01:00
suggestions.t Bug 30663: Add x-koha-override options to /suggestions 2022-05-05 10:26:41 -03:00
ticket_updates.t Bug 31028: (follow-up) Fix executable bit 2023-03-07 14:54:29 -03:00
tickets.t Bug 31028: Add API's for tickets 2023-03-06 11:23:17 -03:00
transfer_limits.t Bug 29857: (follow-up) Fix t/db_dependent/api/v1/transfer_limits.t 2022-03-02 09:40:05 -10:00
two_factor_auth.t Bug 30588: (QA follow-up) Remove erroneous FIXME 2022-10-21 11:36:59 -03:00
unhandled_exceptions.t Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00