[Koha-bugs] [Bug 10806] The staff benchmark script does not check authentication failure

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 30 09:31:34 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10806

--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 20728
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=20728&action=edit
Bug 10806: The staff benchmark script does not check authentication failure.

Currently, if you launch the script
misc/load_testing/benchmark_staff.pl, it always displays
"Authentication successful" or continue to execute the script even if
nothing is done.

This patch checks if the url is right and if the authentication is
correctly done.

Test plan:
Suppose that a correct login/pwd is koha/koha
1/
perl misc/load_testing/benchmark_staff.pl --steps=1
--url=http://admin.koha.local/cgi-bin/koha/
--password="koha" --user="koha"
should produce:
  Authentication successful
  ...
  Step 1
  ...

2/
perl misc/load_testing/benchmark_staff.pl --steps=1
--url=http://admin.koha.local/cgi-bin/koha/
--password="KOHA" --user="KOHA"
should produce:
Authentication failure: bad login/password

3/
perl misc/load_testing/benchmark_staff.pl --steps=1
--url=http://admin.kobe.local/cgi-bin/koha/
--password="koha" --user="koha"
should produce:
Authentication failure:
    500 Can't connect to admin.kobe.local:80 (Bad
    hostname)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list