projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '5824-keep-web'
[arvados.git]
/
services
/
api
/
test
/
unit
/
link_test.rb
diff --git
a/services/api/test/unit/link_test.rb
b/services/api/test/unit/link_test.rb
index 028f403a286e2b27dbb456f69b703ebc6387110b..16ce54bbe0b045aa8f2d5c3f8f0d2c0a22c22106 100644
(file)
--- a/
services/api/test/unit/link_test.rb
+++ b/
services/api/test/unit/link_test.rb
@@
-34,6
+34,11
@@
class LinkTest < ActiveSupport::TestCase
end
end
end
end
+ test "non-admin project owner can make it public" do
+ assert(new_active_link_valid?(tail_uuid: groups(:anonymous_group).uuid),
+ "non-admin project owner can't make their project public")
+ end
+
test "link granting permission to nonexistent user is invalid" do
refute new_active_link_valid?(tail_uuid:
users(:active).uuid.sub(/-\w+$/, "-#{'z' * 15}"))
test "link granting permission to nonexistent user is invalid" do
refute new_active_link_valid?(tail_uuid:
users(:active).uuid.sub(/-\w+$/, "-#{'z' * 15}"))