Lines 102-112
subtest 'list() tests' => sub {
Link Here
|
102 |
|
102 |
|
103 |
# One illrequest created, returned with augmented data |
103 |
# One illrequest created, returned with augmented data |
104 |
$tx = $t->ua->build_tx( GET => |
104 |
$tx = $t->ua->build_tx( GET => |
105 |
'/api/v1/illrequests?embed=patron,library,capabilities,metadata' ); |
105 |
'/api/v1/illrequests?embed=patron,library,capabilities,metadata,requested_partners' ); |
106 |
$tx->req->cookies( { name => 'CGISESSID', value => $session_id } ); |
106 |
$tx->req->cookies( { name => 'CGISESSID', value => $session_id } ); |
107 |
$tx->req->env( { REMOTE_ADDR => $remote_address } ); |
107 |
$tx->req->env( { REMOTE_ADDR => $remote_address } ); |
108 |
$t->request_ok($tx)->status_is(200) |
108 |
$t->request_ok($tx)->status_is(200) |
109 |
->json_has( '/0/patron', 'patron embedded' ) |
109 |
->json_has( '/0/patron', 'patron embedded' ) |
|
|
110 |
->json_has( '/0/requested_partners', 'requested_partners embedded' ) |
110 |
->json_has( '/0/capabilities', 'capabilities embedded' ) |
111 |
->json_has( '/0/capabilities', 'capabilities embedded' ) |
111 |
->json_has( '/0/library', 'library embedded' ) |
112 |
->json_has( '/0/library', 'library embedded' ) |
112 |
->json_has( '/0/metadata', 'metadata embedded' ); |
113 |
->json_has( '/0/metadata', 'metadata embedded' ); |
113 |
- |
|
|