Koha/t/db_dependent
Tomas Cohen Arazi 531d03e811
Bug 31795: (QA follow-up) Use x-koha-override header
Despite its title, this patch does a couple more things.

1. The tests are rewritten to cover more things, and also to avoid
   deleting all authorities inside the transaction. It is really not
   required.
2. It makes the endpoint rely on the already generically implemented
   x-koha-override header, which is intended for the same use case as
   x-confirm-not-duplicate is for.
3. It changes the return codes to match the coding guidelines [1]
4. Only checks for duplicates if no override passed.

To test:
1. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/authorities.t
=> SUCCESS: Tests pass!
2. Apply this follow-up
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D

[1] https://wiki.koha-community.org/wiki/Coding_Guidelines_-_API#SWAGGER3.2.1_POST

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-05 10:18:43 -03:00
..
Acquisition
api/v1 Bug 31795: (QA follow-up) Use x-koha-override header 2023-05-05 10:18:43 -03:00
Auth
AuthoritiesMarc
Authority
Biblio
Budgets
Circulation Bug 30403: (QA follow-up) Fix warning in unit test 2023-04-06 10:45:05 -03:00
CourseReserves Bug 32351: Fix CourseItems.t 2022-11-30 15:58:18 -03:00
Creators
cronjobs
data
Exporter
Holds Bug 32455: Cleanup and expand ExpireReservesAutoFill.t 2023-02-07 10:26:03 -03:00
Illrequest Bug 21548: ILLLIBS patron category / partner_code seems extraneous 2023-03-31 12:14:51 +02:00
Items
Koha Bug 28267: Simplify things 2023-05-05 10:18:36 -03:00
Labels
LDAP
Letters Bug 32442: Add tests 2023-01-31 10:49:37 -03:00
Members
misc/translator
OAI
Patron Bug 14251: Allow use of CSS in discharge letter 2023-03-27 11:53:16 +02:00
Record
Reports
Reserves Bug 33210: Add unit test 2023-04-21 10:36:26 -03:00
Search
selenium Bug 33419: (QA follow-up) Remove changes to basic_workflow.t 2023-05-05 10:18:40 -03:00
Serials
SIP Bug 32684: Implement SIP patron status field "too many items lost" 2023-03-14 08:49:29 -03:00
Template/Plugin Bug 32127: Add unit test 2023-04-14 11:35:24 -03:00
Utils
www Bug 33020: (QA follow-up) POD and chmod 2023-02-27 11:33:50 -03:00
00-strict.t
01-test_dbic.t
Accounts.t
Acquisition.t Bug 25655: Store invoice price and currency even if no currency change 2023-03-06 13:57:53 -03:00
Amazon.t
ArticleRequests.t
AudioAlerts.t
Auth.t Bug 30624: Adjust number of tests 2023-03-13 15:23:15 -03:00
Auth_with_cas.t
Auth_with_ldap.t
AuthorisedValues.t Bug 32997: Add tests 2023-03-02 12:00:16 -03:00
AuthoritiesMarc.t
AuthoritiesMarc_GetTagsLabels.t
AuthUtils.t
BackgroundJob.t
Barcodes.t
Barcodes_ValueBuilder.t
Biblio.t Bug 33262: Unit tests 2023-05-05 10:18:33 -03:00
Biblio_holdsqueue.t
Breeding.t
Budgets.t Bug 32351: Fix Budgets.t 2022-11-30 15:58:15 -03:00
Cache.t
Calendar.t
Charset.t
check_kohastructure.t
check_sysprefs.t
Circulation.t Bug 29234: Unit test 2023-03-31 11:56:49 +02:00
Circulation_holdsqueue.t
Clubs.t
Context.t Bug 32687: Get server version in Context::get_versions 2023-02-24 17:52:28 -03:00
Contract.t
CourseReserves.t
db_structure.t
DecreaseLoanHighHolds.t Bug 29102: Do not count patron's own hold against limits 2022-11-04 19:20:24 -03:00
Filter_MARC_ViewPolicy.t
Fines.t
FrameworkPlugin.t
Heading.t Bug 33159: Simplify ES handling and fix zebra handling 2023-03-31 11:56:53 +02:00
Heading_MARC21.t Bug 33159: Unit tests 2023-03-31 11:56:51 +02:00
Hold.t
Holds.t Bug 29234: (QA follow-up) Fix test that expects wrong defaults 2023-03-31 18:35:54 +02:00
HoldsQueue.t Bug 24860: (QA follow-up) Add unit tests to cover changes to HoldsQueue.pm 2022-11-04 19:39:58 -03:00
Holidays.t
Illcomments.t
Illrequestattributes.t
Illrequests.t Bug 32799: Rename ILLSTATUS authorised value category to ILL_STATUS_ALIAS 2023-02-27 13:08:10 -03:00
ILSDI_Services.t
ImportBatch.t Bug 32804: (QA follow-up) Typo ahs and fix ImportBatch.t 2023-03-17 09:59:12 -03:00
ImportExportFramework.t
Installer.t
Items.t Bug 32456: Unit tests 2022-12-27 10:42:19 -03:00
Koha.t
Koha_Database.t
Koha_Elasticsearch.t
Koha_ExternalContent_OverDrive.t
Koha_ExternalContent_RecordedBooks.t
Koha_MetadataRecord_Authority.t
Koha_Misc_Files.t
Languages.t
Letters.t Bug 33360: Adjust Letters.t for limit parameter and domain limits 2023-04-14 11:35:32 -03:00
LibraryGroups.t
Linker_Default.t
Linker_FirstMatch.t
Log.t Bug 32057: (QA follow-up) Add a simple test 2023-03-14 08:49:34 -03:00
MarcModificationTemplates.t
Members.t Bug 32426: (follow-up) Fix for Members.t / Patrons.t 2023-03-28 14:54:03 +02:00
Message.t Bug 33192: (QA follow-up) Fix it-IT sample data and unit tests 2023-04-14 11:35:40 -03:00
MungeMarcPrice.t
Overdues.t
Passwordrecovery.t
Patroncards.t
PatronLists.t
Patrons.t
Record.t
RecordProcessor_EmbedSeeFromHeadings.t
Reports.t
Reserves.t Bug 32455: Unit tests 2023-02-07 10:26:03 -03:00
rollingloans.t
RotatingCollections.t
Search.t Bug 31471: Send multiple ISBN with 'OR' for FindDuplicate 2023-03-06 09:51:45 -03:00
Serials.t
Serials_2.t
Service.t
ShelfBrowser.t
Sitemapper.t
Stats.t
StockRotationItems.t
StockRotationRotas.t
StockRotationStages.t
SuggestionEngine_ExplodedTerms.t
Suggestions.t
sysprefs.t
TablesSettings.t
Tags.t Bug 31517: Remove unused get_tag function 2022-11-04 19:30:56 -03:00
Templates.t
TestBuilder.t Bug 32350: Add subtest for bad columns 2022-11-30 12:40:33 -03:00
Upload.t
UsageStats.t
Virtualshelves.t
XISBN.t
XSLT.t Bug 32268: Prevent XSLT.t to fail randomly 2022-11-18 12:04:28 -03:00
yaml.t
zebra_config.pl