From 7be41b9a754593bc2b9e2b3a4fbdcc357032cf83 Mon Sep 17 00:00:00 2001 From: Chengyuan Zhang Date: Thu, 15 Oct 2020 17:27:34 -0700 Subject: [PATCH] Add message and service definition for updating test client's configuration dynamically. --- src/proto/grpc/testing/messages.proto | 6 ++++++ src/proto/grpc/testing/test.proto | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/proto/grpc/testing/messages.proto b/src/proto/grpc/testing/messages.proto index e4abe3c4d52..bdec61fcfc0 100644 --- a/src/proto/grpc/testing/messages.proto +++ b/src/proto/grpc/testing/messages.proto @@ -222,3 +222,9 @@ message LoadBalancerRealTimeStatsResponse { // The real-time total number of RPCs failed. int32 num_rpcs_failed = 3; } + +// Configurations for a test client. +message ClientConfigureRequest { + // The collection of custom metadata to be attached to RPCs sent by the client. + map custom_metadata = 1; +} diff --git a/src/proto/grpc/testing/test.proto b/src/proto/grpc/testing/test.proto index a2c9dcd8460..19f471be755 100644 --- a/src/proto/grpc/testing/test.proto +++ b/src/proto/grpc/testing/test.proto @@ -97,3 +97,8 @@ service XdsUpdateHealthService { rpc SetServing(grpc.testing.Empty) returns (grpc.testing.Empty); rpc SetNotServing(grpc.testing.Empty) returns (grpc.testing.Empty); } + +// A service to dynamically update the configuration of an xDS test client. +service XdsUpdateClientConfigureService { + rpc Configure(ClientConfigureRequest) returns (grpc.testing.Empty); +}