projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '2498-group-admin'
[arvados.git]
/
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 6530181b68fb9c6a35024d37c88994af2bfe5860..2e3d6b867b7313bd6d92c3303ce33d658b5d2266 100644
(file)
--- 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
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
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
assert_response 403
end