]> git.koha-community.org Git - koha.git/commit
Bug 37018: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Sat, 6 Jul 2024 13:32:07 +0000 (10:32 -0300)
committerwainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
Tue, 23 Jul 2024 04:42:51 +0000 (04:42 +0000)
commit1fd94e90bcc74fe5f312ec0bf69850f96e4789ba
treebc1d07de46138173533d478b9251845f46d15f2c
parent648ebe28cc65b62e804d33c65449eb7d466fb26b
Bug 37018: Regression tests

This patch adds regression tests. With the current codebase, the
malicious query returns a 200. It should be caught and a 400 needs to be
returned.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/query.t
=> FAIL: It returns a 200
3. Once the rest of the patches are ready, repeat 2
=> SUCCESS: It returns a 400

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: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
t/db_dependent/api/v1/query.t