Bugzilla – Attachment 164222 Details for
Bug 35129
REST API: _per_page=0 crashes on Illegal division by zero
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35129: Regression tests
Bug-35129-Regression-tests.patch (text/plain), 1.27 KB, created by
Nick Clemens (kidclamp)
on 2024-04-01 17:50:17 UTC
(
hide
)
Description:
Bug 35129: Regression tests
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-04-01 17:50:17 UTC
Size:
1.27 KB
patch
obsolete
>From 1181605539f10cc6745811f791030bd95490ad36 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 18 Mar 2024 12:48:55 -0300 >Subject: [PATCH] Bug 35129: Regression tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > t/db_dependent/api/v1/pagination.t | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/pagination.t b/t/db_dependent/api/v1/pagination.t >index 9800259ce76..fd6ab5479e6 100755 >--- a/t/db_dependent/api/v1/pagination.t >+++ b/t/db_dependent/api/v1/pagination.t >@@ -34,7 +34,7 @@ t::lib::Mocks::mock_preference( 'RESTBasicAuth', 1 ); > > subtest 'list() pagination tests' => sub { > >- plan tests => 66; >+ plan tests => 69; > > $schema->storage->txn_begin; > >@@ -186,5 +186,12 @@ subtest 'list() pagination tests' => sub { > > is( scalar @{$cities}, 10, '10 cities retrieved, -1 means all' ); > >+ $t->get_ok("//$userid:$password@/api/v1/cities?_per_page=0")->status_is(400)->json_is( >+ '/0' => { >+ message => 'Invalid value: 0', >+ path => '/query/_per_page' >+ } >+ ); >+ > $schema->storage->txn_rollback; > }; >-- >2.30.2
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 35129
:
163342
|
163343
|
163637
|
163638
| 164222 |
164223