11453: Test username is not updated once assigned.
authorTom Clegg <tclegg@veritasgenetics.com>
Thu, 7 Dec 2017 21:48:16 +0000 (16:48 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Thu, 7 Dec 2017 21:48:16 +0000 (16:48 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

services/api/test/integration/remote_user_test.rb

index 82d9ad10f3b67b254716b123d19edb30df7ba856..f820bad45f22e8db4762203bbe83d66e89ffa345 100644 (file)
@@ -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