Koha-clms/t/db_dependent/api/v1
Tomas Cohen Arazi 4f28cd3227 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>
(cherry picked from commit 1a8903ae85)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
2023-06-08 17:15:33 +00:00
..
acquisitions_baskets.t
…
acquisitions_funds.t
…
acquisitions_orders.t
…
acquisitions_vendors.t
…
advanced_editor_macros.t
…
article_requests.t
…
auth.t
…
auth_authenticate_api_request.t
…
auth_basic.t
…
authorised_values.t Bug 32997: (QA follow-up) values => authorised_values 2023-03-03 12:11:41 +00:00
biblios.t Bug 33329: Regression tests 2023-05-12 15:35:08 +01:00
cashups.t
…
checkouts.t Bug 30642: Make renewal_type an enum in spec and add test 2023-02-13 09:29:38 +00:00
cities.t
…
clubs_holds.t
…
erm_agreements.t Bug 32353: Fix erm_agreements.t 2023-02-27 13:32:29 +00:00
erm_documents.t
…
erm_eholdings_packages.t Bug 32923: Some fixes in ERM specs 2023-02-28 18:44:19 +00:00
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-12 08:16:30 +01:00
ill_requests.t Bug 33834: Fix random failure on api/v1/ill_requests.t 2023-06-08 17:15:33 +00:00
import_batch_profiles.t
…
import_record_matches.t
…
item_groups.t
…
items.t
…
jobs.t
…
libraries.t
…
oauth.t
…
pagination.t
…
password_validation.t Bug 30962: (QA follow-up) Rename attribute and simplify tests 2023-02-06 16:20:29 +00:00
patrons.t Bug 32351: Fix t/db_dependent/api/v1/patrons.t 2022-12-02 10:55:27 +00:00
patrons_accounts.t
…
patrons_extended_attributes.t Bug 31381: Add tests 2022-12-02 10:13:53 +00:00
patrons_holds.t Bug 28670: Prevent api/v1/patrons_holds.t to fail randomly 2023-01-25 14:33:47 +00:00
patrons_password.t
…
patrons_password_expiration.t
…
query.t Bug 32713: Unit tests 2023-03-21 16:30:33 +00:00
return_claims.t
…
search_filters.t
…
smtp_servers.t
…
stockrotationstage.t
…
suggestions.t
…
transfer_limits.t
…
two_factor_auth.t
…
unhandled_exceptions.t
…