Bugzilla – Attachment 94583 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.28 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-10-22 16:57:51 UTC
(
hide
)
Description:
Bug 23860: Regression tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-10-22 16:57:51 UTC
Size:
1.28 KB
patch
obsolete
>From adf8b717b8ce07554e84927d5ed49bed9a3e652e 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> >--- > 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.23.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 23860
:
94583
|
94584
|
94585
|
94941
|
94942
|
94943