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

(-)a/t/db_dependent/api/v1/extended_attribute_types.t (-3 / +2 lines)
Lines 213-220 subtest 'list_erm() tests' => sub { Link Here
213
213
214
    # Cannot retrieve attributes from other tables
214
    # Cannot retrieve attributes from other tables
215
    $t->get_ok("//$userid:$password@/api/v1/erm/extended_attribute_types?resource_type=order")->status_is(400)
215
    $t->get_ok("//$userid:$password@/api/v1/erm/extended_attribute_types?resource_type=order")->status_is(400)
216
        ->json_is(
216
        ->json_is( "/errors" =>
217
        "/errors" => [ { message => "Not in enum list: license, agreement, package.", path => "/resource_type" } ] );
217
            [ { message => "Not in enum list: license, agreement, package, title.", path => "/resource_type" } ] );
218
218
219
    # Warn on unsupported query parameter
219
    # Warn on unsupported query parameter
220
    $t->get_ok("//$userid:$password@/api/v1/erm/extended_attribute_types?blah=blah")->status_is(400)
220
    $t->get_ok("//$userid:$password@/api/v1/erm/extended_attribute_types?blah=blah")->status_is(400)
221
- 

Return to bug 40192