Koha/t/db_dependent/api/v1
Tomas Cohen Arazi e846641edd
Bug 36329: Make POST /transfer_limits/batch honor BranchTransferLimitsType
This patch adds tests for the different cases of `BranchTransferLimitsType`.
It also adds tests for the situation of the consumer sending both limit
criterias on the request.

The controller gets adjusted for this new behavior and the spec gets
documentation added about this.

Bonus: tests are added the right guidelines code, and
BranchTransferLimitsType gets mocked to avoid failures due to existing
data.

To test:
1. Apply this patches
2. Run:
   $ ktd --shell
  k$ qa
=> SUCCESS: All green, and tests pass!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Fixed a typo in one of the return messages

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-19 10:25:01 +01:00
..
items Bug 35963: (QA follow-up): tidy up code and fix exec permission 2024-03-07 15:02:52 +01:00
acquisitions_baskets.t Bug 29523: Remove the FIXME 2023-10-27 16:40:45 -03:00
acquisitions_funds.t Bug 29523: Remove the FIXME 2023-10-27 16:40:45 -03:00
acquisitions_orders.t Bug 36066: (follow-up) Move 403 to 409 when status ne cancelled 2024-03-08 18:58:29 +01:00
acquisitions_vendor_issues.t
acquisitions_vendors.t
advanced_editor_macros.t
article_requests.t
auth.t Bug 34999: Add unit test 2024-01-16 12:05:59 +01:00
auth_authenticate_api_request.t Bug 32551: Regression tests 2024-01-11 15:44:44 +01:00
auth_basic.t
authorised_values.t
authorities.t
biblios.t Bug 33036: REST API: Merge biblio records implements merging of records 2024-03-18 11:03:39 +01:00
bookings.t Bug 36100: (QA follow-up) Move 400 to 409 2024-03-07 16:36:42 +01:00
cashups.t
checkouts.t Bug 35469: Add 'manage_bookings' subpermission to /checkouts 2024-03-07 17:35:39 +01:00
cities.t
clubs_holds.t
edifact_files.t Bug 30070: (follow-up) Filter out deleted files on the API 2024-01-17 11:38:57 +01:00
erm_agreements.t
erm_counter_files.t Bug 34587: (QA follow-up): squash 2023-10-31 16:46:30 -03:00
erm_counter_registries.t Bug 35757: (QA follow-up) Tidy 2024-01-11 12:10:45 +01:00
erm_custom_reports.t Bug 34587: (QA follow-up) Tidy 2023-10-31 16:46:32 -03:00
erm_documents.t
erm_eholdings_packages.t
erm_eholdings_resources.t
erm_eholdings_titles.t Bug 35115: (QA follow-up): 2023-11-29 17:36:10 -03:00
erm_licenses.t
erm_sushi_services.t Bug 35757: (QA follow-up) Tidy 2024-01-11 12:10:45 +01:00
erm_usage_data_providers.t Bug 34587: Fix license issues 2023-11-01 09:26:11 -03:00
erm_usage_titles.t Bug 34587: Fix license issues 2023-11-01 09:26:11 -03:00
erm_users.t Bug 12133: Fix failing tests 2023-11-14 10:32:36 -03:00
holds.t Bug 8367: (QA follow-up) Fix broken tests 2023-11-02 10:22:40 -03:00
idp.t
ill_backends.t
ill_batches.t
ill_batchstatuses.t
ill_requests.t Bug 29523: Fix tests 2023-10-28 09:47:38 -03:00
import_batch_profiles.t
import_record_matches.t
item_groups.t
item_types.t Bug 34008: Harmonize attribute names 2023-11-01 17:23:15 -03:00
items.t Bug 35167: Regression tests 2023-10-27 16:44:05 -03:00
jobs.t
libraries.t
oauth.t
pagination.t
password_validation.t Bug 35204: Add unit tests 2023-12-18 15:21:07 +01:00
patrons.t Bug 30230: (QA follow-up) Add unit tests for API definition change 2024-01-29 12:25:10 +01:00
patrons_accounts.t
patrons_extended_attributes.t
patrons_holds.t
patrons_password.t
patrons_password_expiration.t
preservation_Processings.t Bug 30708: Tidy perl files 2023-10-18 15:42:04 -03:00
preservation_Trains.t Bug 30708: Tidy perl files 2023-10-18 15:42:04 -03:00
preservation_WaitingList.t Bug 30708: Tidy perl files 2023-10-18 15:42:04 -03:00
query.t
return_claims.t
search_filters.t
smtp_servers.t
stockrotationstage.t
suggestions.t
ticket_updates.t
tickets.t
transfer_limits.t Bug 36329: Make POST /transfer_limits/batch honor BranchTransferLimitsType 2024-03-19 10:25:01 +01:00
two_factor_auth.t
unhandled_exceptions.t