Koha-clms/t/db_dependent
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
..
Acquisition Bug 29955: Move populate_order_with_prices to Koha namespace 2022-08-19 15:47:51 -03:00
Auth
…
AuthoritiesMarc
…
Authority
…
Biblio
…
Circulation Bug 24295: Finally remove GetTransfers from C4/Circulation 2022-08-26 15:42:56 -03:00
CourseReserves
…
Creators
…
Exporter
…
Holds Bug 14364: Fix spelling and tests 2022-07-29 16:00:34 -03:00
Illrequest
…
Items
…
Koha Bug 31473: Fix fragile test about bad OpacHiddenItems conf 2022-08-26 16:49:30 -03:00
LDAP
…
Labels
…
Letters
…
Members
…
OAI
…
Patron
…
Record
…
Reports
…
Reserves
…
SIP Bug 12225: Add unit tests 2022-08-25 08:22:35 -03:00
Search
…
Serials
…
Template/Plugin
…
Utils
…
api/v1 Bug 29939: Use the REST API for ratings 2022-08-22 11:31:15 -03:00
cronjobs
…
data Bug 29697: Fix t/db_dependent/Search.t 2022-07-25 10:16:48 -03:00
misc/translator
…
selenium Bug 28787: Comment selenium test that will fail if no SMTP server is defined 2022-08-09 13:38:45 -03:00
www
…
00-strict.t
…
01-test_dbic.t
…
Accounts.t
…
Acquisition.t Bug 28269: (QA follow-up) Fix typo in test description 2022-08-09 09:00:52 -03:00
Amazon.t
…
ArticleRequests.t
…
AudioAlerts.t
…
Auth.t Bug 31382: Regression tests 2022-08-17 15:52:02 -03:00
AuthUtils.t
…
Auth_with_cas.t
…
Auth_with_ldap.t Bug 27342: Remove dbh from C4::Auth 2022-08-16 10:45:41 -03:00
AuthorisedValues.t
…
AuthoritiesMarc.t
…
AuthoritiesMarc_GetTagsLabels.t
…
BackgroundJob.t
…
Barcodes.t
…
Barcodes_ValueBuilder.t
…
Biblio.t
…
Biblio_holdsqueue.t
…
Breeding.t
…
Budgets.t Bug 29955: Move populate_order_with_prices to Koha namespace 2022-08-19 15:47:51 -03:00
Cache.t
…
Calendar.t
…
Charset.t
…
Circulation.t Bug 31112: (QA follow-up) Reduce database queries 2022-08-26 15:59:24 -03:00
Circulation_holdsqueue.t
…
Clubs.t
…
Context.t
…
Contract.t
…
CourseReserves.t
…
DecreaseLoanHighHolds.t
…
Filter_MARC_ViewPolicy.t
…
Fines.t
…
FrameworkPlugin.t
…
Heading.t
…
Heading_MARC21.t
…
Hold.t
…
Holds.t
…
HoldsQueue.t
…
Holidays.t
…
ILSDI_Services.t
…
Illcomments.t
…
Illrequestattributes.t
…
Illrequests.t Bug 28909: Allow illview to use backend template 2022-08-09 13:21:39 -03:00
ImportBatch.t Bug 30779: Remove _update_import_record_marc and update tests 2022-08-18 09:02:04 -03:00
ImportExportFramework.t
…
Installer.t
…
Items.t Bug 23919: Add tests for Items search by ISBN and ISSN with variations 2022-08-01 13:21:50 -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
…
LibraryGroups.t
…
Linker_Default.t
…
Linker_FirstMatch.t
…
Log.t Bug 27342: (QA follow-up) Fix test 2022-08-16 10:50:47 -03:00
MarcModificationTemplates.t
…
Members.t
…
Message.t
…
MungeMarcPrice.t
…
Overdues.t
…
Passwordrecovery.t
…
PatronLists.t
…
Patroncards.t
…
Patrons.t
…
Record.t
…
RecordProcessor_EmbedSeeFromHeadings.t
…
Reports.t
…
Reserves.t Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
RotatingCollections.t
…
Search.t Bug 24295: Replace mock in t/db_dependent/Search.t 2022-08-26 15:42:35 -03:00
Serials.t Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
Serials_2.t
…
Service.t
…
ShelfBrowser.t
…
Sitemapper.t
…
Stats.t
…
StockRotationItems.t
…
StockRotationRotas.t
…
StockRotationStages.t
…
SuggestionEngine_ExplodedTerms.t
…
Suggestions.t
…
TablesSettings.t
…
Tags.t
…
Templates.t
…
TestBuilder.t
…
Upload.t
…
UsageStats.t
…
Virtualshelves.t
…
XISBN.t
…
XSLT.t
…
check_kohastructure.t
…
check_sysprefs.t
…
db_structure.t
…
rollingloans.t
…
sysprefs.t
…
yaml.t
…
zebra_config.pl
…