X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8ac1775086e88da003b530210be1acb4c0f2c648..d63756d4e3c12c637c34cebe6208e582e67f1924:/services/api/test/integration/groups_test.rb diff --git a/services/api/test/integration/groups_test.rb b/services/api/test/integration/groups_test.rb index c26f6be4ca..c4ab3cffc8 100644 --- a/services/api/test/integration/groups_test.rb +++ b/services/api/test/integration/groups_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class GroupsTest < ActionDispatch::IntegrationTest @@ -95,7 +99,8 @@ class GroupsTest < ActionDispatch::IntegrationTest test "group contents with include trash collections" do get "/arvados/v1/groups/contents", { include_trash: "true", - filters: [["uuid", "is_a", "arvados#collection"]].to_json + filters: [["uuid", "is_a", "arvados#collection"]].to_json, + limit: 1000 }, auth(:active) assert_response 200 @@ -104,4 +109,17 @@ class GroupsTest < ActionDispatch::IntegrationTest assert_includes coll_uuids, collections(:foo_collection_in_aproject).uuid assert_includes coll_uuids, collections(:expired_collection).uuid end + + test "group contents without trash collections" do + get "/arvados/v1/groups/contents", { + filters: [["uuid", "is_a", "arvados#collection"]].to_json, + limit: 1000 + }, auth(:active) + assert_response 200 + + coll_uuids = [] + json_response['items'].each { |c| coll_uuids << c['uuid'] } + assert_includes coll_uuids, collections(:foo_collection_in_aproject).uuid + assert_not_includes coll_uuids, collections(:expired_collection).uuid + end end