]> git.koha-community.org Git - koha.git/commit
Bug 22071: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Jan 2019 15:37:27 +0000 (12:37 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 10 Jan 2019 14:22:15 +0000 (14:22 +0000)
commitd830a2f0973fa6ffd634a9665f93a53c325c2d7a
treed37311d49be803775e6f26adb9bec7ace620e129
parentaee127e6397db9594c97d06b684cdeabf6f50e0d
Bug 22071: Regression tests

The authenticate_api_request() behaviour needs more tests. This patch
adds tests for the stashed Koha::Patron object. It highlights the bug in
the OAuth authentication case.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/auth_authenticate_api_request.t
=> FAIL: Tests fail in the OAuth case, pass in the cookie-based auth
case.

Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 2067b8e3f8cb363370897ff179bcdbf5c97cbbbb)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/api/v1/auth_authenticate_api_request.t [new file with mode: 0755]