15558: Fix tests
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 5 Sep 2019 19:00:54 +0000 (15:00 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 5 Sep 2019 19:00:54 +0000 (15:00 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

services/api/test/unit/user_test.rb

index 9fafeb0b23e338d86c21e5aa2e49078201d92ee8..28685267b77f2f1396cb616478d883bdda6811a3 100644 (file)
@@ -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