Bugzilla – Attachment 66847 Details for
Bug 16694
Limit SIP2 auth by patron attribute
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18137: (QA followup) Make sure the session exists and is expired on expiration tests
Bug-18137-QA-followup-Make-sure-the-session-exists.patch (text/plain), 1.38 KB, created by
Benjamin Rokseth
on 2017-09-05 12:19:01 UTC
(
hide
)
Description:
Bug 18137: (QA followup) Make sure the session exists and is expired on expiration tests
Filename:
MIME Type:
Creator:
Benjamin Rokseth
Created:
2017-09-05 12:19:01 UTC
Size:
1.38 KB
patch
obsolete
>From ba505df482d082aea368ebd344a68a07d10e41ff Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 9 Aug 2017 11:11:13 -0300 >Subject: [PATCH] Bug 18137: (QA followup) Make sure the session exists and is > expired on expiration tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Lari Taskula <lari.taskula@jns.fi> > >https://bugs.koha-community.org/show_bug.cgi?id=16694 >--- > t/db_dependent/api/v1/auth.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/api/v1/auth.t b/t/db_dependent/api/v1/auth.t >index 0e324a8..447028c 100644 >--- a/t/db_dependent/api/v1/auth.t >+++ b/t/db_dependent/api/v1/auth.t >@@ -62,13 +62,13 @@ subtest 'under() tests' => sub { > ->json_is('/error', 'Authorization failure. Missing required permission(s).'); > > # 401 (session expired) >- my $session = C4::Auth::get_session($session_id); >- $session->delete; >- $session->flush; >+ t::lib::Mocks::mock_preference( 'timeout', '1' ); >+ ($borrowernumber, $session_id) = create_user_and_session(); > $tx = $t->ua->build_tx( GET => "/api/v1/patrons" ); > $tx->req->cookies( > { name => 'CGISESSID', value => $session_id } ); > $tx->req->env( { REMOTE_ADDR => $remote_address } ); >+ sleep(2); > $t->request_ok($tx) > ->status_is(401) > ->json_is('/error', 'Session has been expired.'); >-- >2.1.4
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 16694
:
54920
|
56068
|
56442
|
56579
|
66845
|
66846
|
66847
|
66848
|
66849
|
67956
|
80702
|
80703