Koha-clms/t/db_dependent/api/v1
Tomas Cohen Arazi b1404ce298 Bug 30663: Add x-koha-override options to /suggestions
This patch adds the x-koha-override header parameter to the route that
is used to create suggestions, POST /suggestions.

The idea is that adding suggestions will be rejected under certain
conditions unless x-koha-override is passed with appropriate values. The
added overrides are:

* any
* max_total
* max_pending

Tests are added for the expected behavior.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 25317416e6)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2022-06-25 04:48:54 +02:00
..
acquisitions_funds.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
acquisitions_orders.t Bug 29570: Regression tests 2022-02-17 13:53:48 +00:00
acquisitions_vendors.t Bug 27587: Use Basic auth on API tests - acquisitions_vendors.t 2021-02-08 17:09:34 +01:00
advanced_editor_macros.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
auth.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
auth_authenticate_api_request.t Bug 28772: Fix auth_authenticate_api_request.t 2021-09-22 11:42:14 +00:00
auth_basic.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
biblios.t Bug 30133: Fix pagination in /biblios/:bibio_id/pickup_locations 2022-03-20 14:32:46 +00:00
cashups.t Bug 26274: (QA follow-up) Minor fixes 2021-02-12 12:33:41 +01:00
checkouts.t Bug 24083: (QA follow-up) Fix failing tests 2020-11-12 16:51:57 +01:00
cities.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
clubs_holds.t Bug 27593: Regression tests 2021-02-23 13:16:07 +01:00
holds.t Bug 29877: Regression tests 2022-03-07 19:32:19 +00:00
illrequests.t Bug 27587: Use Basic auth on API tests - illrequests.t 2021-02-08 17:09:34 +01:00
import_batch_profiles.t Bug 28272: Fix many things... 2021-05-11 09:04:13 +02:00
items.t Bug 30133: Regression tests 2022-03-20 14:32:02 +00:00
libraries.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
oauth.t Bug 28722: Regression tests 2021-09-15 10:47:11 -04:00
patrons.t Bug 22993: Unit tests 2022-03-24 17:44:33 +00:00
patrons_accounts.t Bug 28424: (follow-up) Do not create account lines manually 2021-05-25 09:28:17 +02:00
patrons_extended_attributes.t Bug 23666: (follow-up) Adjust to new exceptions 2021-04-22 14:50:12 +02:00
patrons_holds.t Bug 27366: Unit tests 2021-03-16 16:08:31 +01:00
patrons_password.t Bug 29272: (QA follow-up) Category setup overrides syspref 2021-10-29 11:47:39 -04:00
return_claims.t Bug 28271: Add the ability to set a new lost status when a claim is resolved 2022-02-17 20:30:46 +00:00
smtp_servers.t Bug 22343: Add exec flag on .t files 2020-10-05 11:14:32 +02:00
stockrotationstage.t Bug 27587: Use Basic auth on API tests - stockrotationstage.t 2021-02-08 17:09:34 +01:00
suggestions.t Bug 30663: Add x-koha-override options to /suggestions 2022-06-25 04:48:54 +02:00
transfer_limits.t Bug 26633: (QA follow-up) Tests on error condition 2021-03-16 16:08:30 +01:00