From 168c5a9a50b93f736b15b7a6c56af900b90aab39 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 5 Sep 2019 15:00:54 -0400 Subject: [PATCH] 15558: Fix tests Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- services/api/test/unit/user_test.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/services/api/test/unit/user_test.rb b/services/api/test/unit/user_test.rb index 9fafeb0b23..28685267b7 100644 --- a/services/api/test/unit/user_test.rb +++ b/services/api/test/unit/user_test.rb @@ -805,8 +805,9 @@ class UserTest < ActiveSupport::TestCase u = User.register({"email" => "active-user@arvados.local", "identity_url" => "different-identity-url"}) active = User.find_by_uuid(users(:active).uuid) assert_equal active.uuid, u.uuid - assert_equal "different-identity-url", active.identity_url assert_equal "active-user@arvados.local", active.email + # identity_url is not updated + assert_equal "https://active-user.openid.local", active.identity_url end test "lookup user by alternate email" do @@ -818,9 +819,11 @@ class UserTest < ActiveSupport::TestCase active = User.find_by_uuid(users(:active).uuid) assert_equal active.uuid, u.uuid - # identity_url and email of 'active' should be updated - assert_equal "different-identity-url", active.identity_url + # email should be updated assert_equal "user@parent-company.com", active.email + + # identity_url is not updated + assert_equal "https://active-user.openid.local", active.identity_url end test "register new user" do -- 2.30.2