X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1b8a813dedfaf0737bad8626ae624822b8dc98f4..2c157382b1ecf0175f0356d6c3a457dca942f5f3:/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