Koha/xt
Tomas Cohen Arazi 35e9ac9b0a
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: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-08-01 17:26:44 +02:00
..
author
api.t Bug 37018: Add 400 response definition to all routes 2024-08-01 17:26:44 +02:00
check_makefile.t
find-license-problems.t
find-misplaced-executables.t
find-missing-auth_checks.t Bug 24879: Exclude koha_perl_deps.pl 2024-04-03 17:05:51 +02:00
find-missing-csrf.t
find-missing-filters.t
find-missing-op-in-forms.t Bug 36190: (QA follow-up) Tidy 2024-03-15 09:38:53 +01:00
js_tidy.t Bug 36374: flag JS files to keep tidy 2024-04-29 15:19:33 +02:00
single_quotes.t
tt_valid.t
verify-debian-docbook.t
verify_bib1.att.t
vue_tidy.t
yaml_valid.pl
yaml_valid.t