]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 13 Dec 2013 19:47:44 +0000 (19:47 +0000)
commit4604f595d66f65ba15d6625b2366acb147797ffc
tree2ba282b4fd7c47b430f153f3e2b122a062f6605d
parent54937c5eb34c511e00de8d0831141516422885c7
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>
misc/load_testing/benchmark_staff.pl