Bugzilla – Attachment 94480 Details for
Bug 23858
Vendors endpoint not setting the Location header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23858: Regression tests
Bug-23858-Regression-tests.patch (text/plain), 1.27 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-10-21 17:25:23 UTC
(
hide
)
Description:
Bug 23858: Regression tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-10-21 17:25:23 UTC
Size:
1.27 KB
patch
obsolete
>From 08343d5598ed85cd716a879ecb8a48cddcd1185c Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 21 Oct 2019 14:22:26 -0300 >Subject: [PATCH] Bug 23858: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/api/v1/acquisitions_vendors.t | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/acquisitions_vendors.t b/t/db_dependent/api/v1/acquisitions_vendors.t >index 5b4b531a5a..61fd1289f4 100644 >--- a/t/db_dependent/api/v1/acquisitions_vendors.t >+++ b/t/db_dependent/api/v1/acquisitions_vendors.t >@@ -180,7 +180,7 @@ subtest 'get() test' => sub { > > subtest 'add() tests' => sub { > >- plan tests => 15; >+ plan tests => 16; > > $schema->storage->txn_begin; > >@@ -223,6 +223,7 @@ subtest 'add() tests' => sub { > $tx->req->env( { REMOTE_ADDR => $remote_address } ); > my $vendor_id = $t->request_ok($tx) > ->status_is(200) >+ ->header_like( Location => qr|^\/api\/v1\/acquisitions\/vendors/\d*|, 'SWAGGER3.4.1') > ->json_is( '/name' => $vendor->{name} ) > ->json_is( '/address1' => $vendor->{address1} )->tx->res->json('/id') > ; # read the response vendor id for later use >-- >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 23858
:
94480
|
94481
|
94482
|
94534
|
94535
|
94536
|
94796
|
94797
|
94798