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

(-)a/t/db_dependent/api/v1/stockrotation_rotas.t (-3 / +2 lines)
Lines 84-94 subtest 'list() tests' => sub { Link Here
84
    );
84
    );
85
85
86
    # Filtering works, two rotas are active
86
    # Filtering works, two rotas are active
87
    my $api_filter = encode_json( { 'me.active' => Mojo::JSON->true } );
87
    my $api_filter = encode_json( { 'active' => Mojo::JSON->true } );
88
    $t->get_ok("//$userid:$password@/api/v1/rotas?q=$api_filter")->status_is(200)
88
    $t->get_ok("//$userid:$password@/api/v1/rotas?q=$api_filter")->status_is(200)
89
        ->json_is( [ $active_rota->to_api, $another_active_rota->to_api ] );
89
        ->json_is( [ $active_rota->to_api, $another_active_rota->to_api ] );
90
90
91
    $api_filter = encode_json( { 'me.title' => $active_rota->title } );
91
    $api_filter = encode_json( { 'title' => $active_rota->title } );
92
    $t->get_ok("//$userid:$password@/api/v1/rotas?q=$api_filter")->status_is(200)->json_is( [ $active_rota->to_api ] );
92
    $t->get_ok("//$userid:$password@/api/v1/rotas?q=$api_filter")->status_is(200)->json_is( [ $active_rota->to_api ] );
93
93
94
    # Warn on unsupported query parameter
94
    # Warn on unsupported query parameter
95
- 

Return to bug 35430