projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
11453: Test username is not updated once assigned.
[arvados.git]
/
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 82d9ad10f3b67b254716b123d19edb30df7ba856..f820bad45f22e8db4762203bbe83d66e89ffa345 100644
(file)
--- 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
# 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
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
end
test 'authenticate with remote token, remote username conflicts with local' do