15306: Adds similar test to groups, exposing the same issue as collections.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Wed, 5 Jun 2019 13:07:44 +0000 (10:07 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Wed, 5 Jun 2019 13:07:44 +0000 (10:07 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

services/api/test/functional/arvados/v1/groups_controller_test.rb

index cefb7f383076f27c65cfe3e07b2af97bab8dd9a6..4618305b3239dece9c30f223ac8850b47369335f 100644 (file)
@@ -591,6 +591,23 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
         end
       end
 
+      test "show include_trash=false #{project} #{untrash} as #{auth}" do
+        authorize_with auth
+        untrash.each do |pr|
+          Group.find_by_uuid(groups(pr).uuid).update! is_trashed: false
+        end
+        get :show, params: {
+              id: groups(project).uuid,
+              format: :json,
+              include_trash: false
+            }
+        if visible
+          assert_response :success
+        else
+          assert_response 404
+        end
+      end
+
       test "show include_trash #{project} #{untrash} as #{auth}" do
         authorize_with auth
         untrash.each do |pr|