Bugzilla – Attachment 121875 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 28482: (QA follow-up) Add unit test
Bug-28482-QA-follow-up-Add-unit-test.patch (text/plain), 1.36 KB, created by
Nick Clemens (kidclamp)
on 2021-06-11 18:03:06 UTC
(
hide
)
Description:
Bug 28482: (QA follow-up) Add unit test
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-06-11 18:03:06 UTC
Size:
1.36 KB
patch
obsolete
>From 3066ce539acd4b7bbad5ccb7d8269fe5bfa84536 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 28482: (QA follow-up) Add unit test > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> > >https://bugs.koha-community.org/show_bug.cgi?id=28480 >--- > 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 2c3cb3535a..41f5681095 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.11.0
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