View | Details | Raw Unified | Return to bug 35616
Collapse All | Expand All

(-)a/t/db_dependent/api/v1/tickets.t (-10 / +9 lines)
Lines 285-292 subtest 'update() tests' => sub { Link Here
285
285
286
    # Attempt partial update on a PUT
286
    # Attempt partial update on a PUT
287
    my $ticket_with_missing_field = {
287
    my $ticket_with_missing_field = {
288
        source    => 'catalog',
288
        source => 'catalog',
289
        body      => "Test ticket details",
289
        body   => "Test ticket details",
290
    };
290
    };
291
291
292
    $t->put_ok( "//$userid:$password@/api/v1/tickets/$ticket_id" => json =>
292
    $t->put_ok( "//$userid:$password@/api/v1/tickets/$ticket_id" => json =>
Lines 296-304 subtest 'update() tests' => sub { Link Here
296
296
297
    # Full object update on PUT
297
    # Full object update on PUT
298
    my $ticket_with_updated_field = {
298
    my $ticket_with_updated_field = {
299
        source    => 'catalog',
299
        source => 'catalog',
300
        title     => "Test ticket update",
300
        title  => "Test ticket update",
301
        body      => "Test ticket update details",
301
        body   => "Test ticket update details",
302
    };
302
    };
303
303
304
    $t->put_ok( "//$userid:$password@/api/v1/tickets/$ticket_id" => json =>
304
    $t->put_ok( "//$userid:$password@/api/v1/tickets/$ticket_id" => json =>
Lines 307-316 subtest 'update() tests' => sub { Link Here
307
307
308
    # Authorized attempt to write invalid data
308
    # Authorized attempt to write invalid data
309
    my $ticket_with_invalid_field = {
309
    my $ticket_with_invalid_field = {
310
        blah        => "Ticket Blah",
310
        blah   => "Ticket Blah",
311
        source    => 'catalog',
311
        source => 'catalog',
312
        title     => "Test ticket update",
312
        title  => "Test ticket update",
313
        body      => "Test ticket update details",
313
        body   => "Test ticket update details",
314
    };
314
    };
315
315
316
    $t->put_ok( "//$userid:$password@/api/v1/tickets/$ticket_id" => json =>
316
    $t->put_ok( "//$userid:$password@/api/v1/tickets/$ticket_id" => json =>
317
- 

Return to bug 35616