X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1b993cdda270016bcf82fcad7f2168659345aa0e..afd47ec89aae6fa96dfedc53420b998b50d48318:/services/api/test/integration/remote_user_test.rb diff --git a/services/api/test/integration/remote_user_test.rb b/services/api/test/integration/remote_user_test.rb index 82d9ad10f3..f820bad45f 100644 --- a/services/api/test/integration/remote_user_test.rb +++ b/services/api/test/integration/remote_user_test.rb @@ -106,8 +106,10 @@ class RemoteUsersTest < ActionDispatch::IntegrationTest # revive original token and re-authorize @stub_status = 200 + @stub_content[:username] = 'blarney' get '/arvados/v1/users/current', {format: 'json'}, auth(remote: 'zbbbb') assert_response :success + assert_equal 'barney', json_response['username'], 'local username should not change once assigned' end test 'authenticate with remote token, remote username conflicts with local' do