We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac8310 commit 6a68726Copy full SHA for 6a68726
tests/api/test_grpc_stub.py
@@ -150,6 +150,25 @@ async def test_grpc_metadata():
150
}
151
)
152
153
+ # Binary metadata should be configurable on the client:
154
+ client.rpc_metadata = {
155
+ "my-binary-key-bin": b"\x00\x01",
156
+ "my-binary-key-bin2": b"\x02\x03",
157
+ }
158
+ await client.workflow_service.get_system_info(
159
+ GetSystemInfoRequest(),
160
+ metadata={
161
+ "my-binary-key-bin": b"abc",
162
+ },
163
+ )
164
+ workflow_server.assert_last_metadata(
165
+ {
166
+ "authorization": "Bearer my-api-key",
167
168
169
170
171
+
172
# Overwrite API key via client RPC metadata, confirm there
173
client.rpc_metadata = {
174
"authorization": "my-auth-val1",
0 commit comments