X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/44c95f99098fa6c6acbfa82d4b6cbc6015eb6e39..2c0b0226983d13084e77fe059efb85d5ce2c33f5:/services/api/test/integration/groups_test.rb?ds=sidebyside diff --git a/services/api/test/integration/groups_test.rb b/services/api/test/integration/groups_test.rb index 6226ffd16c..c4ab3cffc8 100644 --- a/services/api/test/integration/groups_test.rb +++ b/services/api/test/integration/groups_test.rb @@ -99,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 @@ -108,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