Koha-clms/t/db_dependent/api/v1
Tomas Cohen Arazi 011a85d37c Bug 37018: Add 400 response definition to all routes
This patch adds a test for well defined 400 responses on all verbs and
paths on the API spec.

The tests verify:

* Presence of 400 response definition
* The description must start with 'Bad request' (needs coding guideline)
* If DBIC queries are allowed on the route, then `invalid_query` needs
  to be mentioned in the description.

All routes get fixed to make the tests pass.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ yarn api:bundle
  k$ prove xt/api.t
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2024-07-23 15:35:16 +02:00
..
acquisitions_baskets.t
…
acquisitions_funds.t
…
acquisitions_orders.t
…
acquisitions_vendors.t
…
advanced_editor_macros.t
…
article_requests.t
…
auth.t
…
auth_authenticate_api_request.t
…
auth_basic.t
…
authorised_values.t Bug 32997: (QA follow-up) values => authorised_values 2023-03-03 12:11:41 +00:00
biblios.t Bug 33974: (RMAINT fix) Fix bad rebase in biblios.t 2023-07-19 08:42:08 +00:00
cashups.t
…
checkouts.t Bug 32801: Add tests 2023-07-18 14:14:42 +00:00
cities.t
…
clubs_holds.t
…
erm_agreements.t Bug 32353: Fix erm_agreements.t 2023-02-27 13:32:29 +00: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-28 18:44:19 +00: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 34789: Update unit tests 2023-10-12 15:45:39 +00: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 35053: Regression tests 2023-11-13 14:03:04 +00:00
idp.t Bug 31378: (QA follow-up) Tidy tests 2022-11-08 14:40:17 -03:00
ill_backends.t Bug 22440: Move backend statuses api endpoint 2023-05-12 08:16:30 +01:00
ill_requests.t Bug 33834: Fix random failure on api/v1/ill_requests.t 2023-06-08 17:15:33 +00:00
import_batch_profiles.t
…
import_record_matches.t
…
item_groups.t
…
items.t Bug 35167: Regression tests 2023-11-13 15:10:51 +00:00
jobs.t Bug 33852: Add one more test 2023-07-12 09:36:03 +00:00
libraries.t Bug 29144: Remove opac_info from a few tests 2022-09-16 09:55:20 -03:00
oauth.t
…
pagination.t
…
password_validation.t Bug 36575: (QA follow-up) 2024-05-29 07:15:08 +00:00
patrons.t Bug 32351: Fix t/db_dependent/api/v1/patrons.t 2022-12-02 10:55:27 +00:00
patrons_accounts.t
…
patrons_extended_attributes.t Bug 31381: Add tests 2022-12-02 10:13:53 +00:00
patrons_holds.t Bug 33573: Unit tests 2023-07-18 14:44:55 +00:00
patrons_password.t
…
patrons_password_expiration.t
…
query.t Bug 37018: Add 400 response definition to all routes 2024-07-23 15:35:16 +02:00
return_claims.t
…
search_filters.t Bug 17170: (QA follow-up) Spec cleanup 2022-10-21 11:15:22 -03:00
smtp_servers.t Bug 34243: Fix copy/pasted city references in api tests 2023-07-18 15:28:27 +00:00
stockrotationstage.t
…
suggestions.t Bug 32942: (QA follow-up) Fix regression test 2023-10-12 16:00:23 +00:00
transfer_limits.t
…
two_factor_auth.t Bug 30588: (QA follow-up) Remove erroneous FIXME 2022-10-21 11:36:59 -03:00
unhandled_exceptions.t
…