Bugzilla – Attachment 94498 Details for
Bug 23859
Cities endpoint not setting the Location header
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23859: Regression tests
Bug-23859-Regression-tests.patch (text/plain), 1.21 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-10-21 19:15:27 UTC
(
hide
)
Description:
Bug 23859: Regression tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-10-21 19:15:27 UTC
Size:
1.21 KB
patch
obsolete
>From c9618f0aa8f256ed3527513158da3024cf263b14 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 21 Oct 2019 14:41:59 -0300 >Subject: [PATCH] Bug 23859: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/api/v1/cities.t | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/api/v1/cities.t b/t/db_dependent/api/v1/cities.t >index ba64c29420..e6f9c08326 100644 >--- a/t/db_dependent/api/v1/cities.t >+++ b/t/db_dependent/api/v1/cities.t >@@ -140,7 +140,7 @@ subtest 'get() tests' => sub { > > subtest 'add() tests' => sub { > >- plan tests => 17; >+ plan tests => 18; > > $schema->storage->txn_begin; > >@@ -190,7 +190,11 @@ subtest 'add() tests' => sub { > $tx->req->env({ REMOTE_ADDR => $remote_address }); > my $city_id = > $t->request_ok($tx) >- ->status_is(200) >+ ->status_is( 201, 'SWAGGER3.2.1' ) >+ ->header_like( >+ Location => qr|^\/api\/v1\/cities/\d*|, >+ 'SWAGGER3.4.1' >+ ) > ->json_is( '/name' => $city->{name} ) > ->json_is( '/state' => $city->{state} ) > ->json_is( '/postal_code' => $city->{postal_code} ) >-- >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 23859
:
94497
|
94498
|
94499
|
94500
|
94938
|
94939
|
94940