Koha/t/db_dependent/api/v1
Tomas Cohen Arazi 1a8903ae85
Bug 33834: Fix random failure on api/v1/ill_requests.t
This patch makes the GET request results more deterministic so we avoid
random failures. It does so by adding a fixed value to each ILL request
and then sorting by it.

To test:
1. Run:
   $ DB_IMAGE=mysqli:8.0 ktd up -d
   # wait until it finished:
   $ ktd --logs
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/ill_requests.t
  (repeat a few times)
=> FAIL: It sometimes fails
3. Apply this patch
4. Repeat 2
=> SUCCESS: It doesn't fail
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-26 09:50:04 -03:00
..
acquisitions_baskets.t
acquisitions_funds.t
acquisitions_orders.t
acquisitions_vendors.t Bug 33103: Add REST API tests 2023-04-20 15:48:39 -03:00
advanced_editor_macros.t
article_requests.t
auth.t
auth_authenticate_api_request.t
auth_basic.t
authorised_values.t
authorities.t Bug 31798: (QA follow-up) Fix tests permissions 2023-05-05 17:45:21 -03:00
biblios.t Bug 31799: (follow-up) Tidy up and fix duplicate barcode handling 2023-05-09 10:57:56 -03:00
cashups.t
checkouts.t
cities.t
clubs_holds.t
erm_agreements.t
erm_documents.t
erm_eholdings_packages.t
erm_eholdings_resources.t
erm_eholdings_titles.t
erm_licenses.t
erm_users.t
holds.t
idp.t
ill_backends.t Bug 22440: Move backend statuses api endpoint 2023-05-05 09:13:43 -03:00
ill_requests.t Bug 33834: Fix random failure on api/v1/ill_requests.t 2023-05-26 09:50:04 -03:00
import_batch_profiles.t
import_record_matches.t
item_groups.t
items.t Bug 33146: Add public items lookup route 2023-03-31 12:26:57 +02:00
jobs.t
libraries.t
oauth.t
pagination.t
password_validation.t
patrons.t Bug 32426: (follow-up) Fix api/v1/patrons.t 2023-03-28 14:54:04 +02:00
patrons_accounts.t Bug 21043: Handle exceptions and switch to debit response 2023-05-05 12:13:52 -03:00
patrons_extended_attributes.t
patrons_holds.t
patrons_password.t
patrons_password_expiration.t
query.t
return_claims.t
search_filters.t
smtp_servers.t
stockrotationstage.t
suggestions.t
ticket_updates.t
tickets.t
transfer_limits.t
two_factor_auth.t
unhandled_exceptions.t