Bugzilla – Attachment 94941 Details for
Bug 23860
Patrons endpoint not setting the Location header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23860: Regression tests
Bug-23860-Regression-tests.patch (text/plain), 1.34 KB, created by
Martin Renvoize (ashimema)
on 2019-11-01 08:45:53 UTC
(
hide
)
Description:
Bug 23860: Regression tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-11-01 08:45:53 UTC
Size:
1.34 KB
patch
obsolete
>From a961ea97fcf0009e2a9a088973f2b214515efe27 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 21 Oct 2019 16:20:54 -0300 >Subject: [PATCH] Bug 23860: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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 f9b60bc4ac..6e31319228 100644 >--- a/t/db_dependent/api/v1/patrons.t >+++ b/t/db_dependent/api/v1/patrons.t >@@ -134,7 +134,7 @@ subtest 'add() tests' => sub { > $schema->storage->txn_rollback; > > subtest 'librarian access tests' => sub { >- plan tests => 20; >+ plan tests => 21; > > $schema->storage->txn_begin; > >@@ -197,6 +197,10 @@ subtest 'add() tests' => sub { > $tx->req->cookies({ name => 'CGISESSID', value => $session_id }); > $t->request_ok($tx) > ->status_is(201, 'Patron created successfully') >+ ->header_like( >+ Location => qr|^\/api\/v1\/patrons/\d*|, >+ 'SWAGGER3.4.1' >+ ) > ->json_has('/patron_id', 'got a patron_id') > ->json_is( '/cardnumber' => $newpatron->{ cardnumber }) > ->json_is( '/surname' => $newpatron->{ surname }) >-- >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 23860
:
94583
|
94584
|
94585
| 94941 |
94942
|
94943