Koha-clms/t/db_dependent/api/v1
Tomas Cohen Arazi 25317416e6 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>
2022-05-13 15:09:28 -04:00
..
acquisitions_funds.t
…
acquisitions_orders.t Bug 29570: Regression tests 2022-02-16 13:38:45 -05:00
acquisitions_vendors.t
…
advanced_editor_macros.t
…
article_requests.t Bug 27947: (QA follow-up) Clarify permissions 2021-10-06 10:09:25 +02:00
auth.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
auth_authenticate_api_request.t Bug 28948: Make is_public stashed on public routes 2021-10-28 17:32:34 +02:00
auth_basic.t
…
biblios.t Bug 30133: Fix pagination in /biblios/:bibio_id/pickup_locations 2022-02-25 10:42:13 -05:00
cashups.t Bug 26274: (QA follow-up) Minor fixes 2021-02-12 12:33:41 +01:00
checkouts.t Bug 28931: Use EXPORT_OK from Koha::DateUtils 2021-10-07 11:01:05 +02:00
cities.t
…
clubs_holds.t Bug 27593: Regression tests 2021-02-23 13:16:07 +01:00
holds.t Bug 29877: Regression tests 2022-03-04 09:32:33 -05:00
illrequests.t
…
import_batch_profiles.t Bug 28272: Fix many things... 2021-05-11 09:04:13 +02:00
items.t Bug 30133: Regression tests 2022-02-25 10:42:13 -05:00
libraries.t
…
oauth.t Bug 28722: Regression tests 2021-09-30 09:19:05 +02:00
patrons.t Bug 22993: Unit tests 2022-03-11 06:46:31 -05:00
patrons_accounts.t Bug 22435: Update unit tests 2021-08-04 14:06:43 +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-28 12:16:37 +02:00
query.t Bug 30165: Regression tests 2022-03-25 09:37:06 -04:00
return_claims.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
smtp_servers.t
…
stockrotationstage.t
…
suggestions.t Bug 30663: Add x-koha-override options to /suggestions 2022-05-13 15:09:28 -04:00
transfer_limits.t Bug 26633: (QA follow-up) Tests on error condition 2021-03-16 16:08:30 +01:00