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
…
Cash Bug 27779: (QA follow-up) Fix unit test 2022-08-09 07:37:03 -03:00
Charges
…
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
…
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
…
Library
…
Objects/Mixin
…
Old
…
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
…
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
…
Account.t
…
ActionLogs.t
…
AdditionalContents.t
…
ApiKey.t
…
ArticleRequest.t
…
ArticleRequests.t
…
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
…
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
…
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
…
Items.t Bug 31473: Fix fragile test about bad OpacHiddenItems conf 2022-08-26 16:49:30 -03:00
KeyboardShortcuts.t
…
Libraries.t
…
Library.t
…
MarcSubfieldStructures.t
…
Notices.t
…
Object.t Bug 30420: Rename Koha::Patron->get_overdues with ->overdues 2022-06-14 08:46:05 -03:00
Objects.t
…
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
…
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
…