Koha-clms/t/db_dependent/api/v1
Pedro Amorim ac157b7a75
Bug 35581: Koha::Illrequest -> Koha::ILL::Request
Koha/Illrequests.pm -> Koha/ILL/Requests.pm

Merged:
t/db_dependent/Koha/Illrequests.t
t/db_dependent/Illrequests.t

Into:
t/db_dependent/Koha/ILL/Requests.t

ILL classes file structure is, for the most part, around 7 years old and doesn't follow a strict logic. It's so confusing that some test files exist redundantly.

This housekeeping should help future work in regards to ISO18626 to add Koha as a supplying agency instead of just requesting agency, as is now.
It should also help future housekeeping of moving backend related logic out of the Illrequest.pm into Illbackend.pm (now ILL/Request.pm and ILL/Backend.pm as of this patchset).
It should also help in structuring the addition of a master generic form (see bug 35570)

This patchset will require existing backends to be updated to match the new class names and structure, if they invoke them.

Test plan, k-t-d, run tests:
prove t/db_dependent/api/v1/ill_*
prove t/db_dependent/Koha/ILL/*

Test plan, k-t-d, manual:
1) Install FreeForm, enable ILL module, run:
bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) You'll have to switch the FreeForm repo to the one compatible with this work, like:
cd /kohadevbox/koha/Koha/Illbackends/FreeForm
git checkout reorganize_ILL
3) Do some generic ILL testing:
3.1) Create a request
3.2) Add a comment to a request
3.3) Edit a request
3.4) Edit a request's item metadata
3.5) Confirm a request
3.6) List requests
3.7) Filter requests list using left side filters
4) Install a metadata enrichment plugin:
https://github.com/PTFS-Europe/koha-plugin-api-pubmed
4.1) Create an ILL batch and insert a pubmedid like 123
4.2) Add the request and finish batch
5) Verify all of the above works as expected

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-22 08:57:45 +02: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 Bug 33105: Tidy files 2023-07-20 10:59:31 -03:00
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 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 Bug 36420: Unit tests 2024-04-18 16:51:14 +02:00
authorised_values.t Bug 32997: (QA follow-up) values => authorised_values 2023-03-02 12:00:17 -03:00
authorities.t Bug 33996: Add missing authority objects mapping 2023-06-29 11:11:12 -03:00
biblios.t Bug 33568: Prevent api/v1/biblios.t to fail randomly 2024-04-05 17:39:45 +02:00
bookings.t Bug 36100: (QA follow-up) Move 400 to 409 2024-03-07 16:36:42 +01:00
cashups.t Bug 36493: Make cashups test more robust 2024-04-12 11:26:01 +02:00
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 Bug 32353: Fix erm_agreements.t 2023-02-23 07:43:00 -03:00
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 36093: (QA follow-up) Fix unit tests 2024-04-19 18:06:39 +02:00
erm_documents.t
…
erm_eholdings_packages.t Bug 32923: Some fixes in ERM specs 2023-02-27 11:07:19 -03:00
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 Bug 35581: Koha::Illrequest -> Koha::ILL::Request 2024-04-22 08:57:45 +02:00
ill_batches.t Bug 35581: Koha::Illrequest -> Koha::ILL::Request 2024-04-22 08:57:45 +02:00
ill_batchstatuses.t Bug 35581: Illbatchstatus* -> ILL::Batch::Status* 2024-04-22 08:57:42 +02:00
ill_requests.t Bug 35581: Koha::Illrequest -> Koha::ILL::Request 2024-04-22 08:57:45 +02: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 Bug 33852: Add one more test 2023-06-09 08:29:01 -03:00
libraries.t
…
oauth.t
…
pagination.t Bug 35129: Regression tests 2024-04-04 15:24:34 +02:00
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 Bug 21043: Handle exceptions and switch to debit response 2023-05-05 12:13:52 -03:00
patrons_extended_attributes.t
…
patrons_holds.t Bug 33573: Unit tests 2023-07-03 14:51:30 -03:00
patrons_password.t
…
patrons_password_expiration.t
…
patrons_recalls.t Bug 35967: Add more test cases 2024-04-19 19:54:44 +02:00
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 Bug 32713: Unit tests 2023-03-16 16:12:26 -03:00
return_claims.t Bug 32496: Reduce unnecessary unblessings of objects in Circulation.pm 2023-09-22 10:52:39 -03:00
search_filters.t
…
smtp_servers.t Bug 34243: Fix copy/pasted city references in api tests 2023-07-14 08:59:49 -03:00
stockrotationstage.t
…
suggestions.t Bug 32942: (QA follow-up) Fix regression test 2023-09-18 15:31:46 -03:00
ticket_updates.t Bug 31028: (follow-up) Fix executable bit 2023-03-07 14:54:29 -03:00
tickets.t Bug 35616: (QA follow-up): tidy up code and fix exec permission 2024-04-22 08:57:37 +02:00
transfer_limits.t Bug 36329: (follow-up) Fix error message comparisson in testes 2024-03-19 18:09:03 +01:00
two_factor_auth.t
…
unhandled_exceptions.t
…