aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/channel
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-10-24 15:27:57 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2018-10-24 17:31:30 -0700
commit693f46841a2d91b35ac3c9268b69f9ca33feee81 (patch)
tree459bbe3aaf5bc06a6452b2c89ff45df303037215 /test/core/channel
parent0d5db17da6a639068183828dc4ed6e292fc97cc3 (diff)
Add GetServer to core
Diffstat (limited to 'test/core/channel')
-rw-r--r--test/core/channel/channelz_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/core/channel/channelz_test.cc b/test/core/channel/channelz_test.cc
index 5f27320512..4d4b077002 100644
--- a/test/core/channel/channelz_test.cc
+++ b/test/core/channel/channelz_test.cc
@@ -224,6 +224,11 @@ void ValidateServer(ServerNode* server, validate_channel_data_args args) {
grpc::testing::ValidateServerProtoJsonTranslation(json_str);
ValidateCounters(json_str, args);
gpr_free(json_str);
+ // also check that the core API formats this the correct way
+ char* core_api_json_str = grpc_channelz_get_server(server->uuid());
+ grpc::testing::ValidateGetServerResponseProtoJsonTranslation(
+ core_api_json_str);
+ gpr_free(core_api_json_str);
}
grpc_millis GetLastCallStartedMillis(CallCountingHelper* channel) {