X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bd6b334c80cea328a51a8612d40ef16bdd6ab2e2..2f66d4cc05e9442a9bb69969744d0750a02a1ed4:/services/api/test/helpers/users_test_helper.rb diff --git a/services/api/test/helpers/users_test_helper.rb b/services/api/test/helpers/users_test_helper.rb index 4cf70cfbc6..6ca9977a5e 100644 --- a/services/api/test/helpers/users_test_helper.rb +++ b/services/api/test/helpers/users_test_helper.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + module UsersTestHelper def verify_link(response_items, link_object_name, expect_link, link_class, link_name, head_uuid, tail_uuid, head_kind, fetch_object, class_name) @@ -44,11 +48,9 @@ module UsersTestHelper oid_login_perms = Link.where(tail_uuid: email, link_class: 'permission', name: 'can_login').where("head_uuid like ?", User.uuid_like_pattern) - if expect_oid_login_perms - assert oid_login_perms.any?, "expected oid_login_perms" - else - assert !oid_login_perms.any?, "expected all oid_login_perms deleted" - end + + # these don't get added any more! they shouldn't appear ever. + assert !oid_login_perms.any?, "expected all oid_login_perms deleted" repo_perms = Link.where(tail_uuid: uuid, link_class: 'permission',