|
Lines 348-354
subtest 'suspend and resume tests' => sub {
Link Here
|
| 348 |
|
348 |
|
| 349 |
subtest 'PUT /holds/{hold_id}/priority tests' => sub { |
349 |
subtest 'PUT /holds/{hold_id}/priority tests' => sub { |
| 350 |
|
350 |
|
| 351 |
plan tests => 8; |
351 |
plan tests => 14; |
| 352 |
|
352 |
|
| 353 |
$schema->storage->txn_begin; |
353 |
$schema->storage->txn_begin; |
| 354 |
|
354 |
|
|
Lines 429-433
subtest 'PUT /holds/{hold_id}/priority tests' => sub {
Link Here
|
| 429 |
is( $hold_2->discard_changes->priority, 3, 'Priority adjusted correctly' ); |
429 |
is( $hold_2->discard_changes->priority, 3, 'Priority adjusted correctly' ); |
| 430 |
is( $hold_3->discard_changes->priority, 1, 'Priority adjusted correctly' ); |
430 |
is( $hold_3->discard_changes->priority, 1, 'Priority adjusted correctly' ); |
| 431 |
|
431 |
|
|
|
432 |
$t->put_ok( "//$userid:$password@/api/v1/holds/" |
| 433 |
. $hold_3->id |
| 434 |
. "/priority" => json => 3 )->status_is(200)->json_is(3); |
| 435 |
|
| 436 |
is( $hold_1->discard_changes->priority, 1, 'Priority adjusted correctly' ); |
| 437 |
is( $hold_2->discard_changes->priority, 2, 'Priority adjusted correctly' ); |
| 438 |
is( $hold_3->discard_changes->priority, 3, 'Priority adjusted correctly' ); |
| 439 |
|
| 432 |
$schema->storage->txn_rollback; |
440 |
$schema->storage->txn_rollback; |
| 433 |
}; |
441 |
}; |
| 434 |
- |
|
|