Lines 222-228
subtest 'add() tests' => sub {
Link Here
|
222 |
$tx->req->cookies( { name => 'CGISESSID', value => $authorized_session_id } ); |
222 |
$tx->req->cookies( { name => 'CGISESSID', value => $authorized_session_id } ); |
223 |
$tx->req->env( { REMOTE_ADDR => $remote_address } ); |
223 |
$tx->req->env( { REMOTE_ADDR => $remote_address } ); |
224 |
my $vendor_id = $t->request_ok($tx) |
224 |
my $vendor_id = $t->request_ok($tx) |
225 |
->status_is(200) |
225 |
->status_is( 201, 'SWAGGER3 .2.1' ) |
226 |
->header_like( Location => qr|^\/api\/v1\/acquisitions\/vendors/\d*|, 'SWAGGER3.4.1') |
226 |
->header_like( Location => qr|^\/api\/v1\/acquisitions\/vendors/\d*|, 'SWAGGER3.4.1') |
227 |
->json_is( '/name' => $vendor->{name} ) |
227 |
->json_is( '/name' => $vendor->{name} ) |
228 |
->json_is( '/address1' => $vendor->{address1} )->tx->res->json('/id') |
228 |
->json_is( '/address1' => $vendor->{address1} )->tx->res->json('/id') |
229 |
- |
|
|