X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f12350f25275fbf4c6c8692122f5eacce89794ee..3598c3003a7987cca5c0536ba8206ec40c1c3649:/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}"))