Skip to content
Snippets Groups Projects
Commit fe3d9ea1 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

fix ruby per_rpc_creds

parent e2a1bf46
No related branches found
No related tags found
No related merge requests found
...@@ -255,6 +255,12 @@ class NamedTests ...@@ -255,6 +255,12 @@ class NamedTests
def per_rpc_creds def per_rpc_creds
auth_creds = Google::Auth.get_application_default(@args.oauth_scope) auth_creds = Google::Auth.get_application_default(@args.oauth_scope)
kw = auth_creds.updater_proc.call({}) kw = auth_creds.updater_proc.call({})
# TODO(jtattermusch): downcase the metadata keys here to make sure
# they are not rejected by C core. This is a hotfix that should
# be addressed by introducing auto-downcasing logic.
kw = Hash[ kw.each_pair.map { |k, v| [k.downcase, v] }]
resp = perform_large_unary(fill_username: true, resp = perform_large_unary(fill_username: true,
fill_oauth_scope: true, fill_oauth_scope: true,
**kw) **kw)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment