Bugzilla – Attachment 94534 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.42 KB, created by
Joonas Kylmälä
on 2019-10-22 12:02:13 UTC
(
hide
)
Description:
Bug 23858: Regression tests
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2019-10-22 12:02:13 UTC
Size:
1.42 KB
patch
obsolete
>From 740c8b9818406a309c3145bc490da09d70111875 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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi> >--- > 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.17.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 23858
:
94480
|
94481
|
94482
|
94534
|
94535
|
94536
|
94796
|
94797
|
94798