Tomas Cohen Arazi
35e9ac9b0a
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> |
||
---|---|---|
.. | ||
author | ||
api.t | ||
check_makefile.t | ||
find-license-problems.t | ||
find-misplaced-executables.t | ||
find-missing-auth_checks.t | ||
find-missing-csrf.t | ||
find-missing-filters.t | ||
find-missing-op-in-forms.t | ||
js_tidy.t | ||
single_quotes.t | ||
tt_valid.t | ||
verify-debian-docbook.t | ||
verify_bib1.att.t | ||
vue_tidy.t | ||
yaml_valid.pl | ||
yaml_valid.t |