|
Lines 161-169
subtest "Test endpoints without authentication" => sub {
Link Here
|
| 161 |
plan tests => 8; |
161 |
plan tests => 8; |
| 162 |
$t->get_ok('/api/v1/holds') |
162 |
$t->get_ok('/api/v1/holds') |
| 163 |
->status_is(401); |
163 |
->status_is(401); |
| 164 |
$t->post_ok('/api/v1/holds') |
164 |
$t->post_ok('/api/v1/holds' => json => $post_data) |
| 165 |
->status_is(401); |
165 |
->status_is(401); |
| 166 |
$t->put_ok('/api/v1/holds/0') |
166 |
$t->put_ok('/api/v1/holds/0' => json => $put_data) |
| 167 |
->status_is(401); |
167 |
->status_is(401); |
| 168 |
$t->delete_ok('/api/v1/holds/0') |
168 |
$t->delete_ok('/api/v1/holds/0') |
| 169 |
->status_is(401); |
169 |
->status_is(401); |
| 170 |
- |
|
|