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>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 9a4e3bd49f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
ab7a3ff196
commit
9e8657aba7
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue