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

(-)a/t/db_dependent/api/v1/extended_attribute_types.t (-3 / +8 lines)
Lines 219-226 subtest 'list_erm() tests' => sub { Link Here
219
    # Cannot retrieve attributes from other tables
219
    # Cannot retrieve attributes from other tables
220
    $t->get_ok("//$userid:$password@/api/v1/erm/extended_attribute_types?resource_type=order")
220
    $t->get_ok("//$userid:$password@/api/v1/erm/extended_attribute_types?resource_type=order")
221
        ->status_is(400)
221
        ->status_is(400)
222
        ->json_is( "/errors" =>
222
        ->json_is(
223
            [ { message => "Not in enum list: license, agreement, package, title.", path => "/resource_type" } ] );
223
        "/errors" => [
224
            {
225
                message => "Not in enum list: license, agreement, agreement_period, package, title.",
226
                path    => "/resource_type"
227
            }
228
        ]
229
        );
224
230
225
    # Warn on unsupported query parameter
231
    # Warn on unsupported query parameter
226
    $t->get_ok("//$userid:$password@/api/v1/erm/extended_attribute_types?blah=blah")
232
    $t->get_ok("//$userid:$password@/api/v1/erm/extended_attribute_types?blah=blah")
227
- 

Return to bug 39438