X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c4fa80c6ed2445e1e384455944eb6c4108906cad..0eb72b526bf8bbb011551ecf019f604e17a534f1:/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 2afece9563..6226ffd16c 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 @@ -91,4 +95,17 @@ class GroupsTest < ActionDispatch::IntegrationTest }, auth(:active) assert_response 422 end + + test "group contents with include trash collections" do + get "/arvados/v1/groups/contents", { + include_trash: "true", + filters: [["uuid", "is_a", "arvados#collection"]].to_json + }, 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_includes coll_uuids, collections(:expired_collection).uuid + end end