Skip to content

Commit

Permalink
Bug 35129: Regression tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Cohen Arazi <[email protected]>
Signed-off-by: Laura Escamilla <[email protected]>
Signed-off-by: Nick Clemens <[email protected]>
Signed-off-by: Katrin Fischer <[email protected]>
  • Loading branch information
tomascohen authored and kfischer committed Apr 4, 2024
1 parent ace0bec commit 9a4e3bd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/db_dependent/api/v1/pagination.t
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
};

0 comments on commit 9a4e3bd

Please sign in to comment.