Bugzilla – Attachment 111193 Details for
Bug 18974
Cataloging MARC21 record and adding item selenium test
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18974: Change to use ENV variables and fix login bug
Bug-18974-Change-to-use-ENV-variables-and-fix-logi.patch (text/plain), 1.90 KB, created by
Victor Grousset/tuxayo
on 2020-10-04 01:53:12 UTC
(
hide
)
Description:
Bug 18974: Change to use ENV variables and fix login bug
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2020-10-04 01:53:12 UTC
Size:
1.90 KB
patch
obsolete
>From 61eb3bd89f2fd0a34049dfe689a8aaccfc6ae1a2 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 30 Oct 2017 03:04:11 +0000 >Subject: [PATCH] Bug 18974: Change to use ENV variables and fix login bug > >The kohadevbox has admin/admin set, so for testing when >creating the initial superuser, if you wish to minimize >effort, use admin/admin. Otherwise, make sure to: >export KOHA_USER={whatever your user is} >export KOHA_PASS={whatever your password is} >before attempting to run the test. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > t/db_dependent/selenium/cataloging_workflow.t | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/selenium/cataloging_workflow.t b/t/db_dependent/selenium/cataloging_workflow.t >index 5b868a39c7..b302619e2f 100644 >--- a/t/db_dependent/selenium/cataloging_workflow.t >+++ b/t/db_dependent/selenium/cataloging_workflow.t >@@ -32,10 +32,12 @@ use MARC::Record; > use MARC::Field; > > my $dbh = C4::Context->dbh; >-my $login = 'koha'; >-my $password = 'koha'; >-my $base_url= 'http://'.C4::Context->preference("staffClientBaseURL")."/cgi-bin/koha/"; >-my $opac_url= C4::Context->preference("OPACBaseURL"); >+my $login = $ENV{KOHA_USER} || 'koha'; >+my $password = $ENV{KOHA_PASS} || 'koha'; >+my $staff_client_base_url = >+ $ENV{KOHA_INTRANET_URL} || C4::Context->preference("staffClientBaseUrl") || q{}; >+my $base_url= $staff_client_base_url . "/cgi-bin/koha/"; >+my $opac_url = $ENV{KOHA_OPAC_URL} || C4::Context->preference("OPACBaseURL") || q{}; > > my $number_of_biblios_to_insert = 3; > our $sample_data = { >@@ -120,7 +122,7 @@ END { > > sub auth { > my ( $driver, $login, $password) = @_; >- fill_form( $driver, { userid => 'koha', password => 'koha' } ); >+ fill_form( $driver, { userid => $login, password => $password } ); > my $login_button = $driver->find_element('//input[@id="submit"]'); > $login_button->submit(); > } >-- >2.28.0
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 18974
:
65193
|
65194
|
65265
|
65522
|
65867
|
66154
|
66163
|
66509
|
68816
|
68817
|
111191
|
111192
| 111193 |
111194
|
111195