Koha-clms/t/db_dependent/Koha
Tomas Cohen Arazi 3a5fb22ad8
Bug 31473: Fix fragile test about bad OpacHiddenItems conf
There's been a behavior change in recent MariaDB that made some cases
deal with truncated data in DOUBLE context instead of DECIMAL.

Probably this:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-27380

This made the affected test fail consistently on those versions.

This trick for checking OpacHiddenItems is correct (as introduced on bug
28125 doesn't really make use of the warning, just prints it in
about.pl) so one option was to just check for a warning.

I decided to keep the test, but add the optional DECIMAL|DOUBLE check on
the qr. This way other eventual changes will make it fail and serve as a
warning in case something more relevant changes.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ t/db_dependent/Koha/Items.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-26 16:49:30 -03:00
..
Account Bug 30612: Rename other occurrences 2022-08-01 09:59:05 -03:00
Acquisition Bug 30204: Add unit test 2022-04-20 20:43:15 -10:00
Auth Bug 28998: (follow-up) Check missing encryption key in script and module 2022-05-04 05:18:31 -10:00
BackgroundJobs Bug 30728: Add unit tests 2022-05-12 22:17:46 -10:00
Biblio Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
BiblioUtils Bug 29625: Add test for get_all_biblios_iterator 2022-02-21 15:15:47 -10:00
Cash Bug 27779: (QA follow-up) Fix unit test 2022-08-09 07:37:03 -03:00
Charges Bug 22435: (follow-up) Update POS for reduced offset types 2021-08-04 14:06:43 +02:00
Checkouts Bug 28854: (QA follow-up) Remove duplicate key test 2022-07-13 10:36:14 -03:00
CirculationRules Bug 29705: In test suite merge IssuingRules with CirculationRules 2022-05-06 10:33:10 -10:00
Club Bug 29857: (follow-up) Fix t/db_dependent/Koha/Club/Hold.t 2022-03-02 09:40:05 -10:00
Config
…
Edifact Bug 30135: Unit tests 2022-04-13 15:55:39 +02:00
Filter Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
Import Bug 30830: Add Koha Objects for Koha Import Items 2022-05-31 08:53:55 -03:00
Item Bug 31183: Unit tests 2022-08-09 08:26:19 -03:00
Items Bug 29781: Unit test 2022-02-16 11:51:11 -10:00
Library
…
Objects/Mixin Bug 29844: Fix ->search occurrences 2022-02-09 15:36:23 -10:00
Old Bug 30023: Add Koha::Old::Checkout->anonymize 2022-03-01 22:47:47 -10:00
Patron Bug 23681: Move to ::Patron::Restriction::Type(s) 2022-08-25 08:50:35 -03:00
Patrons Bug 29005: Unit tests 2022-04-20 09:03:39 -10:00
Plugins Bug 31223: Regression tests 2022-08-01 09:03:47 -03:00
REST Bug 30194: (26351 follow-up) Silence useless warning 2022-03-29 16:44:31 +02:00
SMTP Bug 29427: Regression tests 2021-11-08 12:16:31 +01:00
SearchEngine Bug 30718: (follow-up) index_records is called more times than we thought 2022-08-22 11:19:27 -03:00
Subscription
…
Tags
…
Template/Plugin Bug 30901: Add Unit Tests 2022-08-16 10:43:10 -03:00
UI/Form/Builder Bug 31179: (QA follow-up) Set field as hidden for tests 2022-07-20 09:04:59 -03:00
XSLT
…
Z3950Responder Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Account.t Bug 29844: Fix t/db_dependent/Koha/* 2022-02-09 15:36:23 -10:00
ActionLogs.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
AdditionalContents.t Bug 29332: Unit tests 2021-10-28 12:16:37 +02:00
ApiKey.t Bug 28772: Make validate_secret return 1|0 2021-09-30 09:48:41 +02:00
ArticleRequest.t Bug 29759: (QA follow-up) Remove abs from the test 2022-01-31 21:55:39 -10:00
ArticleRequests.t Bug 29082: Simplify tests 2021-10-07 10:54:59 +02:00
Authorities.t Bug 29897: Remove 'linkage' leftover 2022-08-09 10:58:48 -03:00
BackgroundJob.t Bug 30889: (follow-up) Warn if context is not defined 2022-07-01 11:13:39 -03:00
BackgroundJobs.t Bug 30181: (QA follow-up) Update BatchTest 2022-03-22 10:17:33 -10:00
Biblio.t Bug 29897: Move code to private method for reusability 2022-08-09 10:58:44 -03:00
BiblioFrameworks.t
…
Biblios.t Bug 29172: Make CustomCoverImagesURL compatible with control fields 2021-10-12 11:15:32 +02:00
Checkout.t Bug 30275: Add Unit test for renewals relation 2022-07-05 09:46:22 -03:00
Checkouts.t Bug 30612: Rename other occurrences 2022-08-01 09:59:05 -03:00
CirculationRules.t Bug 29705: In test suite merge IssuingRules with CirculationRules 2022-05-06 10:33:10 -10:00
Cities.t
…
ClassSortRules.t
…
ClassSources.t
…
ClassSplitRules.t
…
CoverImages.t
…
CsvProfiles.t
…
CurbsidePickups.t Bug 30650: Fix some typos 2022-07-29 15:01:45 -03:00
Database.t Bug 28306: Allow to query database with minimal memory footprint 2021-08-31 10:27:52 +02:00
Desks.t
…
Encryption.t Bug 28998: (follow-up) Check missing encryption key in script and module 2022-05-04 05:18:31 -10:00
Hold.t Bug 22456: Add cancellation request methods to Koha::Hold 2022-07-29 15:28:25 -03:00
Holds.t Bug 22456: (QA follow-up) Consider cancellation requested as cancelled in OPAC 2022-07-29 15:28:45 -03:00
Item.t Bug 31313: Unit tests 2022-08-16 10:10:03 -03:00
ItemTypes.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Items.t Bug 31473: Fix fragile test about bad OpacHiddenItems conf 2022-08-26 16:49:30 -03:00
KeyboardShortcuts.t
…
Libraries.t Bug 29844: Fix t/db_dependent/Koha/* 2022-02-09 15:36:23 -10:00
Library.t
…
MarcSubfieldStructures.t
…
Notices.t Bug 28514: Remove getletter 2021-06-21 13:49:58 +02:00
Object.t Bug 30420: Rename Koha::Patron->get_overdues with ->overdues 2022-06-14 08:46:05 -03:00
Objects.t Bug 29844: Remove use of wantarray from Koha::Objects 2022-02-09 15:36:23 -10:00
Old.t
…
Patron.t Bug 31005: Unit test 2022-06-24 11:36:19 -03:00
Patrons.t Bug 30933: Change for patron->delete 2022-07-20 09:04:06 -03:00
Pseudonymization.t Bug 31201: Prevent Pseudonymization.t to fail 2022-07-21 09:39:28 -03:00
Quotes.t
…
Ratings.t
…
Recall.t Bug 30291: Changes to tests 2022-05-05 11:17:36 -10:00
Recalls.t Bug 30291: (QA follow-up) Fix for revert to recall_id 2022-05-05 11:17:36 -10:00
Reports.t Bug 29579: (QA follow-up) Fix up t/db_dependent/Koha/Reports.t 2022-08-01 14:37:09 -03:00
Reviews.t
…
SMS_Providers.t
…
SearchField.t
…
SharedContent.t
…
Statistics.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Subscription.t
…
Suggestion.t
…
Suggestions.t Bug 30663: Add Koha::Suggestions helper methods 2022-05-05 10:26:41 -03:00
Tags.t
…
Virtualshelf.t Bug 30933: Unit tests 2022-07-20 09:04:07 -03:00
Virtualshelves.t Bug 31288: Regression tests 2022-08-03 11:42:39 -03:00
Z3950Servers.t
…