Koha/xt
Tomas Cohen Arazi 65927d0acb Bug 28370: Rewrite tests
This patch rewrites the tests, and also doesn't enforce
additionalProperties to be false. We could need it, and there are routes
that need to be reviewed that would break otherwise now: error.json, for
example, is used everywhere, and some routes add some payload to it.

The main change this patch introduces is using the resolved spec instead
of finding each .json file, which wasn't even correct as we have .yaml
files already. Parameters and responses are tested.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove xt/api.t
=> SUCCESS: Tests fail! A nice report on the failures is printed

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-05-25 09:28:18 +02:00
..
author Bug 26971: Remove obsolete test file translatable-templates.t 2020-11-09 11:20:43 +01:00
api.t Bug 28370: Rewrite tests 2021-05-25 09:28:18 +02:00
check_makefile.t Bug 26265: add a plan for tests 2020-08-25 15:14:30 +02:00
find-license-problems.t Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
find-misplaced-executables.t Bug 26384: Add .t extension to make the script executed by CI 2020-09-28 11:08:03 +02:00
find-missing-filters.t Bug 21576: Keep compatibility with QA script 2018-10-26 17:09:52 +00:00
find-nonutf8 Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
perltidyrc
sample_notices.t Bug 27625: Fix sample_notices.t 2021-05-10 15:52:53 +02:00
single_quotes.t Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
tt_valid.t Bug 16174: Warning in tt_valid.t due to bug 15527 2016-04-01 19:11:32 +00:00
verify-debian-docbook.t Bug 20020: use Modern::Perl in XT scripts 2018-02-05 09:47:09 -03:00
yaml_valid.pl Bug 27673: Replace YAML with YAML::XS 2021-02-16 14:54:50 +01:00
yaml_valid.t Bug 22844: Fix yaml_valid.t - don't pick .json files 2020-07-21 09:47:11 +02:00