Koha/t
Nick Clemens de8052609f Bug 36908: Additional unit tests to identify flaw when two branches have same IP
This could be considered a configuration flaw, but when:
StaffLoginBranchBasedOnIP enabled and not AutoLocation
or
AutoLocation enabledand no IP set in user's branch

AND

two branches have the same IP set

the user can be logged in randomly to one of the matching branches.

These test often pass, but will also randomly fail

Easier to verify with a one liner demonstrating current code:
perl -e 'use Koha::Libraries; use List::MoreUtils qw(uniq); my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search->as_list }; my $branchcode="CPL"; warn Data::Dumper::Dumper( uniq( $branchcode, keys %$branches ));'

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 7e88035372)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit aa1c4c0281)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2024-05-31 15:24:39 +00:00
..
Acquisition
Biblio
Budgets
Circulation
cypress Bug 36774: Add cypress tests 2024-05-28 21:54:33 +00:00
data Bug 31393: Koha::Config: handle the special case for 'content' attribute 2023-11-07 22:14:09 -10:00
db_dependent Bug 36908: Additional unit tests to identify flaw when two branches have same IP 2024-05-31 15:24:39 +00:00
edi_testfiles Bug 35398: Unit test 2024-03-19 15:21:43 +00:00
etc
External
Koha Bug 36432: Remove circular dependency from Koha::Object 2024-05-28 16:36:58 +00:00
lib Bug 34913: Fix a selenium test 2024-03-19 19:19:13 +00:00
Members
Number
Search Bug 34969: Remove unneeded module from buildQuery.t 2023-10-05 10:07:09 -10:00
Serials
SIP
Test
00-check-atomic-updates.t
00-deprecated.t
00-load.t
00-merge-conflict-markers.t
00-testcritic.t Bug 34911: Test files from HEAD instead of 'master' 2023-10-05 09:38:43 -10:00
00-valid-xml.t
Auth.t
AuthoritiesMarc_MARC21.t
AuthoritiesMarc_UNIMARC.t
Barcodes_annual.t
Barcodes_EAN13.t
Barcodes_hbyymmincr.t
Barcodes_incremental.t
Biblio.t
Biblio2.t
Budgets.t
Charset.t
Circulation_barcodedecode.t
ClassSortRoutine.t
ClassSortRoutine_Dewey.t
ClassSortRoutine_Generic.t
ClassSortRoutine_LCC.t
ClassSource.t
Context.t
Contract.t
CookieManager.t
Creators.t
DateUtils.t Bug 36432: Remove circular dependency from Koha::Object 2024-05-28 16:36:58 +00:00
dummy.t
Edifact.t Bug 35398: Add unit test for extraction of library_rotation_plan 2024-03-19 15:21:43 +00:00
EdiInvoice.t
Ediorder.t
Ediordrsp.t
EdiTransport.t
Form_MessagingPreferences.t
HtmlTags.t
ImportBatch.t
Installer_PerlModules.t
ItemCirculationAlertPreference.t
Koha.t
Koha_MetadataRecord.t
Koha_SearchEngine_Elasticsearch_Browse.t
Koha_Template_Plugin_Cache.t
Koha_Template_Plugin_HtmlId.t
Koha_Template_Plugin_Koha.t
Koha_Util_FrameworkPlugin.t
Koha_Util_MARC.t
Koha_XSLT_HTTPS.t
Labels.t
Labels_split_ccn.t
Labels_split_ddcn.t
Labels_split_lccn.t
Labels_split_Regex.t
Languages.t
Logger.t
Makefile.t
Matcher.t
Members_Messaging.t
OpenLibrarySearch.t
Output.t
Output_JSONStream.t
Patroncards.t
Patroncards_Batch.t
Patroncards_Lib.t
Patroncards_Patroncard.t
Patroncards_Profile.t
Patroncards_Template.t
RecordProcessor.t
Ris.t
Scheduler.t
Scrubber.t Bug 36328: (QA follow-up) Expand tests and reorder elements to clarify differences 2024-05-01 15:17:00 +00:00
Search.t Bug 34968: Remove unneeded module from Search.t 2023-10-05 10:08:18 -10:00
Search_PazPar2.t
SimpleMARC.t Bug 24480: (follow-up) Adjust tests 2023-11-09 15:58:08 -10:00
SMS.t
SocialData.t
Stats.t
SuggestionEngine.t
SuggestionEngine_AuthorityFile.t Bug 34970: Remove most modules from SuggestionEngine_AuthorityFile.t 2023-10-05 09:56:33 -10:00
template_filters.t
timezones.t
TmplToken.t
Token.t Bug 34755: (Rmaint follow-up) Fix tests 2024-03-21 13:42:10 +00:00