X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/61cd57499905e8e8cca07c774d1bf8c6bfa069a7..febb804129f39963722e530a394f36367220d4b5:/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 028f403a28..16ce54bbe0 100644 --- 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 + 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}"))