X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8c66c387ddeb1fe5cc19f31fc0e4f24ed778b1f8..8632354e4ec2361d8f53563a0df1da1ff0c01e63:/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 40adbd2dfe..6530181b68 100644 --- a/services/api/test/functional/arvados/v1/groups_controller_test.rb +++ b/services/api/test/functional/arvados/v1/groups_controller_test.rb @@ -1,4 +1,11 @@ require 'test_helper' class Arvados::V1::GroupsControllerTest < ActionController::TestCase + + test "attempt to delete group without write access" do + authorize_with :active + post :destroy, id: groups(:public).uuid + assert_response 403 + end + end