]> git.koha-community.org Git - koha.git/commit
Bug 11124: disallow trying to run the staff benchmark script as the DB account
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 23 Oct 2013 14:48:14 +0000 (16:48 +0200)
committerFridolin SOMERS <fridolin.somers@biblibre.com>
Tue, 24 Dec 2013 13:04:41 +0000 (14:04 +0100)
commit3335b258d4580ffafbe0cefbe63ab15494acb20c
treedafe68c60a6f7c5c7d33eacf4a2999cb070dbb57
parent96599cc238393ff3f70445c512ff8ffc87bc13ce
Bug 11124: disallow trying to run the staff benchmark script as the DB account

On step 6 (at least), the circulation and return page redirect to the
select branch page and nothing is done.

The script should die if the user used is the sql administrator account.

Test plan:
Suppose that the sql admin account is root/root and koha/koha a
superlibrarian account.

1/
perl misc/load_testing/benchmark_staff.pl --steps=6
--url=http://admin.koha.local/cgi-bin/koha/
--password="koha" --user="koha"
should produce:
  ...
  Step 6
  ...

2/
perl misc/load_testing/benchmark_staff.pl --steps=1
--url=http://admin.koha.local/cgi-bin/koha/
--password="root" --user="root"
should produce:
Authentication successful
You cannot use the database administrator account to launch this script

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 4604f595d66f65ba15d6625b2366acb147797ffc)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
misc/load_testing/benchmark_staff.pl