Bugzilla – Attachment 162155 Details for
Bug 35918
Incorrect library used when AutoLocation configured using the same IP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35918: Add test
Bug-35918-Add-test.patch (text/plain), 1.32 KB, created by
Kyle M Hall (khall)
on 2024-02-14 16:34:19 UTC
(
hide
)
Description:
Bug 35918: Add test
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-02-14 16:34:19 UTC
Size:
1.32 KB
patch
obsolete
>From e6ae664f169bcef1d9b088f933c4aa3dfec79b81 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 26 Jan 2024 08:57:03 +0100 >Subject: [PATCH] Bug 35918: Add test > >Signed-off-by: Magnus Enger <magnus@libriotech.no> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/Auth.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t >index 974538598ba..6d4eb6bf932 100755 >--- a/t/db_dependent/Auth.t >+++ b/t/db_dependent/Auth.t >@@ -1270,7 +1270,7 @@ subtest 'checkpw() return values tests' => sub { > > subtest 'AutoLocation' => sub { > >- plan tests => 6; >+ plan tests => 7; > > $schema->storage->txn_begin; > >@@ -1315,6 +1315,13 @@ subtest 'AutoLocation' => sub { > is( $userid, $patron->userid ); > is( $template, undef ); > >+ my $other_library = $builder->build_object( { class => 'Koha::Libraries', value => { branchip => '127.0.0.1' } } ); >+ $patron->library->branchip('127.0.0.1')->store; >+ ( $userid, $cookie, $sessionID, $flags, $template ) = >+ C4::Auth::checkauth( $cgi, 0, { catalogue => 1 }, 'intranet' ); >+ my $session = C4::Auth::get_session($sessionID); >+ is( $session->param('branch'), $patron->branchcode ); >+ > $schema->storage->txn_rollback; > > }; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35918
:
161481
|
161482
|
161541
|
161542
| 162155 |
162156