diff options
author | Michael Lumish <mlumish@google.com> | 2015-10-20 15:09:57 -0700 |
---|---|---|
committer | Michael Lumish <mlumish@google.com> | 2015-10-20 15:09:57 -0700 |
commit | 2da13a0e3725c44748dd12739188d611bf8eb823 (patch) | |
tree | 71c6461b74407694313e49ecb0b1911682a535e6 /src | |
parent | 42e2beb80f2dfe674b23cbc6eff5291a8a649573 (diff) | |
parent | fe3d9ea14ff437961871d11a0fc3da8acaf88105 (diff) |
Merge pull request #3890 from jtattermusch/fix_ruby_per_rpc_creds
Hotfix for ruby per_rpc_creds interop test
Diffstat (limited to 'src')
-rwxr-xr-x | src/ruby/pb/test/client.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ruby/pb/test/client.rb b/src/ruby/pb/test/client.rb index e6d5223272..1388685734 100755 --- a/src/ruby/pb/test/client.rb +++ b/src/ruby/pb/test/client.rb @@ -255,6 +255,12 @@ class NamedTests def per_rpc_creds auth_creds = Google::Auth.get_application_default(@args.oauth_scope) 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, fill_oauth_scope: true, **kw) |