]> git.koha-community.org Git - koha.git/commit
Bug 24862: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 13 Mar 2020 14:44:03 +0000 (11:44 -0300)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Tue, 30 Jun 2020 19:19:07 +0000 (21:19 +0200)
commit9484adb366738ce82c877ddf4fb84afad2daf1b8
treef1bf114c22c8139862808c67df8cbd867f28b8ca
parent185fb939c303990a7eb45f5a0e579b8417697b9f
Bug 24862: Regression tests

This patch introduces tests for the expected behaviour on API routes
that expect a logged in user, but the request is made with an anonymous
session cookie.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/auth_authenticate_api_request.t
=> FAIL: Tests fail because the situation is not handled correctly in
the code

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 0547ad34dfe01ca7d7660df59e29bc30fdf3cf1d)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
(cherry picked from commit 8d2255bddcdfad75d8b40daf47bb24c0fd13a9ed)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
t/db_dependent/api/v1/auth_authenticate_api_request.t