]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1710949: add tests for blocking after failed attempts
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 1 Sep 2017 16:31:41 +0000 (12:31 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 1 Sep 2017 17:05:33 +0000 (13:05 -0400)
commitcd22fa01980e6c9343012353bd9c43cf61f9838d
treedf19fd05d4b470801ebae532e7a76c92fafc5708
parentf1f6489e89f7e40b5ba69b5c36367d17a376c82a
LP#1710949: add tests for blocking after failed attempts

Enhance the live tests to verify that attempts to log in
get blocked after too many failed ones; this assumes
a stock value for block_count.

General testing plan:

[1] Use srfsh to test, e.g.,

srfsh# request open-ils.auth open-ils.auth.login {"identifier":"99999389406","password":"12345","type":"opac","org":1}

[2] Try various scenarios:

    - wrong password
    - type = staff but user doesn't have STAFF_LOGIN
    - repeated failed attempts
    - barcode is inactive
    - using "identifier" in conjunction with opac.barcode_regex set
    - using "username" or "barcode"
    - supplying a workstation name that exists
    - ... or does not
    - user is inactive
    - user is marked barrred

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/live_t/24-lp1710949-login-api.t