X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/feb463839301b0b596089e48a981660365d2c4a7..69c08bb019277b158fc2f568b7de7483caa2875d:/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',