Bugzilla – Attachment 122332 Details for
Bug 28480
GET /patrons missing q parameters on the spec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28480: (QA follow-up) Add unit test
Bug-28480-QA-follow-up-Add-unit-test.patch (text/plain), 1.38 KB, created by
Jonathan Druart
on 2021-06-23 13:08:07 UTC
(
hide
)
Description:
Bug 28480: (QA follow-up) Add unit test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-06-23 13:08:07 UTC
Size:
1.38 KB
patch
obsolete
>From ab5017ba5ecdd3b840a2fa81ff2ae201017e9258 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 11 Jun 2021 18:02:11 +0000 >Subject: [PATCH] Bug 28480: (QA follow-up) Add unit test > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/api/v1/patrons.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t >index 2c3cb3535ae..41f56810956 100755 >--- a/t/db_dependent/api/v1/patrons.t >+++ b/t/db_dependent/api/v1/patrons.t >@@ -46,7 +46,7 @@ subtest 'list() tests' => sub { > $schema->storage->txn_rollback; > > subtest 'librarian access tests' => sub { >- plan tests => 13; >+ plan tests => 16; > > $schema->storage->txn_begin; > >@@ -67,6 +67,10 @@ subtest 'list() tests' => sub { > ->status_is(200) > ->json_is('/0/cardnumber' => $librarian->cardnumber); > >+ $t->get_ok("//$userid:$password@/api/v1/patrons?q={\"cardnumber\":\"" . $librarian->cardnumber ."\"}") >+ ->status_is(200) >+ ->json_is('/0/cardnumber' => $librarian->cardnumber); >+ > $t->get_ok("//$userid:$password@/api/v1/patrons?address2=" . $librarian->address2) > ->status_is(200) > ->json_is('/0/address2' => $librarian->address2); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28480
:
121475
|
121503
|
121874
|
121875
|
122278
| 122332