|
Lines 62-68
subtest 'list() tests' => sub {
Link Here
|
| 62 |
|
62 |
|
| 63 |
subtest 'add() tests' => sub { |
63 |
subtest 'add() tests' => sub { |
| 64 |
|
64 |
|
| 65 |
plan tests => 8; |
65 |
plan tests => 11; |
| 66 |
|
66 |
|
| 67 |
$schema->storage->txn_begin; |
67 |
$schema->storage->txn_begin; |
| 68 |
|
68 |
|
|
Lines 109-114
subtest 'add() tests' => sub {
Link Here
|
| 109 |
->status_is( 201, 'SWAGGER3.2.1' ) |
109 |
->status_is( 201, 'SWAGGER3.2.1' ) |
| 110 |
->json_has( '' => $limit_hashref, 'SWAGGER3.3.1' ); |
110 |
->json_has( '' => $limit_hashref, 'SWAGGER3.3.1' ); |
| 111 |
|
111 |
|
|
|
112 |
$t->post_ok( "//$auth_userid:$password@/api/v1/transfer_limits" => json => $limit_hashref ) |
| 113 |
->status_is( 409, 'Conflict creating the resource' ) |
| 114 |
->json_is( |
| 115 |
{ |
| 116 |
error => "[A transfer limit with the given parameters already exists!]" |
| 117 |
} |
| 118 |
); |
| 119 |
|
| 112 |
$schema->storage->txn_rollback; |
120 |
$schema->storage->txn_rollback; |
| 113 |
}; |
121 |
}; |
| 114 |
|
122 |
|
| 115 |
- |
|
|