X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6b7bb97a1859ec13526ab09ac5a7d4fa40fea842..fad09fd18d6c364f358f3d7c5782b4d0360c68ab:/services/api/test/functional/arvados/v1/groups_controller_test.rb diff --git a/services/api/test/functional/arvados/v1/groups_controller_test.rb b/services/api/test/functional/arvados/v1/groups_controller_test.rb index 6530181b68..2e3d6b867b 100644 --- a/services/api/test/functional/arvados/v1/groups_controller_test.rb +++ b/services/api/test/functional/arvados/v1/groups_controller_test.rb @@ -2,9 +2,15 @@ require 'test_helper' class Arvados::V1::GroupsControllerTest < ActionController::TestCase + test "attempt to delete group without read or write access" do + authorize_with :active + post :destroy, id: groups(:empty_lonely_group).uuid + assert_response 404 + end + test "attempt to delete group without write access" do authorize_with :active - post :destroy, id: groups(:public).uuid + post :destroy, id: groups(:all_users).uuid assert_response 403 end