]> git.koha-community.org Git - koha.git/commit
Bug 24232: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 17 Dec 2019 17:38:41 +0000 (14:38 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 13 Jan 2020 22:06:48 +0000 (22:06 +0000)
commit7be05a35debeaca73ddc1b3fe810d6213dd57d93
treeb1702d2aa8e3f15e559766359dec47e7b98d4da1
parentf2462e9216cad2bdbe8e383125b5a6d5ed81d406
Bug 24232: Regression tests

This patch enhances the tests for the DELETE /biblios/:biblio_id
endpoint so more fine grained permissions are tested.

It highlights the fact that the required permissions defined on the spec
are not correcttly defined.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/biblios.t
=> FAIL: Tests fail because the user (that now has subpermissions only)
does not have enough permissions for a non-existent subpermission

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 866b81ae18be5f0f257a05229920268c4ca8895c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/api/v1/biblios.t