Bugzilla – Attachment 94938 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.27 KB, created by
Martin Renvoize (ashimema)
on 2019-11-01 08:42:15 UTC
(
hide
)
Description:
Bug 23859: Regression tests
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-11-01 08:42:15 UTC
Size:
1.27 KB
patch
obsolete
>From 3f38ab2dc5035963b7a59d2a7b837fefab91f2cb 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> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > 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.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 23859
:
94497
|
94498
|
94499
|
94500
| 94938 |
94939
|
94940